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
Gate 9.0 does not fill Hits Tree #350
Comments
I think that the same problem is now reported on the user mailing list with more details: I'm wondering if this has anything to do with the memory leak issues (e.g. #257) that were solved in Nov/Dec 2019, PR #266. @cpommranz , could you maybe comment on this? I might be completely off, of course, but I just wonder if the problem reported here could be an unintended side effect of that mem leak fix. |
This seems to be correct @djboersma, good catch! Without having deeply looked into this, all I can say right now is that the problem disappears as soon as PR #266 is reverted. But by reverting the PR, we get the memory leak back (also for the test simulation given in the linked mail). I will have a look into this again soon. |
It turns out that The underlying problem is, as written in the commit message in PR #266, that Geant4 does not expose the G4SDStructure member function In parallel, I think we should try to get a RemoveDetector (or similar) member function into upstream Geant4's G4SDManager, similar to |
Previously, the inactive SD was attached to the GateMultiSensitiveDetector, leading to an empty hit list. Since the G4SDStructure member function `RemoveSD` is not exposed and we are therefore unable to properly remove the original SD from the G4SDManager, an inactive clone SD is added to the SD manager, which will implicitly remove the original one. The original and active SD can then be attached to the multi sensitive detector. This is a rather dirty workaround and should be removed once `RemoveSD` or similar is exposed in Geant4. Note that a Geant4 warning message is raised in case GEANT4_BUILD_VERBOSE_CODE is set. Refs OpenGATE#350, OpenGATE#335
merge #354 |
Please @ckaraf, could you check if it works with this solution ? |
ok, I'll have a look
Thanks!
C.
…On Mon, 14 Sep 2020 at 17:57, David Sarrut ***@***.***> wrote:
Please @ckaraf <https://github.com/ckaraf>, could you check if it works
with this solution ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#350 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALCLCAHKGXPLSMSUX54UOUTSFYVMPANCNFSM4PD3EZNA>
.
--
[image: photo]
Dr Costas Karafasoulis
at Hellenic Army Academy
M +30-6973724688 <+30-6973724688>
E ckaraf@gmail.com <ckaraf@gmail.com>
W http://sites.google.com/site/ckaraf
<http://sites.google.com/site/ckaraf>
Viber +30-6973724688
Skype ckaraf <#SignatureSanitizer_>
|
Dear all,
I confirm that the developer version of Gate on GitHub does fill the Hits
Tree.
Thank you,
…On Mon, 14 Sep 2020 at 17:57, David Sarrut ***@***.***> wrote:
Please @ckaraf <https://github.com/ckaraf>, could you check if it works
with this solution ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#350 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALCLCAHKGXPLSMSUX54UOUTSFYVMPANCNFSM4PD3EZNA>
.
--
[image: photo]
Dr Costas Karafasoulis
at Hellenic Army Academy
M +30-6973724688 <+30-6973724688>
E ckaraf@gmail.com <ckaraf@gmail.com>
W http://sites.google.com/site/ckaraf
<http://sites.google.com/site/ckaraf>
Viber +30-6973724688
Skype ckaraf <#SignatureSanitizer_>
|
Hi, I confirm the same. I have tested this and it gives the same results as Gate 8.2. thanks |
cool! Big 👍 to @cpommranz ! |
I have compiled Gate 9.0 using Geant 10.6.2 and root 6.22.00.
However, when I run my script Gate does not fill the Hits Tree although I use:
/gate/output/root/enable
/gate/output/root/setRootNtupleFlag 1
/gate/output/root/setRootHitFlag 1
/gate/output/root/setRootSinglesFlag 1
Gate 8.2 fills the Hits tree correctly.
The text was updated successfully, but these errors were encountered: