Geant4
10.02.p02
|
Construction of a primary generation action. More...
#include <Par02PrimaryGeneratorAction.hh>
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 46 of file Par02PrimaryGeneratorAction.hh.
Par02PrimaryGeneratorAction::Par02PrimaryGeneratorAction | ( | ) |
Definition at line 42 of file Par02PrimaryGeneratorAction.cc.
References G4ParticleTable::FindParticle(), fParticleGun, G4ParticleTable::GetParticleTable(), GeV, G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), G4ParticleGun::SetParticleMomentumDirection(), and G4VPrimaryGenerator::SetParticlePosition().
Par02PrimaryGeneratorAction::~Par02PrimaryGeneratorAction | ( | ) |
Definition at line 59 of file Par02PrimaryGeneratorAction.cc.
References fParticleGun.
|
virtual |
Implements G4VUserPrimaryGeneratorAction.
Definition at line 65 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 92 of file Par02PrimaryGeneratorAction.cc.
References fParticleGun.
|
private |
Definition at line 55 of file Par02PrimaryGeneratorAction.hh.
Referenced by GeneratePrimaries(), GetParticleGun(), Par02PrimaryGeneratorAction(), and ~Par02PrimaryGeneratorAction().