Message: Re: G4Step/G4Track "history" in UserSteppingAction/PostUserTrackingAction Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Idea Re: G4Step/G4Track "history" in UserSteppingAction/PostUserTrackingAction 

Keywords: UserSteppingAction PostUserTrackingAction G4Step G4Track
Forum: Event and Track Management
Re: None G4Step/G4Track "history" in UserSteppingAction/PostUserTrackingAction (Jacek M. Holeczek)
Date: 21 Jan, 2004
From: Keven L. Ates <atescomp1@comcast.net>

You can capture your energies at EndEvent() in your G4Event class. Often a Print() method is used to show the final results/energies. We use ROOT classes bound into G4 to capture the energies into a ROOT file as a tuplet, then later use ROOT to do analysis.

You can capture in Print() but, since this only runs when verbosity is on, its better to move the energy retrieval code into EndEvent() and use some dummy class variables to pass around the energy values to any user added methods to capture the energies.

See ExN03's G4Event class as an example on showing the energies. This class also has a PrintAll() and DrawAll() function that may be a clue to what you need.

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

1 None: Re: G4Step/G4Track "history" in UserSteppingAction/PostUserTrackingAction   (Jacek M. Holeczek - 22 Jan, 2004)
 Add Message Add Message
to: "Re: G4Step/G4Track "history" in UserSteppingAction/PostUserTrackingAction"

 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 ]