Skip to content
Snippets Groups Projects
Commit 184657f8 authored by Chad Lantz's avatar Chad Lantz
Browse files

Added check to only record photons with negative y momentum in intermediate SDs

parent 683b02b2
No related branches found
No related tags found
No related merge requests found
......@@ -116,9 +116,11 @@ G4bool PMTSD::ProcessHits(G4Step* aStep,G4TouchableHistory*){
// Fill ouput vectors
if(INTERMEDIATE){
m_PtrVec[0]->push_back( hitPos.x() ); //Where the photon landed on the PMT in x
m_PtrVec[1]->push_back( hitPos.y() ); //Where the photon landed on the PMT in y
m_PtrVec[2]->push_back( hitPos.z() ); //Where the photon landed on the PMT in z
if(momentum.y() < 0.0){
m_PtrVec[0]->push_back( hitPos.x() ); //Where the photon landed on the SD in x
m_PtrVec[1]->push_back( hitPos.y() ); //Where the photon landed on the SD in y
m_PtrVec[2]->push_back( hitPos.z() ); //Where the photon landed on the SD in z
}
}else{
m_PtrVec[0]->push_back( origin.x() ); //Origin of the photon in x
m_PtrVec[1]->push_back( origin.y() ); //Origin of the photon in y
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment