ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
Primary generator action for the persistency example. More...
Public Member Functions | |
ExP01PrimaryGeneratorAction (ExP01DetectorConstruction *) | |
~ExP01PrimaryGeneratorAction () | |
virtual void | GeneratePrimaries (G4Event *) |
Public Member Functions inherited from G4VUserPrimaryGeneratorAction | |
G4VUserPrimaryGeneratorAction () | |
virtual | ~G4VUserPrimaryGeneratorAction () |
Private Attributes | |
G4ParticleGun * | fParticleGun |
ExP01DetectorConstruction * | fMyDetector |
Primary generator action for the persistency example.
Definition at line 47 of file ExP01PrimaryGeneratorAction.hh.
View newest version in sPHENIX GitHub at line 47 of file ExP01PrimaryGeneratorAction.hh
ExP01PrimaryGeneratorAction::ExP01PrimaryGeneratorAction | ( | ExP01DetectorConstruction * | myDC | ) |
Definition at line 46 of file ExP01PrimaryGeneratorAction.cc.
View newest version in sPHENIX GitHub at line 46 of file ExP01PrimaryGeneratorAction.cc
References G4ParticleTable::FindParticle(), fParticleGun, G4ParticleTable::GetParticleTable(), GeV, particle, G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), and G4ParticleGun::SetParticleMomentumDirection().
ExP01PrimaryGeneratorAction::~ExP01PrimaryGeneratorAction | ( | ) |
Definition at line 66 of file ExP01PrimaryGeneratorAction.cc.
View newest version in sPHENIX GitHub at line 66 of file ExP01PrimaryGeneratorAction.cc
References fParticleGun.
Implements G4VUserPrimaryGeneratorAction.
Definition at line 73 of file ExP01PrimaryGeneratorAction.cc.
View newest version in sPHENIX GitHub at line 73 of file ExP01PrimaryGeneratorAction.cc
References cm, fMyDetector, fParticleGun, G4ParticleGun::GeneratePrimaryVertex(), ExP01DetectorConstruction::GetWorldFullLength(), and G4VPrimaryGenerator::SetParticlePosition().
|
private |
Definition at line 58 of file ExP01PrimaryGeneratorAction.hh.
View newest version in sPHENIX GitHub at line 58 of file ExP01PrimaryGeneratorAction.hh
Referenced by GeneratePrimaries().
|
private |
Definition at line 57 of file ExP01PrimaryGeneratorAction.hh.
View newest version in sPHENIX GitHub at line 57 of file ExP01PrimaryGeneratorAction.hh
Referenced by ExP01PrimaryGeneratorAction(), GeneratePrimaries(), and ~ExP01PrimaryGeneratorAction().