ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
Primary generator action for GDML sensitive detector example. More...
Public Member Functions | |
G04PrimaryGeneratorAction () | |
~G04PrimaryGeneratorAction () | |
virtual void | GeneratePrimaries (G4Event *anEvent) |
Public Member Functions inherited from G4VUserPrimaryGeneratorAction | |
G4VUserPrimaryGeneratorAction () | |
virtual | ~G4VUserPrimaryGeneratorAction () |
Private Attributes | |
G4ParticleGun * | fParticleGun |
Primary generator action for GDML sensitive detector example.
Definition at line 45 of file G04PrimaryGeneratorAction.hh.
View newest version in sPHENIX GitHub at line 45 of file G04PrimaryGeneratorAction.hh
G04PrimaryGeneratorAction::G04PrimaryGeneratorAction | ( | ) |
Definition at line 42 of file G04PrimaryGeneratorAction.cc.
View newest version in sPHENIX GitHub at line 42 of file G04PrimaryGeneratorAction.cc
References G4ParticleTable::FindParticle(), fParticleGun, G4ParticleTable::GetParticleTable(), GeV, m, G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), and G4VPrimaryGenerator::SetParticlePosition().
G04PrimaryGeneratorAction::~G04PrimaryGeneratorAction | ( | ) |
Definition at line 59 of file G04PrimaryGeneratorAction.cc.
View newest version in sPHENIX GitHub at line 59 of file G04PrimaryGeneratorAction.cc
References fParticleGun.
Implements G4VUserPrimaryGeneratorAction.
Definition at line 66 of file G04PrimaryGeneratorAction.cc.
View newest version in sPHENIX GitHub at line 66 of file G04PrimaryGeneratorAction.cc
References fParticleGun, G4ParticleGun::GeneratePrimaryVertex(), G4Event::GetEventID(), G4ParticleGun::SetParticleMomentumDirection(), CLHEP::Hep3Vector::setY(), CLHEP::Hep3Vector::setZ(), and v.
|
private |
Definition at line 56 of file G04PrimaryGeneratorAction.hh.
View newest version in sPHENIX GitHub at line 56 of file G04PrimaryGeneratorAction.hh
Referenced by G04PrimaryGeneratorAction(), GeneratePrimaries(), and ~G04PrimaryGeneratorAction().