Geant4
10.02.p02
|
Minimal primary generator action to demonstrate the use of GDML geometries. More...
#include <G01PrimaryGeneratorAction.hh>
Public Member Functions | |
G01PrimaryGeneratorAction () | |
~G01PrimaryGeneratorAction () | |
virtual void | GeneratePrimaries (G4Event *anEvent) |
Public Member Functions inherited from G4VUserPrimaryGeneratorAction | |
G4VUserPrimaryGeneratorAction () | |
virtual | ~G4VUserPrimaryGeneratorAction () |
Private Attributes | |
G4ParticleGun * | fParticleGun |
Minimal primary generator action to demonstrate the use of GDML geometries.
Definition at line 46 of file G01PrimaryGeneratorAction.hh.
G01PrimaryGeneratorAction::G01PrimaryGeneratorAction | ( | ) |
Definition at line 43 of file G01PrimaryGeneratorAction.cc.
References G4ParticleTable::FindParticle(), fParticleGun, G4ParticleTable::GetParticleTable(), GeV, m, G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), and G4VPrimaryGenerator::SetParticlePosition().
G01PrimaryGeneratorAction::~G01PrimaryGeneratorAction | ( | ) |
Definition at line 60 of file G01PrimaryGeneratorAction.cc.
References fParticleGun.
|
virtual |
Implements G4VUserPrimaryGeneratorAction.
Definition at line 67 of file G01PrimaryGeneratorAction.cc.
References fParticleGun, G4ParticleGun::GeneratePrimaryVertex(), G4Event::GetEventID(), and G4ParticleGun::SetParticleMomentumDirection().
|
private |
Definition at line 57 of file G01PrimaryGeneratorAction.hh.
Referenced by G01PrimaryGeneratorAction(), GeneratePrimaries(), and ~G01PrimaryGeneratorAction().