ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G03PrimaryGeneratorAction Class Reference

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

#include <geant4/tree/geant4-10.6-release/examples/extended/persistency/gdml/G03/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 48 of file G03PrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 48 of file G03PrimaryGeneratorAction.hh

Constructor & Destructor Documentation

G03PrimaryGeneratorAction::G03PrimaryGeneratorAction ( )

Definition at line 43 of file G03PrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 43 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 69 of file G03PrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 69 of file G03PrimaryGeneratorAction.cc

References fParticleGun.

Member Function Documentation

void G03PrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 76 of file G03PrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 76 of file G03PrimaryGeneratorAction.cc

References fParticleGun, and G4ParticleGun::GeneratePrimaryVertex().

+ Here is the call graph for this function:

Member Data Documentation

G4ParticleGun* G03PrimaryGeneratorAction::fParticleGun
private

Definition at line 63 of file G03PrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 63 of file G03PrimaryGeneratorAction.hh

Referenced by G03PrimaryGeneratorAction(), GeneratePrimaries(), and ~G03PrimaryGeneratorAction().

G4ParticleTable* G03PrimaryGeneratorAction::fParticleTable
private

Definition at line 64 of file G03PrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 64 of file G03PrimaryGeneratorAction.hh

Referenced by G03PrimaryGeneratorAction().


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