ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
Public Member Functions | |
Par02PrimaryGeneratorAction () | |
~Par02PrimaryGeneratorAction () | |
virtual void | GeneratePrimaries (G4Event *anEvent) |
G4ParticleGun * | GetParticleGun () |
Public Member Functions inherited from G4VUserPrimaryGeneratorAction | |
G4VUserPrimaryGeneratorAction () | |
virtual | ~G4VUserPrimaryGeneratorAction () |
Private Attributes | |
G4ParticleGun * | fParticleGun |
Construction of a primary generation action.
For simplicity, we use here the particle gun, but in the original application for FCC (developed by Anna Zaborowska), the Monte Carlo event generator Pythia8 is used as generator and it is interfaced to Geant4 via HepMC.
Definition at line 45 of file Par02PrimaryGeneratorAction.hh.
View newest version in sPHENIX GitHub at line 45 of file Par02PrimaryGeneratorAction.hh
Par02PrimaryGeneratorAction::Par02PrimaryGeneratorAction | ( | ) |
Definition at line 41 of file Par02PrimaryGeneratorAction.cc.
View newest version in sPHENIX GitHub at line 41 of file Par02PrimaryGeneratorAction.cc
References G4ParticleTable::FindParticle(), fParticleGun, G4ParticleTable::GetParticleTable(), GeV, particle, G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), G4ParticleGun::SetParticleMomentumDirection(), and G4VPrimaryGenerator::SetParticlePosition().
Par02PrimaryGeneratorAction::~Par02PrimaryGeneratorAction | ( | ) |
Definition at line 58 of file Par02PrimaryGeneratorAction.cc.
View newest version in sPHENIX GitHub at line 58 of file Par02PrimaryGeneratorAction.cc
References fParticleGun.
Implements G4VUserPrimaryGeneratorAction.
Definition at line 64 of file Par02PrimaryGeneratorAction.cc.
View newest version in sPHENIX GitHub at line 64 of file Par02PrimaryGeneratorAction.cc
References fParticleGun, G4ParticleGun::GeneratePrimaryVertex(), G4PrimaryParticle::GetMomentum(), G4PrimaryVertex::GetNumberOfParticle(), G4Event::GetNumberOfPrimaryVertex(), G4PrimaryParticle::GetPDGcode(), G4PrimaryVertex::GetPrimary(), G4Event::GetPrimaryVertex(), and G4PrimaryParticle::SetUserInformation().
G4ParticleGun * Par02PrimaryGeneratorAction::GetParticleGun | ( | void | ) |
Definition at line 91 of file Par02PrimaryGeneratorAction.cc.
View newest version in sPHENIX GitHub at line 91 of file Par02PrimaryGeneratorAction.cc
References fParticleGun.
|
private |
Definition at line 54 of file Par02PrimaryGeneratorAction.hh.
View newest version in sPHENIX GitHub at line 54 of file Par02PrimaryGeneratorAction.hh
Referenced by GeneratePrimaries(), GetParticleGun(), Par02PrimaryGeneratorAction(), and ~Par02PrimaryGeneratorAction().