Geant4
10.02.p02
|
#include <PrimaryGeneratorGun1.hh>
Public Member Functions | |
PrimaryGeneratorGun1 () | |
~PrimaryGeneratorGun1 () | |
virtual void | GeneratePrimaries (G4Event *) |
Public Member Functions inherited from G4VUserPrimaryGeneratorAction | |
G4VUserPrimaryGeneratorAction () | |
virtual | ~G4VUserPrimaryGeneratorAction () |
Private Attributes | |
G4ParticleGun * | fParticleGun |
Definition at line 46 of file PrimaryGeneratorGun1.hh.
PrimaryGeneratorGun1::PrimaryGeneratorGun1 | ( | ) |
Definition at line 47 of file PrimaryGeneratorGun1.cc.
References eV, G4ParticleTable::FindParticle(), fParticleGun, G4ParticleTable::GetParticleTable(), G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), and G4VPrimaryGenerator::SetParticlePosition().
PrimaryGeneratorGun1::~PrimaryGeneratorGun1 | ( | ) |
Definition at line 64 of file PrimaryGeneratorGun1.cc.
References fParticleGun.
|
virtual |
Implements G4VUserPrimaryGeneratorAction.
Definition at line 71 of file PrimaryGeneratorGun1.cc.
References fParticleGun, G4UniformRand, G4ParticleGun::GeneratePrimaryVertex(), G4ParticleGun::SetParticleMomentumDirection(), and twopi.
|
private |
Definition at line 56 of file PrimaryGeneratorGun1.hh.
Referenced by GeneratePrimaries(), PrimaryGeneratorGun1(), and ~PrimaryGeneratorGun1().