Geant4
10.01.p02
|
Primary generator action. More...
#include <ExP02PrimaryGeneratorAction.hh>
Public Member Functions | |
ExP02PrimaryGeneratorAction () | |
~ExP02PrimaryGeneratorAction () | |
virtual void | GeneratePrimaries (G4Event *) |
Public Member Functions inherited from G4VUserPrimaryGeneratorAction | |
G4VUserPrimaryGeneratorAction () | |
virtual | ~G4VUserPrimaryGeneratorAction () |
Private Attributes | |
G4ParticleGun * | fParticleGun |
Primary generator action.
Definition at line 47 of file ExP02PrimaryGeneratorAction.hh.
ExP02PrimaryGeneratorAction::ExP02PrimaryGeneratorAction | ( | ) |
Definition at line 42 of file ExP02PrimaryGeneratorAction.cc.
References G4ParticleTable::FindParticle(), fParticleGun, G4ParticleTable::GetParticleTable(), GeV, G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), and G4VPrimaryGenerator::SetParticlePosition().
ExP02PrimaryGeneratorAction::~ExP02PrimaryGeneratorAction | ( | ) |
Definition at line 60 of file ExP02PrimaryGeneratorAction.cc.
References fParticleGun.
|
virtual |
Implements G4VUserPrimaryGeneratorAction.
Definition at line 67 of file ExP02PrimaryGeneratorAction.cc.
References fParticleGun, G4ParticleGun::GeneratePrimaryVertex(), and G4ParticleGun::SetParticleMomentumDirection().
|
private |
Definition at line 56 of file ExP02PrimaryGeneratorAction.hh.
Referenced by ExP02PrimaryGeneratorAction(), GeneratePrimaries(), and ~ExP02PrimaryGeneratorAction().