Message: Re: Primary Particle Step Infomation Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Primary Particle Step Infomation 

Forum: Event and Track Management
Re: None Primary Particle Step Infomation (Davinder Siwal)
Date: 24 Sep, 2010
From: Neoh <Neoh>

You can get the information you need from userSteppingAction, for example:

 void YourSteppingAction::UserSteppingAction(const G4Step* aStep)
   G4double dE = aStep->GetTotalEnergyDeposit();
   G4ThreeVector vertexPosition = aStep->GetPreStepPoint()->GetPosition();

This would give you energy deposit and position in every step. Hope this helps.


 Add Message Add Message
to: "Re: Primary Particle Step Infomation"

 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 ]