Geant4
10.01.p03
|
Primary generator action for the persistency example. More...
#include <ExP01PrimaryGeneratorAction.hh>
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 48 of file ExP01PrimaryGeneratorAction.hh.
ExP01PrimaryGeneratorAction::ExP01PrimaryGeneratorAction | ( | ExP01DetectorConstruction * | myDC | ) |
Definition at line 47 of file ExP01PrimaryGeneratorAction.cc.
References G4ParticleTable::FindParticle(), fParticleGun, G4ParticleTable::GetParticleTable(), GeV, G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), and G4ParticleGun::SetParticleMomentumDirection().
ExP01PrimaryGeneratorAction::~ExP01PrimaryGeneratorAction | ( | ) |
Definition at line 67 of file ExP01PrimaryGeneratorAction.cc.
References fParticleGun.
|
virtual |
Implements G4VUserPrimaryGeneratorAction.
Definition at line 74 of file ExP01PrimaryGeneratorAction.cc.
References cm, fMyDetector, fParticleGun, G4ParticleGun::GeneratePrimaryVertex(), ExP01DetectorConstruction::GetWorldFullLength(), position, and G4VPrimaryGenerator::SetParticlePosition().
|
private |
Definition at line 59 of file ExP01PrimaryGeneratorAction.hh.
Referenced by GeneratePrimaries().
|
private |
Definition at line 58 of file ExP01PrimaryGeneratorAction.hh.
Referenced by ExP01PrimaryGeneratorAction(), GeneratePrimaries(), and ~ExP01PrimaryGeneratorAction().