-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to upstream-gate #25
base: upstream-gate
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job. There are few things which you have to fix.
In particular, fix the tabs in the function GateTrajectoryNavigator::FindAnnihilationGammasTrackID() (file digits_hits/src/GateTrajectoryNavigator.cc) and make code more clear - at this moment it is hard to say what it does and does it work correctly.
strcpy(theCRData.theComptonVolumeName1, G4String("NULL").c_str()); | ||
strcpy(theCRData.theComptonVolumeName2, G4String("NULL").c_str()); | ||
strcpy(theCRData.theRayleighVolumeName1, G4String("NULL").c_str()); | ||
strcpy(theCRData.theRayleighVolumeName2, G4String("NULL").c_str()); | ||
m_ionDecayPos = G4ThreeVector(0., 0., 0.); | ||
m_positronGenerationPos = G4ThreeVector(0., 0., 0.); | ||
m_positronAnnihilPos = G4ThreeVector(0., 0., 0.); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my opinion m_ionDecayPos, m_positronGenerationPos and m_positronAnnihilPos should be present in the method GateToRoot::RecordBeginOfEvent. They should be reseted for each event.
In my opinion, you accidentally deleted these lines - this won't show up as a compile-time error, but it's a runtime error.
Please compare your code with https://github.com/OpenGATE/Gate/blob/develop/source/digits_hits/src/GateToRoot.cc#L607
<< " --- current one read from last Tracks Root File " << fTracksFN << " is " << EventID | ||
<< Gateendl; | ||
if (EventID != lastEventID) | ||
{ // if ( m_verboseLevel > 3 ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can delete commented code // if ( m_verboseLevel > 3 ) {
and //}
…fEvent method makes RecordEndOfEvent method easier to understand
…ent make code more readable
…fEvent method makes this method easier to understand
… makes this method easier to understand
…ake code more readable
…otonIDVec in case of finding 2 photons
No description provided.