89 static G4bool onlyOnce =
false;
144 if ( id < GPSData->GetIntensityVectorSize() )
175 if ( id <= GPSData->GetIntensityVectorSize() )
static G4GeneralParticleSourceMessenger * GetInstance(G4GeneralParticleSource *)
G4SPSAngDistribution * GetAngDist() const
G4SPSEneDistribution * GetEneDist() const
~G4GeneralParticleSource()
G4GeneralParticleSourceData * GPSData
void IntensityNormalization()
void AddaSource(G4double)
G4SPSPosDistribution * GetPosDist() const
void GeneratePrimaryVertex(G4Event *)
std::ostringstream G4ExceptionDescription
G4String GetPosDisShape() const
G4GeneralParticleSource()
G4bool GetMultipleVertex() const
Andrea Dotti Feb 2015 Important: This is a shared class between threads.
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
void SetCurrentSourceIntensity(G4double)
#define G4MUTEX_INITIALIZER
const G4String & GetParticleName() const
G4bool GetFlatSampling() const
G4ThreeVector GetDirection()
void SetCurrentSourceIntensity(G4double)
G4GLOB_DLL std::ostream G4cout
void AddASource(G4double intensity)
G4ThreeVector GetCentreCoords() const
G4double GetSourceProbability(G4int idx) const
G4String GetEnergyDisType()
void DeleteASource(G4int idx)
G4double GetIntensity(G4int idx) const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
void SetParticleGun(G4SingleParticleSource *fpg)
G4int GetIntensityVectorSize() const
void IntensityNormalise()
G4int GetNumberOfParticles() const
G4SingleParticleSource * GetCurrentSource(G4int idx)
G4bool Normalised() const
G4String GetPosDisType() const
void DeleteaSource(G4int)
G4double GetParticleEnergy() const
void SetCurrentSourceto(G4int)
void GeneratePrimaryVertex(G4Event *evt)
G4GeneralParticleSourceMessenger * theMessenger
G4int GetCurrentSourceIdx() const
G4ParticleDefinition * GetParticleDefinition() const
static G4GeneralParticleSourceData * Instance()