Geant4.10
|
Primary generator action for GDML sensitive detector example. More...
#include <G04PrimaryGeneratorAction.hh>
Public Member Functions | |
G04PrimaryGeneratorAction () | |
~G04PrimaryGeneratorAction () | |
virtual void | GeneratePrimaries (G4Event *anEvent) |
![]() | |
G4VUserPrimaryGeneratorAction () | |
virtual | ~G4VUserPrimaryGeneratorAction () |
Primary generator action for GDML sensitive detector example.
Definition at line 46 of file G04PrimaryGeneratorAction.hh.
G04PrimaryGeneratorAction::G04PrimaryGeneratorAction | ( | ) |
Definition at line 43 of file G04PrimaryGeneratorAction.cc.
References G4ParticleTable::FindParticle(), G4ParticleTable::GetParticleTable(), python.hepunit::GeV, python.hepunit::m, G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), and G4VPrimaryGenerator::SetParticlePosition().
G04PrimaryGeneratorAction::~G04PrimaryGeneratorAction | ( | ) |
Definition at line 60 of file G04PrimaryGeneratorAction.cc.
Implements G4VUserPrimaryGeneratorAction.
Definition at line 67 of file G04PrimaryGeneratorAction.cc.
References G4ParticleGun::GeneratePrimaryVertex(), G4Event::GetEventID(), G4ParticleGun::SetParticleMomentumDirection(), CLHEP::Hep3Vector::setY(), CLHEP::Hep3Vector::setZ(), and test::v.