Geant4
10.00.p02
|
#include <ML2PrimaryGenerationAction.hh>
Public Member Functions | |
CML2PrimaryGenerationAction (void) | |
~CML2PrimaryGenerationAction (void) | |
void | design (G4double accTargetZPosition) |
void | GeneratePrimaries (G4Event *anEvent) |
void | inizialize (SPrimaryParticle *primaryParticleData) |
void | setNRecycling (G4int val) |
void | setNLoopsPhSpParticles (G4int val) |
void | setNMaxParticlesInRamPhaseSpace (G4int val) |
void | setGunMeanEnergy (G4double val) |
void | setGunStdEnergy (G4double val) |
void | setGunRadious (G4double val) |
void | setCalculatedPhaseSpaceFileIN (G4String val) |
void | setSourceTypeName (G4String val) |
void | setRotation (G4RotationMatrix *val) |
G4int | getNrecycling () |
G4int | getSourceTypeName () |
Public Member Functions inherited from G4VUserPrimaryGeneratorAction | |
G4VUserPrimaryGeneratorAction () | |
virtual | ~G4VUserPrimaryGeneratorAction () |
Static Public Member Functions | |
static CML2PrimaryGenerationAction * | GetInstance (void) |
Private Member Functions | |
void | setGunRandom () |
void | setGunCalculatedPhaseSpace () |
void | GenerateFromRandom () |
void | GenerateFromCalculatedPhaseSpace () |
void | fillParticlesContainer () |
void | applySourceRotation () |
Static Private Attributes | |
static CML2PrimaryGenerationAction * | instance = 0 |
Definition at line 65 of file ML2PrimaryGenerationAction.hh.
CML2PrimaryGenerationAction::CML2PrimaryGenerationAction | ( | void | ) |
Definition at line 47 of file ML2PrimaryGenerationAction.cc.
Referenced by GetInstance().
CML2PrimaryGenerationAction::~CML2PrimaryGenerationAction | ( | void | ) |
Definition at line 108 of file ML2PrimaryGenerationAction.cc.
References particleGun, and particles.
|
private |
Definition at line 191 of file ML2PrimaryGenerationAction.cc.
Referenced by GeneratePrimaries().
void CML2PrimaryGenerationAction::design | ( | G4double | accTargetZPosition | ) |
Definition at line 80 of file ML2PrimaryGenerationAction.cc.
References accTargetZPosition, id_phaseSpace, id_randomTarget, setGunCalculatedPhaseSpace(), and setGunRandom().
Referenced by main().
|
private |
Definition at line 196 of file ML2PrimaryGenerationAction.cc.
References a, G4RunManager::AbortRun(), accTargetZPosition, calculatedPhaseSpaceFileIN, Sparticle::dir, G4endl, G4RunManager::GetRunManager(), Sparticle::kinEnergy, nMaxParticlesInRamPhaseSpace, particles, Sparticle::partPDGE, Sparticle::pos, and z.
Referenced by GenerateFromCalculatedPhaseSpace().
|
private |
Definition at line 162 of file ML2PrimaryGenerationAction.cc.
References Sparticle::dir, dir, ek, electron, fillParticlesContainer(), gamma, Sparticle::kinEnergy, nMaxParticlesInRamPhaseSpace, nParticle, nPhSpParticles, particleGun, particles, Sparticle::pos, pos, positron, and G4ParticleGun::SetParticleDefinition().
Referenced by GeneratePrimaries().
|
private |
Definition at line 146 of file ML2PrimaryGenerationAction.cc.
References accTargetZPosition, alfa, cosTheta, dir, ek, G4UniformRand, GunMeanEnegy, GunRadious, GunStdEnegy, mm, nRandomParticles, phi, pos, ro, G4INCL::DeJongSpin::shoot(), and sinTheta.
Referenced by GeneratePrimaries().
|
virtual |
Implements G4VUserPrimaryGeneratorAction.
Definition at line 114 of file ML2PrimaryGenerationAction.cc.
References applySourceRotation(), dir, ek, GenerateFromCalculatedPhaseSpace(), GenerateFromRandom(), G4ParticleGun::GeneratePrimaryVertex(), G4ParticleGun::GetParticleDefinition(), G4ParticleDefinition::GetPDGEncoding(), id_phaseSpace, id_randomTarget, idCurrentParticleSource, MeV, mm, SPrimaryParticle::nPrimaryParticle, nRecycling, particleGun, SPrimaryParticle::partPDGE, pos, primaryParticleData, G4ParticleGun::SetParticleEnergy(), G4ParticleGun::SetParticleMomentumDirection(), and G4VPrimaryGenerator::SetParticlePosition().
|
static |
Definition at line 53 of file ML2PrimaryGenerationAction.cc.
References CML2PrimaryGenerationAction(), and instance.
Referenced by main(), CML2WorldConstruction::newGeometry(), and CML2AcceleratorConstructionMessenger::SetNewValue().
|
inline |
Definition at line 96 of file ML2PrimaryGenerationAction.hh.
References nRecycling.
Referenced by main().
|
inline |
Definition at line 97 of file ML2PrimaryGenerationAction.hh.
References idParticleSource.
void CML2PrimaryGenerationAction::inizialize | ( | SPrimaryParticle * | primaryParticleData | ) |
Definition at line 61 of file ML2PrimaryGenerationAction.cc.
References electron, G4ParticleTable::FindParticle(), gamma, G4ParticleTable::GetParticleTable(), nParticle, nPhSpParticles, SPrimaryParticle::nPrimaryParticle, nRandomParticles, particle, particleGun, SPrimaryParticle::partPDGE, positron, PrimaryGenerationActionMessenger, primaryParticleData, and rm.
Referenced by main().
|
inline |
Definition at line 82 of file ML2PrimaryGenerationAction.hh.
References calculatedPhaseSpaceFileIN.
Referenced by CML2PrimaryGenerationActionMessenger::SetNewValue().
|
private |
Definition at line 101 of file ML2PrimaryGenerationAction.cc.
References idCurrentParticleSource, idParticleSource, nMaxParticlesInRamPhaseSpace, particleGun, particles, and G4ParticleGun::SetNumberOfParticles().
Referenced by design().
|
inline |
Definition at line 79 of file ML2PrimaryGenerationAction.hh.
References GunMeanEnegy.
Referenced by CML2PrimaryGenerationActionMessenger::SetNewValue().
|
inline |
Definition at line 81 of file ML2PrimaryGenerationAction.hh.
References GunRadious.
Referenced by CML2PrimaryGenerationActionMessenger::SetNewValue().
|
private |
Definition at line 94 of file ML2PrimaryGenerationAction.cc.
References electron, idCurrentParticleSource, idParticleSource, particleGun, G4ParticleGun::SetNumberOfParticles(), and G4ParticleGun::SetParticleDefinition().
Referenced by design().
|
inline |
Definition at line 80 of file ML2PrimaryGenerationAction.hh.
References GunStdEnegy.
Referenced by CML2PrimaryGenerationActionMessenger::SetNewValue().
|
inline |
Definition at line 76 of file ML2PrimaryGenerationAction.hh.
References nLoopsPhSpParticles.
|
inline |
Definition at line 77 of file ML2PrimaryGenerationAction.hh.
References G4endl, and nMaxParticlesInRamPhaseSpace.
Referenced by CML2PrimaryGenerationActionMessenger::SetNewValue().
|
inline |
Definition at line 75 of file ML2PrimaryGenerationAction.hh.
References nRecycling.
Referenced by CML2PrimaryGenerationActionMessenger::SetNewValue().
|
inline |
Definition at line 95 of file ML2PrimaryGenerationAction.hh.
References rm.
Referenced by CML2WorldConstruction::newGeometry(), and CML2AcceleratorConstructionMessenger::SetNewValue().
|
inline |
Definition at line 83 of file ML2PrimaryGenerationAction.hh.
References id_phaseSpace, id_randomTarget, and sourceTypeName.
Referenced by CML2PrimaryGenerationActionMessenger::SetNewValue().
|
private |
Definition at line 114 of file ML2PrimaryGenerationAction.hh.
Referenced by design(), fillParticlesContainer(), and GenerateFromRandom().
|
private |
Definition at line 122 of file ML2PrimaryGenerationAction.hh.
Referenced by GenerateFromRandom().
|
private |
Definition at line 111 of file ML2PrimaryGenerationAction.hh.
Referenced by fillParticlesContainer(), and setCalculatedPhaseSpaceFileIN().
|
private |
Definition at line 121 of file ML2PrimaryGenerationAction.hh.
Referenced by GenerateFromRandom().
|
private |
Definition at line 116 of file ML2PrimaryGenerationAction.hh.
Referenced by applySourceRotation(), GenerateFromCalculatedPhaseSpace(), GenerateFromRandom(), and GeneratePrimaries().
|
private |
Definition at line 117 of file ML2PrimaryGenerationAction.hh.
Referenced by GenerateFromCalculatedPhaseSpace(), GenerateFromRandom(), and GeneratePrimaries().
|
private |
Definition at line 125 of file ML2PrimaryGenerationAction.hh.
Referenced by GenerateFromCalculatedPhaseSpace(), inizialize(), and setGunRandom().
|
private |
Definition at line 124 of file ML2PrimaryGenerationAction.hh.
Referenced by GenerateFromCalculatedPhaseSpace(), and inizialize().
|
private |
Definition at line 110 of file ML2PrimaryGenerationAction.hh.
Referenced by GenerateFromRandom(), and setGunMeanEnergy().
|
private |
Definition at line 110 of file ML2PrimaryGenerationAction.hh.
Referenced by GenerateFromRandom(), and setGunRadious().
|
private |
Definition at line 110 of file ML2PrimaryGenerationAction.hh.
Referenced by GenerateFromRandom(), and setGunStdEnergy().
|
private |
Definition at line 129 of file ML2PrimaryGenerationAction.hh.
Referenced by GeneratePrimaries(), setGunCalculatedPhaseSpace(), and setGunRandom().
|
private |
Definition at line 109 of file ML2PrimaryGenerationAction.hh.
Referenced by getSourceTypeName(), setGunCalculatedPhaseSpace(), and setGunRandom().
|
staticprivate |
Definition at line 107 of file ML2PrimaryGenerationAction.hh.
Referenced by GetInstance().
|
private |
Definition at line 120 of file ML2PrimaryGenerationAction.hh.
|
private |
Definition at line 109 of file ML2PrimaryGenerationAction.hh.
Referenced by setNLoopsPhSpParticles().
|
private |
Definition at line 109 of file ML2PrimaryGenerationAction.hh.
Referenced by fillParticlesContainer(), GenerateFromCalculatedPhaseSpace(), setGunCalculatedPhaseSpace(), and setNMaxParticlesInRamPhaseSpace().
|
private |
Definition at line 129 of file ML2PrimaryGenerationAction.hh.
Referenced by GenerateFromCalculatedPhaseSpace(), and inizialize().
|
private |
Definition at line 129 of file ML2PrimaryGenerationAction.hh.
Referenced by GenerateFromCalculatedPhaseSpace(), and inizialize().
|
private |
Definition at line 129 of file ML2PrimaryGenerationAction.hh.
Referenced by GenerateFromRandom(), and inizialize().
|
private |
Definition at line 109 of file ML2PrimaryGenerationAction.hh.
Referenced by GeneratePrimaries(), getNrecycling(), and setNRecycling().
|
private |
Definition at line 128 of file ML2PrimaryGenerationAction.hh.
Referenced by inizialize().
|
private |
Definition at line 123 of file ML2PrimaryGenerationAction.hh.
Referenced by GenerateFromCalculatedPhaseSpace(), GeneratePrimaries(), inizialize(), setGunCalculatedPhaseSpace(), setGunRandom(), and ~CML2PrimaryGenerationAction().
|
private |
Definition at line 128 of file ML2PrimaryGenerationAction.hh.
Referenced by fillParticlesContainer(), GenerateFromCalculatedPhaseSpace(), setGunCalculatedPhaseSpace(), and ~CML2PrimaryGenerationAction().
|
private |
Definition at line 121 of file ML2PrimaryGenerationAction.hh.
Referenced by GenerateFromRandom().
|
private |
Definition at line 116 of file ML2PrimaryGenerationAction.hh.
Referenced by applySourceRotation(), GenerateFromCalculatedPhaseSpace(), GenerateFromRandom(), and GeneratePrimaries().
|
private |
Definition at line 126 of file ML2PrimaryGenerationAction.hh.
Referenced by GenerateFromCalculatedPhaseSpace(), and inizialize().
|
private |
Definition at line 113 of file ML2PrimaryGenerationAction.hh.
Referenced by inizialize().
|
private |
Definition at line 127 of file ML2PrimaryGenerationAction.hh.
Referenced by GeneratePrimaries(), and inizialize().
|
private |
Definition at line 118 of file ML2PrimaryGenerationAction.hh.
Referenced by applySourceRotation(), inizialize(), and setRotation().
|
private |
Definition at line 122 of file ML2PrimaryGenerationAction.hh.
Referenced by GenerateFromRandom().
|
private |
Definition at line 121 of file ML2PrimaryGenerationAction.hh.
Referenced by GenerateFromRandom().
|
private |
Definition at line 130 of file ML2PrimaryGenerationAction.hh.
Referenced by setSourceTypeName().