Geant4.10
|
#include <F06PrimaryGeneratorAction.hh>
Public Member Functions | |
F06PrimaryGeneratorAction (void) | |
virtual | ~F06PrimaryGeneratorAction () |
virtual void | GeneratePrimaries (G4Event *) |
![]() | |
G4VUserPrimaryGeneratorAction () | |
virtual | ~G4VUserPrimaryGeneratorAction () |
Definition at line 46 of file F06PrimaryGeneratorAction.hh.
F06PrimaryGeneratorAction::F06PrimaryGeneratorAction | ( | void | ) |
Definition at line 49 of file F06PrimaryGeneratorAction.cc.
References G4ParticleTable::FindParticle(), G4cout, G4endl, G4ParticleTable::GetParticleTable(), G4ParticleDefinition::GetPDGCharge(), G4ParticleDefinition::GetPDGMagneticMoment(), G4ParticleDefinition::GetPDGMass(), and G4ParticleGun::SetParticleDefinition().
|
virtual |
Definition at line 121 of file F06PrimaryGeneratorAction.cc.
Implements G4VUserPrimaryGeneratorAction.
Definition at line 128 of file F06PrimaryGeneratorAction.cc.
References python.hepunit::eV, G4UniformRand, G4ParticleGun::GeneratePrimaryVertex(), python.hepunit::pi, G4ParticleGun::SetParticleEnergy(), G4ParticleGun::SetParticleMomentumDirection(), G4ParticleGun::SetParticlePolarization(), G4VPrimaryGenerator::SetParticlePosition(), test::x, and z.