ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
Example of primary generator action. More...
Public Member Functions | |
ExTGPrimaryGeneratorAction () | |
~ExTGPrimaryGeneratorAction () | |
void | GeneratePrimaries (G4Event *) |
Public Member Functions inherited from G4VUserPrimaryGeneratorAction | |
G4VUserPrimaryGeneratorAction () | |
virtual | ~G4VUserPrimaryGeneratorAction () |
Private Attributes | |
G4ParticleGun * | fParticleGun |
Example of primary generator action.
Definition at line 40 of file ExTGPrimaryGeneratorAction.hh.
View newest version in sPHENIX GitHub at line 40 of file ExTGPrimaryGeneratorAction.hh
ExTGPrimaryGeneratorAction::ExTGPrimaryGeneratorAction | ( | ) |
Definition at line 39 of file ExTGPrimaryGeneratorAction.cc.
View newest version in sPHENIX GitHub at line 39 of file ExTGPrimaryGeneratorAction.cc
References G4ParticleTable::FindParticle(), fParticleGun, G4ParticleTable::GetParticleTable(), MeV, particle, G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), and G4ParticleGun::SetParticleMomentumDirection().
ExTGPrimaryGeneratorAction::~ExTGPrimaryGeneratorAction | ( | ) |
Definition at line 55 of file ExTGPrimaryGeneratorAction.cc.
View newest version in sPHENIX GitHub at line 55 of file ExTGPrimaryGeneratorAction.cc
References fParticleGun.
Implements G4VUserPrimaryGeneratorAction.
Definition at line 61 of file ExTGPrimaryGeneratorAction.cc.
View newest version in sPHENIX GitHub at line 61 of file ExTGPrimaryGeneratorAction.cc
References cm, fParticleGun, G4ParticleGun::GeneratePrimaryVertex(), and G4VPrimaryGenerator::SetParticlePosition().
|
private |
Definition at line 51 of file ExTGPrimaryGeneratorAction.hh.
View newest version in sPHENIX GitHub at line 51 of file ExTGPrimaryGeneratorAction.hh
Referenced by ExTGPrimaryGeneratorAction(), GeneratePrimaries(), and ~ExTGPrimaryGeneratorAction().