[Gate-users] phase space
David Boersma
david.boersma at igp.uu.se
Tue Sep 12 10:49:54 CEST 2017
Dear M Shahrivar,
It depends a bit on which format you chose for storing the phase space.
If you used ROOT, then you could have a look at one of the
PhS-Analysis.C ROOT macros. For release 8.0 and newer you'll find it in
the "GateContrib" examples as
dosimetry/Radiotherapy/example4/PhS-Analysis.C
and for release 7.2 and older (when examples were still included in the
source code) you can find it under
examples/example_Radiotherapy/example4/PhS-Analysis.C
Check for "Ekine" and histoEnergy.
ASIDE: If you are not yet familiar with ROOT then you may want to spend
some time with a good ROOT tutorial, in particular to learn about its
concept of a "ROOT tree" and about the "ROOT histogram"; in particular
how to loop over a tree and "fill" histograms. For first explorations
you can also check out the "TBrowser" and the "ROOT tree viewer". Be
warned that ROOT is a very big library/framework/spaceship full of very
diverse and complicated particle physics data analysis tools, it's easy
to get overwhelmed and lose focus on what you actually need from it.
You'll need to find a smart balance between goal orientedness and
attention to detail... :-)
If you are are already familiar with some other analysis software
(matlab, python/scipy, ...) then I'd advise to import the phase space
into that software and save time by not having to learn ROOT. (Maybe we
should include some python-based analysis examples in GateContrib...)
HTH,
David B.
Den 11/09/2017 kl. 19:34, skrev m Shahrivar:
> Dear all
>
> I simulated a radiotherapy system and got the phase space.How can I get
> the energy spectrum from the phase space?
>
> Thanks in advance.
>
>
>
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>
More information about the Gate-users
mailing list