Message: accessing primary energy from SteppingAction Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None accessing primary energy from SteppingAction 

Forum: Event and Track Management
Date: 09 Oct, 2013
From: Shawn Kang <Shawn Kang>

Hello,

I have in my PrimaryGeneratorAction
  particleGun->GeneratePrimaryVertex(anEvent);
  G4double pE = particleGun->GetParticleEnergy();
  G4cout << "Kinetic Energy " << pE << G4endl;
Can I access above information from the SteppingAction?
I am using the GeneralParticleSource instead of ParticleGun.

Thank you for help.

Shawn

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

1 None: Re: accessing primary energy from SteppingAction   (Jeyasingam Jeyasugiththan - 09 Oct, 2013)
(_ Ok: Re: accessing primary energy from SteppingAction   (Jeyasingam Jeyasugiththan - 10 Oct, 2013)
 Add Message Add Message
to: "accessing primary energy from SteppingAction"

 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 ]