Skip to content

moved SetPDGLifeTime() to GateVSource::Initialize()#63

Merged
dsarrut merged 1 commit intoOpenGATE:developfrom
JStrydhorst:rdm-fixed-num-primaries
Apr 18, 2016
Merged

moved SetPDGLifeTime() to GateVSource::Initialize()#63
dsarrut merged 1 commit intoOpenGATE:developfrom
JStrydhorst:rdm-fixed-num-primaries

Conversation

@JStrydhorst
Copy link
Copy Markdown
Contributor

This is a minor fix to the fixed number of primaries mode when using RadioactiveDecay. The call to SetPDGLifeTime(0) to let Gate control the decay time of radioactive ions was in the GateVSource::GetNextTime() function. Setting the lifetime to zero before every event isn't necessary, and in fixed number of primaries mode, GetNextTime isn't used at all, so the decay timing was controlled by Geant4. Moving the call to GateVSource::Initialize() makes the behaviour consistent between timed runs and those with fixed numbers of primaries.

@dsarrut dsarrut merged commit 18cebd1 into OpenGATE:develop Apr 18, 2016
@JStrydhorst JStrydhorst deleted the rdm-fixed-num-primaries branch April 20, 2016 12:54
ThomasDeschler added a commit to ThomasDeschler/Gate that referenced this pull request Oct 5, 2016
Revert "Merge pull request OpenGATE#63 from JStrydhorst/rdm-fixed-num-primaries"
This reverts commit 18cebd1, reversing
changes made to 3d7e6aa.
ThomasDeschler added a commit to ThomasDeschler/Gate that referenced this pull request Oct 5, 2016
Revert "Merge pull request OpenGATE#63 from JStrydhorst/rdm-fixed-num-primaries"
This reverts commit 18cebd1, reversing
changes made to 3d7e6aa.
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