|
Geant4
10.02.p01
|
Example of primary generator action. More...
#include <ExTGPrimaryGeneratorAction.hh>
Inheritance diagram for ExTGPrimaryGeneratorAction:
Collaboration diagram for ExTGPrimaryGeneratorAction: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().
Here is the call graph for this function:| 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().
Here is the call graph for this function:
|
private |
Definition at line 52 of file ExTGPrimaryGeneratorAction.hh.
Referenced by ExTGPrimaryGeneratorAction(), GeneratePrimaries(), and ~ExTGPrimaryGeneratorAction().