[Gate-users] Beam profiles with ROOT
Leo Read
leoread at gmail.com
Mon Mar 24 15:42:51 CET 2014
Is what you need a 2D histogram of the positions of hits/singles? i.e. if
you were to output your data using ascii files, can you plot your desired
beam profile using the position data in the hits/singles files?
On Sun, Mar 23, 2014 at 6:36 PM, Stathis Kamperis <ekamperi at gmail.com>wrote:
> On Sun, Mar 23, 2014 at 2:23 PM, Stathis Kamperis <ekamperi at gmail.com>
> wrote:
> > The closest I could get was to:
> >
> > 1. Set the resolution of my dose actor like:
> > /gate/actor/doseDistribution/setResolution 1 100 100
> >
> > 2. Run the simulation
> >
> > 3. Run root
> >
> > 4. Type in the root cli:
> > TBrowser *b = new TBrowser()
> >
> > 5. Open the .root file with the browser
> >
> > But what I got was a plot with nothing in it except for the ticks in
> axes.
> >
> Actually, if I right click -> Draw Panel -> Plot 3D, I see that there
> are some bars
> but they don't seem like proper histograms.
>
> Anyway, I worked arouned it by using .txt files with many 1D dose actors :)
> Still, if anyone is familiar with ROOT I'd like to learn how s/he did it.
>
> Cheers,
> Stathis
>
> > Best regards,
> > Stathis
> >
> > On Sun, Mar 23, 2014 at 1:12 PM, Stathis Kamperis <ekamperi at gmail.com>
> wrote:
> >> Hello people,
> >>
> >> Does anyone have ROOT code to draw the profile of a beam from a .root
> >> file ? Or do you have any document describing the format of a .root
> >> file ?
> >>
> >> Thank you.
> >>
> >> Best regards,
> >> Stathis
> _______________________________________________
> Gate-users mailing list
> 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/mailman/private/gate-users/attachments/20140324/c2649cb7/attachment.html>
More information about the Gate-users
mailing list