Geant4  10.02.p02
RE01PrimaryGeneratorAction Class Reference

#include <RE01PrimaryGeneratorAction.hh>

+ Inheritance diagram for RE01PrimaryGeneratorAction:
+ Collaboration diagram for RE01PrimaryGeneratorAction:

Public Member Functions

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

Private Attributes

G4VPrimaryGeneratorfHEPEvt
 
G4VPrimaryGeneratorfParticleGun
 
RE01PrimaryGeneratorMessengerfMessenger
 
G4bool fUseHEPEvt
 

Detailed Description

Definition at line 42 of file RE01PrimaryGeneratorAction.hh.

Constructor & Destructor Documentation

RE01PrimaryGeneratorAction::RE01PrimaryGeneratorAction ( )

Definition at line 43 of file RE01PrimaryGeneratorAction.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:

RE01PrimaryGeneratorAction::~RE01PrimaryGeneratorAction ( )
virtual

Definition at line 74 of file RE01PrimaryGeneratorAction.cc.

References fHEPEvt, fMessenger, and fParticleGun.

Member Function Documentation

void RE01PrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 83 of file RE01PrimaryGeneratorAction.cc.

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

+ Here is the call graph for this function:

G4bool RE01PrimaryGeneratorAction::GetHEPEvtGenerator ( )
inline

Definition at line 52 of file RE01PrimaryGeneratorAction.hh.

References fUseHEPEvt.

Referenced by RE01PrimaryGeneratorMessenger::GetCurrentValue().

+ Here is the caller graph for this function:

void RE01PrimaryGeneratorAction::SetHEPEvtGenerator ( G4bool  f)
inline

Definition at line 50 of file RE01PrimaryGeneratorAction.hh.

References fUseHEPEvt.

Member Data Documentation

G4VPrimaryGenerator* RE01PrimaryGeneratorAction::fHEPEvt
private
RE01PrimaryGeneratorMessenger* RE01PrimaryGeneratorAction::fMessenger
private
G4VPrimaryGenerator* RE01PrimaryGeneratorAction::fParticleGun
private
G4bool RE01PrimaryGeneratorAction::fUseHEPEvt
private

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