Message: How to obtain a root file with info from Verbose? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question How to obtain a root file with info from Verbose? 

Forum: Event and Track Management
Date: 27 Apr, 2013
From: Carlos Uribe <Carlos Uribe>

Dear geant users,

I'm using the output from the G4SteppingVerbose function printing it on a text file in order to create the Energy spectrum from my source. I edited the code a little bit so that verbose_level=1 also prints the secondaries. To clarify a little bit, imagine a point source of monoenergetic betas in water. The output of this verbose file will give me, among others, the energy of each beta but will also show me the bremsstrahlung photons.

This procedure though, creates huge text files that are hard to analyze.

Can anyone please help me in order to obtain this information in a root file? I don't even know how to start. The idea is to obtain a root file with the information of

TrackID, Parent, Step, Energy, Kinenergy, Pos_x, Pos_y, Pos_z, momentum_direction_(x,y,z) PDGCode

I want this for electrons and photons primary and secondary (if I simulate a nuclei that beta decays, I want to be able to generate the beta spectrum but I would also like to see the bremsstrahlung photon spectrum)

Any help is greatly appreciated.

Thank you very much, Carlos

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: How to obtain a root file with info from Verbose?   (Carlos Ayerbe Gayoso - 09 Jun, 2013)
 Add Message Add Message
to: "How to obtain a root file with info from Verbose?"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]