Geant4
10.00.p01
|
User primary particle generator class. More...
#include <RE02PrimaryGeneratorAction.hh>
Public Member Functions | |
RE02PrimaryGeneratorAction () | |
~RE02PrimaryGeneratorAction () | |
virtual void | GeneratePrimaries (G4Event *) |
Public Member Functions inherited from G4VUserPrimaryGeneratorAction | |
G4VUserPrimaryGeneratorAction () | |
virtual | ~G4VUserPrimaryGeneratorAction () |
Private Attributes | |
G4double | fSigmaPosition |
G4ParticleGun * | fParticleGun |
User primary particle generator class.
Definition at line 51 of file RE02PrimaryGeneratorAction.hh.
RE02PrimaryGeneratorAction::RE02PrimaryGeneratorAction | ( | ) |
Definition at line 45 of file RE02PrimaryGeneratorAction.cc.
References cm, G4ParticleTable::FindParticle(), fParticleGun, fSigmaPosition, G4ParticleTable::GetParticleTable(), MeV, mm, position, G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), G4ParticleGun::SetParticleMomentumDirection(), and G4VPrimaryGenerator::SetParticlePosition().
RE02PrimaryGeneratorAction::~RE02PrimaryGeneratorAction | ( | ) |
Definition at line 72 of file RE02PrimaryGeneratorAction.cc.
References fParticleGun.
|
virtual |
Implements G4VUserPrimaryGeneratorAction.
Definition at line 79 of file RE02PrimaryGeneratorAction.cc.
References fParticleGun, fSigmaPosition, G4UniformRand, G4ParticleGun::GeneratePrimaryVertex(), G4VPrimaryGenerator::GetParticlePosition(), position, and G4VPrimaryGenerator::SetParticlePosition().
|
private |
Definition at line 62 of file RE02PrimaryGeneratorAction.hh.
Referenced by GeneratePrimaries(), RE02PrimaryGeneratorAction(), and ~RE02PrimaryGeneratorAction().
|
private |
Definition at line 61 of file RE02PrimaryGeneratorAction.hh.
Referenced by GeneratePrimaries(), and RE02PrimaryGeneratorAction().