ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
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 | setGunRadius (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 64 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 64 of file ML2PrimaryGenerationAction.hh
CML2PrimaryGenerationAction::CML2PrimaryGenerationAction | ( | void | ) |
Definition at line 48 of file ML2PrimaryGenerationAction.cc.
View newest version in sPHENIX GitHub at line 48 of file ML2PrimaryGenerationAction.cc
Referenced by GetInstance().
CML2PrimaryGenerationAction::~CML2PrimaryGenerationAction | ( | void | ) |
Definition at line 109 of file ML2PrimaryGenerationAction.cc.
View newest version in sPHENIX GitHub at line 109 of file ML2PrimaryGenerationAction.cc
References particleGun, and particles.
|
private |
Definition at line 192 of file ML2PrimaryGenerationAction.cc.
View newest version in sPHENIX GitHub at line 192 of file ML2PrimaryGenerationAction.cc
Referenced by GeneratePrimaries().
Definition at line 81 of file ML2PrimaryGenerationAction.cc.
View newest version in sPHENIX GitHub at line 81 of file ML2PrimaryGenerationAction.cc
References accTargetZPosition, id_phaseSpace, id_randomTarget, setGunCalculatedPhaseSpace(), and setGunRandom().
Referenced by main().
|
private |
Definition at line 197 of file ML2PrimaryGenerationAction.cc.
View newest version in sPHENIX GitHub at line 197 of file ML2PrimaryGenerationAction.cc
References a, G4RunManager::AbortRun(), accTargetZPosition, calculatedPhaseSpaceFileIN, d, Sparticle::dir, G4cout, G4endl, G4RunManager::GetRunManager(), in, Sparticle::kinEnergy, nMaxParticlesInRamPhaseSpace, particles, Sparticle::partPDGE, Sparticle::pos, CLHEP::Hep3Vector::set(), x, y, and z.
Referenced by GenerateFromCalculatedPhaseSpace().
|
private |
Definition at line 163 of file ML2PrimaryGenerationAction.cc.
View newest version in sPHENIX GitHub at line 163 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 147 of file ML2PrimaryGenerationAction.cc.
View newest version in sPHENIX GitHub at line 147 of file ML2PrimaryGenerationAction.cc
References accTargetZPosition, alpha, cosTheta, dir, ek, G4UniformRand, GunMeanEnergy, GunRadius, GunStdEnergy, mm, nRandomParticles, phi, pos, rho, CLHEP::Hep3Vector::set(), CLHEP::Hep3Vector::setX(), CLHEP::Hep3Vector::setY(), CLHEP::Hep3Vector::setZ(), G4INCL::DeJongSpin::shoot(), sinTheta, and twopi.
Referenced by GeneratePrimaries().
Implements G4VUserPrimaryGeneratorAction.
Definition at line 115 of file ML2PrimaryGenerationAction.cc.
View newest version in sPHENIX GitHub at line 115 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 54 of file ML2PrimaryGenerationAction.cc.
View newest version in sPHENIX GitHub at line 54 of file ML2PrimaryGenerationAction.cc
References CML2PrimaryGenerationAction(), and instance.
Referenced by main(), and CML2WorldConstruction::newGeometry().
|
inline |
Definition at line 95 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 95 of file ML2PrimaryGenerationAction.hh
References nRecycling.
Referenced by main().
|
inline |
Definition at line 96 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 96 of file ML2PrimaryGenerationAction.hh
References idParticleSource.
void CML2PrimaryGenerationAction::inizialize | ( | SPrimaryParticle * | primaryParticleData | ) |
Definition at line 62 of file ML2PrimaryGenerationAction.cc.
View newest version in sPHENIX GitHub at line 62 of file ML2PrimaryGenerationAction.cc
References electron, G4ParticleTable::FindParticle(), gamma, G4ParticleTable::GetParticleTable(), nParticle, nPhSpParticles, nRandomParticles, particle, particleGun, positron, PrimaryGenerationActionMessenger, primaryParticleData, and rm.
Referenced by main().
Definition at line 81 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 81 of file ML2PrimaryGenerationAction.hh
References calculatedPhaseSpaceFileIN.
|
private |
Definition at line 102 of file ML2PrimaryGenerationAction.cc.
View newest version in sPHENIX GitHub at line 102 of file ML2PrimaryGenerationAction.cc
References idCurrentParticleSource, idParticleSource, nMaxParticlesInRamPhaseSpace, particleGun, particles, and G4ParticleGun::SetNumberOfParticles().
Referenced by design().
Definition at line 78 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 78 of file ML2PrimaryGenerationAction.hh
References GunMeanEnergy.
Definition at line 80 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 80 of file ML2PrimaryGenerationAction.hh
References GunRadius.
|
private |
Definition at line 95 of file ML2PrimaryGenerationAction.cc.
View newest version in sPHENIX GitHub at line 95 of file ML2PrimaryGenerationAction.cc
References electron, idCurrentParticleSource, idParticleSource, particleGun, G4ParticleGun::SetNumberOfParticles(), and G4ParticleGun::SetParticleDefinition().
Referenced by design().
Definition at line 79 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 79 of file ML2PrimaryGenerationAction.hh
References GunStdEnergy.
Definition at line 75 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 75 of file ML2PrimaryGenerationAction.hh
References nLoopsPhSpParticles.
Definition at line 76 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 76 of file ML2PrimaryGenerationAction.hh
References G4cout, G4endl, and nMaxParticlesInRamPhaseSpace.
Definition at line 74 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 74 of file ML2PrimaryGenerationAction.hh
References nRecycling.
|
inline |
Definition at line 94 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 94 of file ML2PrimaryGenerationAction.hh
References rm.
Referenced by CML2WorldConstruction::newGeometry().
Definition at line 82 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 82 of file ML2PrimaryGenerationAction.hh
References id_phaseSpace, id_randomTarget, and sourceTypeName.
|
private |
Definition at line 113 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 113 of file ML2PrimaryGenerationAction.hh
Referenced by design(), fillParticlesContainer(), and GenerateFromRandom().
|
private |
Definition at line 121 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 121 of file ML2PrimaryGenerationAction.hh
Referenced by GenerateFromRandom().
|
private |
Definition at line 110 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 110 of file ML2PrimaryGenerationAction.hh
Referenced by fillParticlesContainer(), and setCalculatedPhaseSpaceFileIN().
|
private |
Definition at line 120 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 120 of file ML2PrimaryGenerationAction.hh
Referenced by GenerateFromRandom().
|
private |
Definition at line 115 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 115 of file ML2PrimaryGenerationAction.hh
Referenced by applySourceRotation(), GenerateFromCalculatedPhaseSpace(), GenerateFromRandom(), and GeneratePrimaries().
|
private |
Definition at line 116 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 116 of file ML2PrimaryGenerationAction.hh
Referenced by GenerateFromCalculatedPhaseSpace(), GenerateFromRandom(), and GeneratePrimaries().
|
private |
Definition at line 124 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 124 of file ML2PrimaryGenerationAction.hh
Referenced by GenerateFromCalculatedPhaseSpace(), inizialize(), and setGunRandom().
|
private |
Definition at line 123 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 123 of file ML2PrimaryGenerationAction.hh
Referenced by GenerateFromCalculatedPhaseSpace(), and inizialize().
|
private |
Definition at line 109 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 109 of file ML2PrimaryGenerationAction.hh
Referenced by GenerateFromRandom(), and setGunMeanEnergy().
|
private |
Definition at line 109 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 109 of file ML2PrimaryGenerationAction.hh
Referenced by GenerateFromRandom(), and setGunRadius().
|
private |
Definition at line 109 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 109 of file ML2PrimaryGenerationAction.hh
Referenced by GenerateFromRandom(), and setGunStdEnergy().
|
private |
Definition at line 128 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 128 of file ML2PrimaryGenerationAction.hh
Referenced by GeneratePrimaries(), setGunCalculatedPhaseSpace(), and setGunRandom().
|
private |
Definition at line 108 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 108 of file ML2PrimaryGenerationAction.hh
Referenced by getSourceTypeName(), setGunCalculatedPhaseSpace(), and setGunRandom().
|
staticprivate |
Definition at line 106 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 106 of file ML2PrimaryGenerationAction.hh
Referenced by GetInstance().
|
private |
Definition at line 119 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 119 of file ML2PrimaryGenerationAction.hh
|
private |
Definition at line 108 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 108 of file ML2PrimaryGenerationAction.hh
Referenced by setNLoopsPhSpParticles().
|
private |
Definition at line 108 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 108 of file ML2PrimaryGenerationAction.hh
Referenced by fillParticlesContainer(), GenerateFromCalculatedPhaseSpace(), setGunCalculatedPhaseSpace(), and setNMaxParticlesInRamPhaseSpace().
|
private |
Definition at line 128 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 128 of file ML2PrimaryGenerationAction.hh
Referenced by GenerateFromCalculatedPhaseSpace(), and inizialize().
|
private |
Definition at line 128 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 128 of file ML2PrimaryGenerationAction.hh
Referenced by GenerateFromCalculatedPhaseSpace(), and inizialize().
|
private |
Definition at line 128 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 128 of file ML2PrimaryGenerationAction.hh
Referenced by GenerateFromRandom(), and inizialize().
|
private |
Definition at line 108 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 108 of file ML2PrimaryGenerationAction.hh
Referenced by GeneratePrimaries(), getNrecycling(), and setNRecycling().
|
private |
Definition at line 127 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 127 of file ML2PrimaryGenerationAction.hh
Referenced by inizialize().
|
private |
Definition at line 122 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 122 of file ML2PrimaryGenerationAction.hh
Referenced by GenerateFromCalculatedPhaseSpace(), GeneratePrimaries(), inizialize(), setGunCalculatedPhaseSpace(), setGunRandom(), and ~CML2PrimaryGenerationAction().
|
private |
Definition at line 127 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 127 of file ML2PrimaryGenerationAction.hh
Referenced by fillParticlesContainer(), GenerateFromCalculatedPhaseSpace(), setGunCalculatedPhaseSpace(), and ~CML2PrimaryGenerationAction().
|
private |
Definition at line 120 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 120 of file ML2PrimaryGenerationAction.hh
Referenced by GenerateFromRandom().
|
private |
Definition at line 115 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 115 of file ML2PrimaryGenerationAction.hh
Referenced by applySourceRotation(), GenerateFromCalculatedPhaseSpace(), GenerateFromRandom(), and GeneratePrimaries().
|
private |
Definition at line 125 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 125 of file ML2PrimaryGenerationAction.hh
Referenced by GenerateFromCalculatedPhaseSpace(), and inizialize().
|
private |
Definition at line 112 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 112 of file ML2PrimaryGenerationAction.hh
Referenced by inizialize().
|
private |
Definition at line 126 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 126 of file ML2PrimaryGenerationAction.hh
Referenced by GeneratePrimaries(), and inizialize().
|
private |
Definition at line 121 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 121 of file ML2PrimaryGenerationAction.hh
Referenced by GenerateFromRandom().
|
private |
Definition at line 117 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 117 of file ML2PrimaryGenerationAction.hh
Referenced by applySourceRotation(), inizialize(), and setRotation().
|
private |
Definition at line 120 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 120 of file ML2PrimaryGenerationAction.hh
Referenced by GenerateFromRandom().
|
private |
Definition at line 129 of file ML2PrimaryGenerationAction.hh.
View newest version in sPHENIX GitHub at line 129 of file ML2PrimaryGenerationAction.hh
Referenced by setSourceTypeName().