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

Minimal primary generator action to demonstrate the use of GDML geometries. More...

#include <geant4/tree/geant4-10.6-release/examples/extended/persistency/gdml/G01/include/G01PrimaryGeneratorAction.hh>

+ Inheritance diagram for G01PrimaryGeneratorAction:
+ Collaboration diagram for G01PrimaryGeneratorAction:

Public Member Functions

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

Private Attributes

G4ParticleGunfParticleGun
 

Detailed Description

Minimal primary generator action to demonstrate the use of GDML geometries.

Definition at line 45 of file G01PrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 45 of file G01PrimaryGeneratorAction.hh

Constructor & Destructor Documentation

G01PrimaryGeneratorAction::G01PrimaryGeneratorAction ( )

Definition at line 42 of file G01PrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 42 of file G01PrimaryGeneratorAction.cc

References G4ParticleTable::FindParticle(), fParticleGun, G4ParticleTable::GetParticleTable(), GeV, m, G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), and G4VPrimaryGenerator::SetParticlePosition().

+ Here is the call graph for this function:

G01PrimaryGeneratorAction::~G01PrimaryGeneratorAction ( )

Definition at line 59 of file G01PrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 59 of file G01PrimaryGeneratorAction.cc

References fParticleGun.

Member Function Documentation

void G01PrimaryGeneratorAction::GeneratePrimaries ( G4Event anEvent)
virtual

Implements G4VUserPrimaryGeneratorAction.

Definition at line 66 of file G01PrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 66 of file G01PrimaryGeneratorAction.cc

References fParticleGun, G4ParticleGun::GeneratePrimaryVertex(), G4Event::GetEventID(), G4ParticleGun::SetParticleMomentumDirection(), CLHEP::Hep3Vector::setY(), CLHEP::Hep3Vector::setZ(), and v.

+ Here is the call graph for this function:

Member Data Documentation

G4ParticleGun* G01PrimaryGeneratorAction::fParticleGun
private

Definition at line 56 of file G01PrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 56 of file G01PrimaryGeneratorAction.hh

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


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