Geant4  10.02
RE06PrimaryGeneratorAction Class Reference

#include <RE06PrimaryGeneratorAction.hh>

+ Inheritance diagram for RE06PrimaryGeneratorAction:
+ Collaboration diagram for RE06PrimaryGeneratorAction:

Public Member Functions

 RE06PrimaryGeneratorAction ()
 
virtual ~RE06PrimaryGeneratorAction ()
 
virtual void GeneratePrimaries (G4Event *)
 
void SetSerial (G4bool serial)
 
- Public Member Functions inherited from G4VUserPrimaryGeneratorAction
 G4VUserPrimaryGeneratorAction ()
 
virtual ~G4VUserPrimaryGeneratorAction ()
 

Private Attributes

G4ParticleGunfParticleGun
 
G4bool fSerial
 

Detailed Description

Definition at line 41 of file RE06PrimaryGeneratorAction.hh.

Constructor & Destructor Documentation

RE06PrimaryGeneratorAction::RE06PrimaryGeneratorAction ( )

Definition at line 42 of file RE06PrimaryGeneratorAction.cc.

References G4ParticleTable::FindParticle(), fParticleGun, G4ParticleTable::GetParticleTable(), GeV, G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), and G4ParticleGun::SetParticleMomentumDirection().

+ Here is the call graph for this function:

RE06PrimaryGeneratorAction::~RE06PrimaryGeneratorAction ( )
virtual

Definition at line 62 of file RE06PrimaryGeneratorAction.cc.

References fParticleGun.

Member Function Documentation

void RE06PrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 69 of file RE06PrimaryGeneratorAction.cc.

References fParticleGun, fSerial, G4ParticleGun::GeneratePrimaryVertex(), m, and G4VPrimaryGenerator::SetParticlePosition().

+ Here is the call graph for this function:

void RE06PrimaryGeneratorAction::SetSerial ( G4bool  serial)
inline

Definition at line 49 of file RE06PrimaryGeneratorAction.hh.

References fSerial.

Referenced by RE06DetectorConstruction::SetSerialGeometry().

+ Here is the caller graph for this function:

Member Data Documentation

G4ParticleGun* RE06PrimaryGeneratorAction::fParticleGun
private
G4bool RE06PrimaryGeneratorAction::fSerial
private

Definition at line 53 of file RE06PrimaryGeneratorAction.hh.

Referenced by GeneratePrimaries(), and SetSerial().


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