51#define G4GPS_DATA_HH 1
69 {
return normalised; }
73 {
return currentSource; }
76 {
return G4int(sourceVector.size()); }
78 {
return G4int(sourceIntensity.size()); }
80 {
return sourceIntensity.at(idx); }
82 {
return sourceProbability.at(idx); }
87 { flat_sampling = fSamp; }
89 {
return flat_sampling; }
92 { multiple_vertex = flag; }
94 {
return multiple_vertex; }
97 {
return currentSourceIdx; }
112 std::vector<G4SingleParticleSource*> sourceVector;
113 std::vector <G4double> sourceIntensity;
114 std::vector <G4double> sourceProbability;
116 G4bool multiple_vertex =
false;
117 G4bool flat_sampling =
false;
118 G4bool normalised =
false;
120 G4int currentSourceIdx = 0;
void SetFlatSampling(G4bool fSamp)
void SetCurrentSourceIntensity(G4double)
G4int GetCurrentSourceIdx() const
G4SingleParticleSource * GetCurrentSource() const
G4bool GetMultipleVertex() const
G4bool Normalised() const
G4int GetIntensityVectorSize() const
void AddASource(G4double intensity)
G4bool GetFlatSampling() const
void DeleteASource(G4int idx)
G4double GetSourceProbability(G4int idx) const
void IntensityNormalise()
G4int GetSourceVectorSize() const
void SetVerbosityAllSources(G4int vl)
void SetMultipleVertex(G4bool flag)
G4double GetIntensity(G4int idx) const
static G4GeneralParticleSourceData * Instance()