45#ifndef G4GeneralParticleSource_hh
46#define G4GeneralParticleSource_hh 1
85 {
return GPSData->GetCurrentSource(); }
88 {
return GPSData->GetCurrentSourceIdx(); }
108 { GPSData->SetFlatSampling(av); normalised =
false;}
112 { GPSData->GetCurrentSource()->SetParticleDefinition(aPDef); }
114 {
return GPSData->GetCurrentSource()->GetParticleDefinition(); }
118 { GPSData->GetCurrentSource()->SetParticleCharge(aCharge); }
122 { GPSData->GetCurrentSource()->SetParticlePolarization(aVal); }
124 {
return GPSData->GetCurrentSource()->GetParticlePolarization(); }
128 { GPSData->GetCurrentSource()->SetParticleTime(aTime); }
130 {
return GPSData->GetCurrentSource()->GetParticleTime(); }
134 { GPSData->GetCurrentSource()->SetNumberOfParticles(i); }
136 {
return GPSData->GetCurrentSource()->GetNumberOfParticles(); }
140 {
return GPSData->GetCurrentSource()->GetParticlePosition(); }
142 {
return GPSData->GetCurrentSource()->GetParticleMomentumDirection(); }
144 {
return GPSData->GetCurrentSource()->GetParticleEnergy(); }
149 void IntensityNormalization();
153 G4bool normalised =
false;
CLHEP::Hep3Vector G4ThreeVector
void SetFlatSampling(G4bool av)
void SetParticleTime(G4double aTime)
void SetParticleDefinition(G4ParticleDefinition *aPDef)
void AddaSource(G4double)
G4int GetCurrentSourceIndex() const
G4double GetCurrentSourceIntensity() const
void SetCurrentSourceIntensity(G4double)
G4SingleParticleSource * GetCurrentSource() const
G4ThreeVector GetParticleMomentumDirection() const
void SetVerbosity(G4int i)
G4ThreeVector GetParticlePolarization() const
void GeneratePrimaryVertex(G4Event *) override
void SetCurrentSourceto(G4int)
~G4GeneralParticleSource() override
void SetParticlePolarization(G4ThreeVector aVal)
void DeleteaSource(G4int)
void SetParticleCharge(G4double aCharge)
G4int GetNumberofSource()
G4double GetParticleEnergy() const
void SetMultipleVertex(G4bool av)
G4ParticleDefinition * GetParticleDefinition() const
G4ThreeVector GetParticlePosition() const
void SetNumberOfParticles(G4int i)
G4int GetNumberOfParticles() const
G4double GetParticleTime() const
G4GeneralParticleSource()
G4VPrimaryGenerator()=default