[Gate-users] getting detector volume ID from hits?
Josh Knowland
jknowland at lucernodynamics.com
Fri Sep 3 14:48:15 CEST 2021
Hi Ane, thank you so much, that makes perfect sense now.
Cheers
Josh
________________________________
From: Ane Etxebeste <ane.etxebeste at creatis.insa-lyon.fr>
Sent: Friday, September 3, 2021 8:15:26 AM
To: Josh Knowland <jknowland at lucernodynamics.com>; gate-users at lists.opengatecollaboration.org <gate-users at lists.opengatecollaboration.org>
Subject: Re: [Gate-users] getting detector volume ID from hits?
Hi Josh,
VolumeID array represents the ID of the volume in which the hit occurred.
Each position in the array gives you the volume ID at a specific hierarchy level.
Let's say that you have an scanner made of two heads and each head is composed of 64 pixelated crystals.
The ID of the detector head goes from 0 to 1, whereas the ID at pixel level goes from 0 to 63.
In this case, in order to identify the volume where the hit occurred you will need this two values of the array.
If you have a single detector head, the ID at pixel level will be enough to identify the volume.
I hope it helps.
Regards,
Ane
On 01/09/2021 23:19, Josh Knowland wrote:
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
_______________________________________________
Gate-users mailing list
Gate-users at lists.opengatecollaboration.org<mailto:Gate-users at lists.opengatecollaboration.org>
http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20210903/b8332ed0/attachment.html>
More information about the Gate-users
mailing list