Geant4  10.00.p02
G03PrimaryGeneratorAction Class Reference

Primary generator action for the GDML extension example. More...

#include <G03PrimaryGeneratorAction.hh>

+ Inheritance diagram for G03PrimaryGeneratorAction:
+ Collaboration diagram for G03PrimaryGeneratorAction:

Public Member Functions

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

Private Attributes

G4ParticleGunfParticleGun
 
G4ParticleTablefParticleTable
 

Detailed Description

Primary generator action for the GDML extension example.

Definition at line 49 of file G03PrimaryGeneratorAction.hh.

Constructor & Destructor Documentation

G03PrimaryGeneratorAction::G03PrimaryGeneratorAction ( )

Definition at line 44 of file G03PrimaryGeneratorAction.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:

G03PrimaryGeneratorAction::~G03PrimaryGeneratorAction ( )

Definition at line 70 of file G03PrimaryGeneratorAction.cc.

References fParticleGun.

Member Function Documentation

void G03PrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 77 of file G03PrimaryGeneratorAction.cc.

References fParticleGun, and G4ParticleGun::GeneratePrimaryVertex().

+ Here is the call graph for this function:

Member Data Documentation

G4ParticleGun* G03PrimaryGeneratorAction::fParticleGun
private
G4ParticleTable* G03PrimaryGeneratorAction::fParticleTable
private

Definition at line 65 of file G03PrimaryGeneratorAction.hh.

Referenced by G03PrimaryGeneratorAction().


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