[Gate-users] Extracting energy spectra from ROOT file

Melissa Cruz ms.cruz at campus.fct.unl.pt
Sat Oct 3 12:12:22 CEST 2020


Dear Gate users,

I'm running a simulation on Gatelab (my pc wouldn't run it on my lifetime),
and need to plot the number of counts vs energy that reach my detector, but
when I try to use the energySpectrum actor I always get an segmentation
violation error,

 *** Break *** segmentation violation
Error in <TUnixSystem::StackTrace> script /cvmfs/
biomed.egi.eu/vip/gate/gate_release_8.1/root/etc/gdb-backtrace.sh

Due to this, I had to disable the actor and use the usual ROOT output, but
although I've been searching through Gate and ROOT users guides and also
messages on mailing lists, I can't find information on how to perform this
analysis.

I'm not an experienced ROOT user, but my Gate macros are all written as
indicated in Gate users guide, and I can't seem to find how to extract this
data from the output file, or how to plot two different leaves against each
other (which I believe would be the total nb primaries vs energy in
singles)? It seems to me that all the information I found teaches how to
plot the spectrum obtained from the actor or how to plot 1D histogram just
from one leave.

I've spent days also looking to .C files in the Gate Contributions Folder
in vGate, and it could be that the answer to my question is really straight
foreword, but I'm getting really frustrated and my deadline is aproaching.
Could someone teach me how to do this (noone in my department can help me
neither), please?

Many thanks in advance,
Kind regards,
Sofia Cruz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20201003/c07121ec/attachment.html>


More information about the Gate-users mailing list