Geant4
10.02.p02
|
The primary generator action class with particle gum. More...
#include <B3PrimaryGeneratorAction.hh>
Public Member Functions | |
B3PrimaryGeneratorAction () | |
virtual | ~B3PrimaryGeneratorAction () |
virtual void | GeneratePrimaries (G4Event *) |
const G4ParticleGun * | GetParticleGun () const |
B3PrimaryGeneratorAction () | |
virtual | ~B3PrimaryGeneratorAction () |
virtual void | GeneratePrimaries (G4Event *) |
const G4ParticleGun * | GetParticleGun () const |
Public Member Functions inherited from G4VUserPrimaryGeneratorAction | |
G4VUserPrimaryGeneratorAction () | |
virtual | ~G4VUserPrimaryGeneratorAction () |
Private Attributes | |
G4ParticleGun * | fParticleGun |
The primary generator action class with particle gum.
It defines an ion (F18), at rest, randomly distribued within a zone in a patient defined in GeneratePrimaries(). Ion F18 can be changed with the G4ParticleGun commands (see run2.mac).
Definition at line 47 of file B3PrimaryGeneratorAction.hh.
B3PrimaryGeneratorAction::B3PrimaryGeneratorAction | ( | ) |
Definition at line 45 of file B3PrimaryGeneratorAction.cc.
References eV, G4ParticleTable::FindParticle(), fParticleGun, G4ParticleTable::GetParticleTable(), G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), G4ParticleGun::SetParticleMomentumDirection(), and G4VPrimaryGenerator::SetParticlePosition().
|
virtual |
Definition at line 65 of file B3PrimaryGeneratorAction.cc.
References fParticleGun.
B3PrimaryGeneratorAction::B3PrimaryGeneratorAction | ( | ) |
|
virtual |
|
virtual |
G4double x0 = 0*cm, y0 = 0*cm, z0 = 0*cm; G4double dx0 = 0*cm, dy0 = 0*cm, dz0 = 0*cm;
Implements G4VUserPrimaryGeneratorAction.
Definition at line 72 of file B3PrimaryGeneratorAction.cc.
References A(), G4ChargedGeantino::ChargedGeantino(), cm, eplus, fParticleGun, G4UniformRand, G4ParticleGun::GeneratePrimaryVertex(), G4IonTable::GetIon(), G4IonTable::GetIonTable(), G4ParticleGun::GetParticleDefinition(), keV, G4ParticleGun::SetParticleCharge(), G4ParticleGun::SetParticleDefinition(), G4VPrimaryGenerator::SetParticlePosition(), and G4InuclParticleNames::z0.
|
virtual |
Implements G4VUserPrimaryGeneratorAction.
|
inline |
Definition at line 55 of file B3PrimaryGeneratorAction.hh.
References fParticleGun.
|
inline |
Definition at line 55 of file B3PrimaryGeneratorAction.hh.
References fParticleGun.
Referenced by B3aRunAction::EndOfRunAction(), and B3bRunAction::EndOfRunAction().
|
private |
Definition at line 58 of file B3PrimaryGeneratorAction.hh.
Referenced by B3PrimaryGeneratorAction(), GeneratePrimaries(), GetParticleGun(), and ~B3PrimaryGeneratorAction().