Geant4  10.01.p02
G02PrimaryGeneratorAction Class Reference

Primary generator action used in GDML read/write example. More...

#include <G02PrimaryGeneratorAction.hh>

+ Inheritance diagram for G02PrimaryGeneratorAction:
+ Collaboration diagram for G02PrimaryGeneratorAction:

Public Member Functions

 G02PrimaryGeneratorAction ()
 
 ~G02PrimaryGeneratorAction ()
 
virtual void GeneratePrimaries (G4Event *anEvent)
 
- Public Member Functions inherited from G4VUserPrimaryGeneratorAction
 G4VUserPrimaryGeneratorAction ()
 
virtual ~G4VUserPrimaryGeneratorAction ()
 

Private Attributes

G4ParticleGunfParticleGun
 
G4ParticleTablefParticleTable
 

Detailed Description

Primary generator action used in GDML read/write example.

Definition at line 51 of file G02PrimaryGeneratorAction.hh.

Constructor & Destructor Documentation

G02PrimaryGeneratorAction::G02PrimaryGeneratorAction ( )

Definition at line 44 of file G02PrimaryGeneratorAction.cc.

References G4ParticleTable::FindParticle(), fParticleGun, fParticleTable, G4ParticleTable::GetParticleTable(), MeV, G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), G4ParticleGun::SetParticleMomentumDirection(), and G4VPrimaryGenerator::SetParticlePosition().

+ Here is the call graph for this function:

G02PrimaryGeneratorAction::~G02PrimaryGeneratorAction ( )

Definition at line 71 of file G02PrimaryGeneratorAction.cc.

References fParticleGun.

Member Function Documentation

void G02PrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 78 of file G02PrimaryGeneratorAction.cc.

References fParticleGun, and G4ParticleGun::GeneratePrimaryVertex().

+ Here is the call graph for this function:

Member Data Documentation

G4ParticleGun* G02PrimaryGeneratorAction::fParticleGun
private
G4ParticleTable* G02PrimaryGeneratorAction::fParticleTable
private

Definition at line 67 of file G02PrimaryGeneratorAction.hh.

Referenced by G02PrimaryGeneratorAction().


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