Geant4
10.02.p02
|
User primary particle generator class. More...
#include <RE04PrimaryGeneratorAction.hh>
Public Member Functions | |
RE04PrimaryGeneratorAction () | |
virtual | ~RE04PrimaryGeneratorAction () |
virtual void | GeneratePrimaries (G4Event *) |
Public Member Functions inherited from G4VUserPrimaryGeneratorAction | |
G4VUserPrimaryGeneratorAction () | |
virtual | ~G4VUserPrimaryGeneratorAction () |
Private Attributes | |
G4ParticleGun * | fParticleGun |
User primary particle generator class.
Definition at line 48 of file RE04PrimaryGeneratorAction.hh.
RE04PrimaryGeneratorAction::RE04PrimaryGeneratorAction | ( | ) |
Definition at line 41 of file RE04PrimaryGeneratorAction.cc.
References cm, G4ParticleTable::FindParticle(), fParticleGun, G4ParticleTable::GetParticleTable(), GeV, G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), G4ParticleGun::SetParticleMomentumDirection(), and G4VPrimaryGenerator::SetParticlePosition().
|
virtual |
Definition at line 60 of file RE04PrimaryGeneratorAction.cc.
References fParticleGun.
|
virtual |
Implements G4VUserPrimaryGeneratorAction.
Definition at line 66 of file RE04PrimaryGeneratorAction.cc.
References cm, fParticleGun, G4UniformRand, G4ParticleGun::GeneratePrimaryVertex(), and G4VPrimaryGenerator::SetParticlePosition().
|
private |
Definition at line 58 of file RE04PrimaryGeneratorAction.hh.
Referenced by GeneratePrimaries(), RE04PrimaryGeneratorAction(), and ~RE04PrimaryGeneratorAction().