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

Ok Re: accessing primary energy from SteppingAction 

Forum: Event and Track Management
Re: None accessing primary energy from SteppingAction (Shawn Kang)
Re: None Re: accessing primary energy from SteppingAction (Jeyasingam Jeyasugiththan)
Date: 10 Oct, 2013
From: Jeyasingam Jeyasugiththan <Jeyasingam Jeyasugiththan>

Hi make sure GetParticleSource() which must be implemented within the PrimaryGeneratorAction.hh if not do as follow

public:
 G4GeneralParticleSource* GetParticleSource()           {return particleGun;} 

private:
 G4GeneralParticleSource* particleGun;

Best regards Sugi

 Add Message Add Message
to: "Re: 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 ]