Geant4
10.03
|
#include <PrimaryGenerator.hh>
Public Member Functions | |
PrimaryGenerator () | |
~PrimaryGenerator () | |
virtual void | GeneratePrimaryVertex (G4Event *) |
Public Member Functions inherited from G4VPrimaryGenerator | |
G4VPrimaryGenerator () | |
virtual | ~G4VPrimaryGenerator () |
G4ThreeVector | GetParticlePosition () |
G4double | GetParticleTime () |
void | SetParticlePosition (G4ThreeVector aPosition) |
void | SetParticleTime (G4double aTime) |
Additional Inherited Members | |
Static Public Member Functions inherited from G4VPrimaryGenerator | |
static G4bool | CheckVertexInsideWorld (const G4ThreeVector &pos) |
Protected Attributes inherited from G4VPrimaryGenerator | |
G4ThreeVector | particle_position |
G4double | particle_time |
Definition at line 44 of file PrimaryGenerator.hh.
PrimaryGenerator::PrimaryGenerator | ( | ) |
Definition at line 48 of file PrimaryGenerator.cc.
PrimaryGenerator::~PrimaryGenerator | ( | ) |
Definition at line 54 of file PrimaryGenerator.cc.
|
virtual |
Implements G4VPrimaryGenerator.
Definition at line 59 of file PrimaryGenerator.cc.
References alpha, deg, G4ParticleTable::FindParticle(), G4UniformRand, G4ParticleTable::GetParticleTable(), GeV, keV, MeV, mm, pi, s, G4PrimaryParticle::SetKineticEnergy(), G4PrimaryParticle::SetMomentumDirection(), G4PrimaryVertex::SetPrimary(), and twopi.