Geant4  10.03
RE05PrimaryGeneratorAction Class Reference

#include <RE05PrimaryGeneratorAction.hh>

+ Inheritance diagram for RE05PrimaryGeneratorAction:
+ Collaboration diagram for RE05PrimaryGeneratorAction:

Public Member Functions

 RE05PrimaryGeneratorAction ()
 
virtual ~RE05PrimaryGeneratorAction ()
 
virtual void GeneratePrimaries (G4Event *anEvent)
 
void SetHEPEvtGenerator (G4bool option)
 
G4bool GetHEPEvtGenerator ()
 
- Public Member Functions inherited from G4VUserPrimaryGeneratorAction
 G4VUserPrimaryGeneratorAction ()
 
virtual ~G4VUserPrimaryGeneratorAction ()
 

Private Attributes

G4VPrimaryGeneratorfParticleGun
 
RE05PrimaryGeneratorMessengerfMessenger
 
G4bool fUseHEPEvt
 

Static Private Attributes

static G4VPrimaryGeneratorfHEPEvt = 0
 

Detailed Description

Definition at line 42 of file RE05PrimaryGeneratorAction.hh.

Constructor & Destructor Documentation

RE05PrimaryGeneratorAction::RE05PrimaryGeneratorAction ( )

Definition at line 52 of file RE05PrimaryGeneratorAction.cc.

References cm, fHEPEvt, G4ParticleTable::FindParticle(), fMessenger, fParticleGun, fUseHEPEvt, G4ParticleTable::GetParticleTable(), GeV, G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), G4ParticleGun::SetParticleMomentumDirection(), and G4VPrimaryGenerator::SetParticlePosition().

+ Here is the call graph for this function:

RE05PrimaryGeneratorAction::~RE05PrimaryGeneratorAction ( )
virtual

Definition at line 82 of file RE05PrimaryGeneratorAction.cc.

References fHEPEvt, fMessenger, and fParticleGun.

Member Function Documentation

void RE05PrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 92 of file RE05PrimaryGeneratorAction.cc.

References fHEPEvt, fParticleGun, fUseHEPEvt, and G4VPrimaryGenerator::GeneratePrimaryVertex().

+ Here is the call graph for this function:

G4bool RE05PrimaryGeneratorAction::GetHEPEvtGenerator ( )
inline

Definition at line 60 of file RE05PrimaryGeneratorAction.hh.

References fUseHEPEvt.

Referenced by RE05PrimaryGeneratorMessenger::GetCurrentValue().

+ Here is the caller graph for this function:

void RE05PrimaryGeneratorAction::SetHEPEvtGenerator ( G4bool  option)
inline

Definition at line 58 of file RE05PrimaryGeneratorAction.hh.

Referenced by RE05PrimaryGeneratorMessenger::SetNewValue().

+ Here is the caller graph for this function:

Member Data Documentation

G4VPrimaryGenerator * RE05PrimaryGeneratorAction::fHEPEvt = 0
staticprivate
RE05PrimaryGeneratorMessenger* RE05PrimaryGeneratorAction::fMessenger
private
G4VPrimaryGenerator* RE05PrimaryGeneratorAction::fParticleGun
private
G4bool RE05PrimaryGeneratorAction::fUseHEPEvt
private

The documentation for this class was generated from the following files: