Geant4  10.01.p02
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 f)
 
G4bool GetHEPEvtGenerator ()
 
- Public Member Functions inherited from G4VUserPrimaryGeneratorAction
 G4VUserPrimaryGeneratorAction ()
 
virtual ~G4VUserPrimaryGeneratorAction ()
 

Private Attributes

G4VPrimaryGeneratorparticleGun
 
RE05PrimaryGeneratorMessengermessenger
 
G4bool useHEPEvt
 

Static Private Attributes

static G4VPrimaryGeneratorHEPEvt = 0
 

Detailed Description

Definition at line 42 of file RE05PrimaryGeneratorAction.hh.

Constructor & Destructor Documentation

RE05PrimaryGeneratorAction::RE05PrimaryGeneratorAction ( )

Definition at line 46 of file RE05PrimaryGeneratorAction.cc.

References cm, G4ParticleTable::FindParticle(), G4ParticleTable::GetParticleTable(), GeV, HEPEvt, messenger, particleGun, G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), G4ParticleGun::SetParticleMomentumDirection(), G4VPrimaryGenerator::SetParticlePosition(), and useHEPEvt.

+ Here is the call graph for this function:

RE05PrimaryGeneratorAction::~RE05PrimaryGeneratorAction ( )
virtual

Definition at line 77 of file RE05PrimaryGeneratorAction.cc.

References HEPEvt, messenger, and particleGun.

Member Function Documentation

void RE05PrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 87 of file RE05PrimaryGeneratorAction.cc.

References G4VPrimaryGenerator::GeneratePrimaryVertex(), HEPEvt, particleGun, and useHEPEvt.

+ Here is the call graph for this function:

G4bool RE05PrimaryGeneratorAction::GetHEPEvtGenerator ( )
inline

Definition at line 60 of file RE05PrimaryGeneratorAction.hh.

References useHEPEvt.

Referenced by RE05PrimaryGeneratorMessenger::GetCurrentValue().

+ Here is the caller graph for this function:

void RE05PrimaryGeneratorAction::SetHEPEvtGenerator ( G4bool  f)
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::HEPEvt = 0
staticprivate
RE05PrimaryGeneratorMessenger* RE05PrimaryGeneratorAction::messenger
private
G4VPrimaryGenerator* RE05PrimaryGeneratorAction::particleGun
private
G4bool RE05PrimaryGeneratorAction::useHEPEvt
private

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