Geant4.10
|
#include <RE02PrimaryGeneratorAction.hh>
Public Member Functions | |
RE02PrimaryGeneratorAction () | |
~RE02PrimaryGeneratorAction () | |
virtual void | GeneratePrimaries (G4Event *) |
![]() | |
G4VUserPrimaryGeneratorAction () | |
virtual | ~G4VUserPrimaryGeneratorAction () |
User primary particle generator class
Definition at line 51 of file RE02PrimaryGeneratorAction.hh.
RE02PrimaryGeneratorAction::RE02PrimaryGeneratorAction | ( | ) |
Definition at line 45 of file RE02PrimaryGeneratorAction.cc.
References python.hepunit::cm, G4ParticleTable::FindParticle(), G4ParticleTable::GetParticleTable(), python.hepunit::MeV, python.hepunit::mm, G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), G4ParticleGun::SetParticleMomentumDirection(), and G4VPrimaryGenerator::SetParticlePosition().
RE02PrimaryGeneratorAction::~RE02PrimaryGeneratorAction | ( | ) |
Definition at line 72 of file RE02PrimaryGeneratorAction.cc.
Implements G4VUserPrimaryGeneratorAction.
Definition at line 79 of file RE02PrimaryGeneratorAction.cc.
References G4UniformRand, G4ParticleGun::GeneratePrimaryVertex(), G4VPrimaryGenerator::GetParticlePosition(), G4VPrimaryGenerator::SetParticlePosition(), CLHEP::Hep3Vector::setX(), and CLHEP::Hep3Vector::setY().