Geant4-11
|
#include <G4GeneralParticleSource.hh>
Static Public Member Functions | |
static G4bool | CheckVertexInsideWorld (const G4ThreeVector &pos) |
Protected Attributes | |
G4ThreeVector | particle_position |
G4double | particle_time = 0.0 |
Private Member Functions | |
void | IntensityNormalization () |
Private Attributes | |
G4GeneralParticleSourceData * | GPSData = nullptr |
G4bool | normalised = false |
G4GeneralParticleSourceMessenger * | theMessenger = nullptr |
Definition at line 58 of file G4GeneralParticleSource.hh.
G4GeneralParticleSource::G4GeneralParticleSource | ( | ) |
Definition at line 49 of file G4GeneralParticleSource.cc.
References G4GeneralParticleSourceData::GetCurrentSource(), G4GeneralParticleSourceMessenger::GetInstance(), GPSData, G4GeneralParticleSourceData::Instance(), IntensityNormalization(), anonymous_namespace{G4GeneralParticleSource.cc}::messangerInit, G4GeneralParticleSourceMessenger::SetParticleGun(), and theMessenger.
G4GeneralParticleSource::~G4GeneralParticleSource | ( | ) |
Definition at line 72 of file G4GeneralParticleSource.cc.
References G4GeneralParticleSourceMessenger::Destroy(), and theMessenger.
void G4GeneralParticleSource::AddaSource | ( | G4double | aV | ) |
Definition at line 77 of file G4GeneralParticleSource.cc.
References G4GeneralParticleSourceData::AddASource(), G4GeneralParticleSourceData::GetCurrentSource(), GPSData, IntensityNormalization(), G4GeneralParticleSourceData::Lock(), G4GeneralParticleSourceMessenger::SetParticleGun(), theMessenger, and G4GeneralParticleSourceData::Unlock().
Referenced by G4GeneralParticleSourceMessenger::SetNewValue().
|
staticinherited |
Definition at line 43 of file G4VPrimaryGenerator.cc.
References G4TransportationManager::GetTransportationManager(), kInside, write_gdml::navigator, and pos.
void G4GeneralParticleSource::ClearAll | ( | ) |
Definition at line 158 of file G4GeneralParticleSource.cc.
References G4GeneralParticleSourceData::ClearSources(), GPSData, normalised, and G4GeneralParticleSourceData::Normalised().
Referenced by G4GeneralParticleSourceMessenger::SetNewValue().
void G4GeneralParticleSource::DeleteaSource | ( | G4int | aV | ) |
Definition at line 164 of file G4GeneralParticleSource.cc.
References G4GeneralParticleSourceData::DeleteASource(), G4cout, G4endl, G4GeneralParticleSourceData::GetIntensityVectorSize(), GPSData, normalised, and G4GeneralParticleSourceData::Normalised().
Referenced by G4GeneralParticleSourceMessenger::SetNewValue().
|
virtual |
Implements G4VPrimaryGenerator.
Definition at line 180 of file G4GeneralParticleSource.cc.
References G4UniformRand, G4SingleParticleSource::GeneratePrimaryVertex(), G4GeneralParticleSourceData::GetCurrentSource(), G4GeneralParticleSourceData::GetFlatSampling(), G4GeneralParticleSourceData::GetIntensityVectorSize(), G4GeneralParticleSourceData::GetMultipleVertex(), G4GeneralParticleSourceData::GetSourceProbability(), GPSData, IntensityNormalization(), G4GeneralParticleSourceData::Lock(), normalised, G4GeneralParticleSourceData::Normalised(), and G4GeneralParticleSourceData::Unlock().
|
inline |
Definition at line 84 of file G4GeneralParticleSource.hh.
References G4GeneralParticleSourceData::GetCurrentSource(), and GPSData.
|
inline |
Definition at line 87 of file G4GeneralParticleSource.hh.
References G4GeneralParticleSourceData::GetCurrentSourceIdx(), and GPSData.
Referenced by GetCurrentSourceIntensity(), and G4GeneralParticleSourceMessenger::SetNewValue().
|
inline |
Definition at line 90 of file G4GeneralParticleSource.hh.
References GetCurrentSourceIndex(), G4GeneralParticleSourceData::GetIntensity(), and GPSData.
Referenced by G4GeneralParticleSourceMessenger::SetNewValue().
|
inline |
Definition at line 135 of file G4GeneralParticleSource.hh.
References G4GeneralParticleSourceData::GetCurrentSource(), G4SingleParticleSource::GetNumberOfParticles(), and GPSData.
|
inline |
Definition at line 71 of file G4GeneralParticleSource.hh.
References G4GeneralParticleSourceData::GetSourceVectorSize(), and GPSData.
Referenced by G4GeneralParticleSourceMessenger::SetNewValue().
|
inline |
Definition at line 113 of file G4GeneralParticleSource.hh.
References G4GeneralParticleSourceData::GetCurrentSource(), G4SingleParticleSource::GetParticleDefinition(), and GPSData.
|
inline |
Definition at line 143 of file G4GeneralParticleSource.hh.
References G4GeneralParticleSourceData::GetCurrentSource(), G4SingleParticleSource::GetParticleEnergy(), and GPSData.
|
inline |
Definition at line 141 of file G4GeneralParticleSource.hh.
References G4GeneralParticleSourceData::GetCurrentSource(), G4SingleParticleSource::GetParticleMomentumDirection(), and GPSData.
|
inline |
Definition at line 123 of file G4GeneralParticleSource.hh.
References G4GeneralParticleSourceData::GetCurrentSource(), G4SingleParticleSource::GetParticlePolarization(), and GPSData.
|
inlineinherited |
Definition at line 60 of file G4VPrimaryGenerator.hh.
References G4VPrimaryGenerator::particle_position.
Referenced by export_G4ParticleGun(), and G4ParticleGunMessenger::GetCurrentValue().
|
inline |
Definition at line 139 of file G4GeneralParticleSource.hh.
References G4GeneralParticleSourceData::GetCurrentSource(), G4SingleParticleSource::GetParticlePosition(), and GPSData.
|
inlineinherited |
Definition at line 61 of file G4VPrimaryGenerator.hh.
References G4VPrimaryGenerator::particle_time.
Referenced by export_G4ParticleGun(), and G4ParticleGunMessenger::GetCurrentValue().
|
inline |
Definition at line 129 of file G4GeneralParticleSource.hh.
References G4GeneralParticleSourceData::GetCurrentSource(), G4SingleParticleSource::GetParticleTime(), and GPSData.
|
private |
Definition at line 90 of file G4GeneralParticleSource.cc.
References GPSData, G4GeneralParticleSourceData::IntensityNormalise(), normalised, and G4GeneralParticleSourceData::Normalised().
Referenced by AddaSource(), G4GeneralParticleSource(), and GeneratePrimaryVertex().
void G4GeneralParticleSource::ListSource | ( | ) |
Definition at line 96 of file G4GeneralParticleSource.cc.
References G4BestUnit, G4cout, G4endl, G4SingleParticleSource::GetAngDist(), G4SPSPosDistribution::GetCentreCoords(), G4GeneralParticleSourceData::GetCurrentSource(), G4GeneralParticleSourceData::GetCurrentSourceIdx(), G4SPSAngDistribution::GetDirection(), G4SPSAngDistribution::GetDistType(), G4SingleParticleSource::GetEneDist(), G4SPSEneDistribution::GetEnergyDisType(), G4GeneralParticleSourceData::GetFlatSampling(), G4GeneralParticleSourceData::GetIntensity(), G4GeneralParticleSourceData::GetIntensityVectorSize(), G4GeneralParticleSourceData::GetMultipleVertex(), G4SingleParticleSource::GetNumberOfParticles(), G4SingleParticleSource::GetParticleDefinition(), G4SingleParticleSource::GetParticleEnergy(), G4ParticleDefinition::GetParticleName(), G4SPSPosDistribution::GetPosDisShape(), G4SingleParticleSource::GetPosDist(), G4SPSPosDistribution::GetPosDisType(), and GPSData.
Referenced by G4GeneralParticleSourceMessenger::SetNewValue().
void G4GeneralParticleSource::SetCurrentSourceIntensity | ( | G4double | aV | ) |
Definition at line 150 of file G4GeneralParticleSource.cc.
References GPSData, G4GeneralParticleSourceData::Lock(), normalised, G4GeneralParticleSourceData::Normalised(), G4GeneralParticleSourceData::SetCurrentSourceIntensity(), and G4GeneralParticleSourceData::Unlock().
Referenced by G4GeneralParticleSourceMessenger::SetNewValue().
void G4GeneralParticleSource::SetCurrentSourceto | ( | G4int | aV | ) |
Definition at line 131 of file G4GeneralParticleSource.cc.
References FatalException, G4Exception(), G4GeneralParticleSourceData::GetCurrentSource(), G4GeneralParticleSourceData::GetIntensityVectorSize(), GPSData, G4GeneralParticleSourceMessenger::SetParticleGun(), and theMessenger.
Referenced by G4GeneralParticleSourceMessenger::SetNewValue().
|
inline |
Definition at line 107 of file G4GeneralParticleSource.hh.
References GPSData, normalised, and G4GeneralParticleSourceData::SetFlatSampling().
Referenced by G4GeneralParticleSourceMessenger::SetNewValue().
|
inline |
Definition at line 104 of file G4GeneralParticleSource.hh.
References GPSData, and G4GeneralParticleSourceData::SetMultipleVertex().
Referenced by G4GeneralParticleSourceMessenger::SetNewValue().
|
inline |
Definition at line 133 of file G4GeneralParticleSource.hh.
References G4GeneralParticleSourceData::GetCurrentSource(), GPSData, and G4SingleParticleSource::SetNumberOfParticles().
|
inline |
Definition at line 117 of file G4GeneralParticleSource.hh.
References G4GeneralParticleSourceData::GetCurrentSource(), GPSData, and G4SingleParticleSource::SetParticleCharge().
|
inline |
Definition at line 111 of file G4GeneralParticleSource.hh.
References G4GeneralParticleSourceData::GetCurrentSource(), GPSData, and G4SingleParticleSource::SetParticleDefinition().
|
inline |
Definition at line 121 of file G4GeneralParticleSource.hh.
References G4GeneralParticleSourceData::GetCurrentSource(), GPSData, and G4SingleParticleSource::SetParticlePolarization().
|
inlineinherited |
Definition at line 63 of file G4VPrimaryGenerator.hh.
References G4VPrimaryGenerator::particle_position.
Referenced by export_G4ParticleGun(), G4ParticleGunMessenger::G4ParticleGunMessenger(), PrimaryGeneratorAction::SetDefaultKinematic(), and G4ParticleGunMessenger::SetNewValue().
|
inline |
Definition at line 127 of file G4GeneralParticleSource.hh.
References G4GeneralParticleSourceData::GetCurrentSource(), GPSData, and G4SingleParticleSource::SetParticleTime().
|
inline |
Definition at line 101 of file G4GeneralParticleSource.hh.
References GPSData, and G4GeneralParticleSourceData::SetVerbosityAllSources().
Referenced by G4GeneralParticleSourceMessenger::SetNewValue().
|
private |
Definition at line 159 of file G4GeneralParticleSource.hh.
Referenced by AddaSource(), ClearAll(), DeleteaSource(), G4GeneralParticleSource(), GeneratePrimaryVertex(), GetCurrentSource(), GetCurrentSourceIndex(), GetCurrentSourceIntensity(), GetNumberOfParticles(), GetNumberofSource(), GetParticleDefinition(), GetParticleEnergy(), GetParticleMomentumDirection(), GetParticlePolarization(), GetParticlePosition(), GetParticleTime(), IntensityNormalization(), ListSource(), SetCurrentSourceIntensity(), SetCurrentSourceto(), SetFlatSampling(), SetMultipleVertex(), SetNumberOfParticles(), SetParticleCharge(), SetParticleDefinition(), SetParticlePolarization(), SetParticleTime(), and SetVerbosity().
|
private |
Definition at line 153 of file G4GeneralParticleSource.hh.
Referenced by ClearAll(), DeleteaSource(), GeneratePrimaryVertex(), IntensityNormalization(), SetCurrentSourceIntensity(), and SetFlatSampling().
|
protectedinherited |
Definition at line 70 of file G4VPrimaryGenerator.hh.
Referenced by G4HEPEvtInterface::G4HEPEvtInterface(), G4HEPEvtInterface::GeneratePrimaryVertex(), G4ParticleGun::GeneratePrimaryVertex(), G4VPrimaryGenerator::GetParticlePosition(), G4ParticleGun::SetInitialValues(), and G4VPrimaryGenerator::SetParticlePosition().
|
protectedinherited |
Definition at line 71 of file G4VPrimaryGenerator.hh.
Referenced by G4HEPEvtInterface::G4HEPEvtInterface(), G4HEPEvtInterface::GeneratePrimaryVertex(), G4ParticleGun::GeneratePrimaryVertex(), G4VPrimaryGenerator::GetParticleTime(), G4ParticleGun::SetInitialValues(), and G4VPrimaryGenerator::SetParticleTime().
|
private |
Definition at line 157 of file G4GeneralParticleSource.hh.
Referenced by AddaSource(), G4GeneralParticleSource(), SetCurrentSourceto(), and ~G4GeneralParticleSource().