Geant4
10.02
|
Example of primary generator action. More...
#include <ExTGPrimaryGeneratorAction.hh>
Public Member Functions | |
ExTGPrimaryGeneratorAction () | |
~ExTGPrimaryGeneratorAction () | |
void | GeneratePrimaries (G4Event *) |
Public Member Functions inherited from G4VUserPrimaryGeneratorAction | |
G4VUserPrimaryGeneratorAction () | |
virtual | ~G4VUserPrimaryGeneratorAction () |
Private Attributes | |
G4ParticleGun * | fParticleGun |
Example of primary generator action.
Definition at line 41 of file ExTGPrimaryGeneratorAction.hh.
ExTGPrimaryGeneratorAction::ExTGPrimaryGeneratorAction | ( | ) |
Definition at line 40 of file ExTGPrimaryGeneratorAction.cc.
References G4ParticleTable::FindParticle(), fParticleGun, G4ParticleTable::GetParticleTable(), MeV, G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), and G4ParticleGun::SetParticleMomentumDirection().
ExTGPrimaryGeneratorAction::~ExTGPrimaryGeneratorAction | ( | ) |
Definition at line 56 of file ExTGPrimaryGeneratorAction.cc.
References fParticleGun.
|
virtual |
Implements G4VUserPrimaryGeneratorAction.
Definition at line 62 of file ExTGPrimaryGeneratorAction.cc.
References cm, fParticleGun, G4ParticleGun::GeneratePrimaryVertex(), and G4VPrimaryGenerator::SetParticlePosition().
|
private |
Definition at line 52 of file ExTGPrimaryGeneratorAction.hh.
Referenced by ExTGPrimaryGeneratorAction(), GeneratePrimaries(), and ~ExTGPrimaryGeneratorAction().