Geant4
10.01.p03
|
The primary generator action class with particle gun. More...
#include <B1PrimaryGeneratorAction.hh>
Public Member Functions | |
B1PrimaryGeneratorAction () | |
virtual | ~B1PrimaryGeneratorAction () |
virtual void | GeneratePrimaries (G4Event *) |
const G4ParticleGun * | GetParticleGun () const |
B1PrimaryGeneratorAction () | |
virtual | ~B1PrimaryGeneratorAction () |
virtual void | GeneratePrimaries (G4Event *) |
const G4ParticleGun * | GetParticleGun () const |
B1PrimaryGeneratorAction () | |
virtual | ~B1PrimaryGeneratorAction () |
virtual void | GeneratePrimaries (G4Event *) |
const G4ParticleGun * | GetParticleGun () const |
Public Member Functions inherited from G4VUserPrimaryGeneratorAction | |
G4VUserPrimaryGeneratorAction () | |
virtual | ~G4VUserPrimaryGeneratorAction () |
Private Attributes | |
G4ParticleGun * | fParticleGun |
G4Box * | fEnvelopeBox |
The primary generator action class with particle gun.
The default kinematic is a 6 MeV gamma, randomly distribued in front of the phantom across 80% of the (X,Y) phantom size.
Definition at line 47 of file B1PrimaryGeneratorAction.hh.
B1PrimaryGeneratorAction::B1PrimaryGeneratorAction | ( | ) |
Definition at line 45 of file B1PrimaryGeneratorAction.cc.
References G4ParticleTable::FindParticle(), fParticleGun, G4ParticleTable::GetParticleTable(), MeV, G4ParticleGun::SetParticleDefinition(), G4ParticleGun::SetParticleEnergy(), and G4ParticleGun::SetParticleMomentumDirection().
|
virtual |
Definition at line 65 of file B1PrimaryGeneratorAction.cc.
References fParticleGun.
B1PrimaryGeneratorAction::B1PrimaryGeneratorAction | ( | ) |
|
virtual |
B1PrimaryGeneratorAction::B1PrimaryGeneratorAction | ( | ) |
|
virtual |
|
virtual |
Implements G4VUserPrimaryGeneratorAction.
Definition at line 72 of file B1PrimaryGeneratorAction.cc.
References fEnvelopeBox, fParticleGun, G4Exception(), G4UniformRand, G4ParticleGun::GeneratePrimaryVertex(), G4LogicalVolumeStore::GetInstance(), G4LogicalVolume::GetSolid(), G4LogicalVolumeStore::GetVolume(), G4Box::GetXHalfLength(), G4Box::GetZHalfLength(), JustWarning, G4VPrimaryGenerator::SetParticlePosition(), and G4InuclParticleNames::z0.
|
virtual |
Implements G4VUserPrimaryGeneratorAction.
|
virtual |
Implements G4VUserPrimaryGeneratorAction.
|
inline |
Definition at line 57 of file B1PrimaryGeneratorAction.hh.
References fParticleGun.
|
inline |
Definition at line 57 of file B1PrimaryGeneratorAction.hh.
References fParticleGun.
Referenced by B1RunAction::EndOfRunAction(), and B1ConRunAction::EndOfRunAction().
|
inline |
Definition at line 57 of file B1PrimaryGeneratorAction.hh.
References fParticleGun.
|
private |
Definition at line 61 of file B1PrimaryGeneratorAction.hh.
Referenced by GeneratePrimaries().
|
private |
Definition at line 60 of file B1PrimaryGeneratorAction.hh.
Referenced by B1PrimaryGeneratorAction(), GeneratePrimaries(), GetParticleGun(), and ~B1PrimaryGeneratorAction().