Geant4
10.02.p02
|
#include <PurgMagPrimaryGeneratorAction.hh>
Public Member Functions | |
PurgMagPrimaryGeneratorAction () | |
~PurgMagPrimaryGeneratorAction () | |
void | GeneratePrimaries (G4Event *) |
void | SetRndmVertex (G4bool val) |
Public Member Functions inherited from G4VUserPrimaryGeneratorAction | |
G4VUserPrimaryGeneratorAction () | |
virtual | ~G4VUserPrimaryGeneratorAction () |
Private Attributes | |
G4ParticleGun * | particleGun |
G4bool | rndmVertex |
Definition at line 52 of file PurgMagPrimaryGeneratorAction.hh.
PurgMagPrimaryGeneratorAction::PurgMagPrimaryGeneratorAction | ( | ) |
Definition at line 58 of file PurgMagPrimaryGeneratorAction.cc.
References G4Electron::Definition(), MeV, particleGun, G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), and G4ParticleGun::SetParticleMomentumDirection().
PurgMagPrimaryGeneratorAction::~PurgMagPrimaryGeneratorAction | ( | ) |
Definition at line 78 of file PurgMagPrimaryGeneratorAction.cc.
References particleGun.
|
virtual |
Implements G4VUserPrimaryGeneratorAction.
Definition at line 85 of file PurgMagPrimaryGeneratorAction.cc.
References cm, G4BestUnit, G4cout, G4ParticleGun::GeneratePrimaryVertex(), particleGun, G4VPrimaryGenerator::SetParticlePosition(), and G4InuclParticleNames::z0.
|
inline |
Definition at line 60 of file PurgMagPrimaryGeneratorAction.hh.
References rndmVertex.
|
private |
Definition at line 63 of file PurgMagPrimaryGeneratorAction.hh.
Referenced by GeneratePrimaries(), PurgMagPrimaryGeneratorAction(), and ~PurgMagPrimaryGeneratorAction().
|
private |
Definition at line 64 of file PurgMagPrimaryGeneratorAction.hh.
Referenced by SetRndmVertex().