[Gate-users] getting detector volume ID from hits?
Josh Knowland
jknowland at lucernodynamics.com
Wed Sep 1 23:19:55 CEST 2021
Hello GATE experts,
Can you help me get the volume ID where hits occurred from the root file?
I have been able to export the hits tree to a text file using scan("*"). I've attached a sample of the first 10 events in the text file.
I can tell that the VolumeID branch holds an array for each event. The arrays are 10 elements and must indicate somehow the detector volume in which the hit occurred.
Really, the only information I need for each hit is:
1. ProcessName
2. PDGEncoding
3. edep
4. posX, posY, posZ
5. sourceID
6. sourcePosX, sourcePosY, sourcePosZ
7. [the ID of the volume in which the hit occurred]
Ideally, I need to output the tree as a text file like the attached one. To reduce file size, I'd like to have only one line per event instead of the 10 lines it's writing now.
Can you help me understand this?
Thanks,
Josh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20210901/4b40cc77/attachment-0001.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: hits.txt
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20210901/4b40cc77/attachment-0001.txt>
More information about the Gate-users
mailing list