Skip to content

Update to upstream-gate#25

Open
sparzych wants to merge 16 commits intoupstream-gatefrom
upstream-update
Open

Update to upstream-gate#25
sparzych wants to merge 16 commits intoupstream-gatefrom
upstream-update

Conversation

@sparzych
Copy link
Collaborator

No description provided.

Copy link

@BlurredChoise BlurredChoise left a 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.

Comment on lines -626 to -632
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.);

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 ) {

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 //}

@sparzych sparzych requested a review from BlurredChoise July 12, 2023 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants