Geant4
10.03
|
#include <PrimaryGeneratorAction1.hh>
Public Member Functions | |
PrimaryGeneratorAction1 (G4ParticleGun *) | |
~PrimaryGeneratorAction1 () | |
void | GeneratePrimaries (G4Event *) |
Private Attributes | |
G4ParticleGun * | fParticleGun |
Definition at line 46 of file PrimaryGeneratorAction1.hh.
PrimaryGeneratorAction1::PrimaryGeneratorAction1 | ( | G4ParticleGun * | gun | ) |
Definition at line 48 of file PrimaryGeneratorAction1.cc.
PrimaryGeneratorAction1::~PrimaryGeneratorAction1 | ( | ) |
Definition at line 54 of file PrimaryGeneratorAction1.cc.
void PrimaryGeneratorAction1::GeneratePrimaries | ( | G4Event * | anEvent | ) |
Definition at line 59 of file PrimaryGeneratorAction1.cc.
References alpha, deg, fParticleGun, G4UniformRand, G4ParticleGun::GeneratePrimaryVertex(), G4PrimaryVertex::GetNext(), G4Event::GetPrimaryVertex(), GeV, keV, MeV, mm, pi, s, G4ParticleGun::SetParticleEnergy(), G4ParticleGun::SetParticleMomentumDirection(), G4VPrimaryGenerator::SetParticlePosition(), G4PrimaryVertex::SetT0(), and twopi.
|
private |
Definition at line 56 of file PrimaryGeneratorAction1.hh.
Referenced by GeneratePrimaries().