Geant4  10.00.p01
G4GeneralParticleSource Class Reference

#include <G4GeneralParticleSource.hh>

+ Inheritance diagram for G4GeneralParticleSource:
+ Collaboration diagram for G4GeneralParticleSource:

Public Member Functions

 G4GeneralParticleSource ()
 
 ~G4GeneralParticleSource ()
 
void GeneratePrimaryVertex (G4Event *)
 
G4int GetNumberofSource ()
 
void ListSource ()
 
void SetCurrentSourceto (G4int)
 
void SetCurrentSourceIntensity (G4double)
 
G4SingleParticleSourceGetCurrentSource ()
 
G4int GetCurrentSourceIndex ()
 
G4double GetCurrentSourceIntensity ()
 
void ClearAll ()
 
void AddaSource (G4double)
 
void DeleteaSource (G4int)
 
void SetVerbosity (G4int i)
 
void SetMultipleVertex (G4bool av)
 
void SetFlatSampling (G4bool av)
 
void SetParticleDefinition (G4ParticleDefinition *aParticleDefinition)
 
G4ParticleDefinitionGetParticleDefinition ()
 
void SetParticleCharge (G4double aCharge)
 
void SetParticlePolarization (G4ThreeVector aVal)
 
G4ThreeVector GetParticlePolarization ()
 
void SetParticleTime (G4double aTime)
 
G4double GetParticleTime ()
 
void SetNumberOfParticles (G4int i)
 
G4int GetNumberOfParticles ()
 
G4ThreeVector GetParticlePosition ()
 
G4ThreeVector GetParticleMomentumDirection ()
 
G4double GetParticleEnergy ()
 
- Public Member Functions inherited from G4VPrimaryGenerator
 G4VPrimaryGenerator ()
 
virtual ~G4VPrimaryGenerator ()
 
G4ThreeVector GetParticlePosition ()
 
G4double GetParticleTime ()
 
void SetParticlePosition (G4ThreeVector aPosition)
 
void SetParticleTime (G4double aTime)
 

Private Member Functions

void IntensityNormalization ()
 

Private Attributes

G4bool multiple_vertex
 
G4bool flat_sampling
 
G4bool normalised
 
G4int currentSourceIdx
 
G4SingleParticleSourcecurrentSource
 
std::vector
< G4SingleParticleSource * > 
sourceVector
 
std::vector< G4doublesourceIntensity
 
std::vector< G4doublesourceProbability
 
G4GeneralParticleSourceMessengertheMessenger
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VPrimaryGenerator
static G4bool CheckVertexInsideWorld (const G4ThreeVector &pos)
 
- Protected Attributes inherited from G4VPrimaryGenerator
G4ThreeVector particle_position
 
G4double particle_time
 

Detailed Description

Definition at line 151 of file G4GeneralParticleSource.hh.

Constructor & Destructor Documentation

G4GeneralParticleSource::G4GeneralParticleSource ( )

Definition at line 64 of file G4GeneralParticleSource.cc.

References currentSource, currentSourceIdx, IntensityNormalization(), sourceIntensity, sourceProbability, sourceVector, and theMessenger.

+ Here is the call graph for this function:

G4GeneralParticleSource::~G4GeneralParticleSource ( )

Definition at line 79 of file G4GeneralParticleSource.cc.

References theMessenger.

Member Function Documentation

void G4GeneralParticleSource::AddaSource ( G4double  aV)

Definition at line 84 of file G4GeneralParticleSource.cc.

References currentSource, currentSourceIdx, IntensityNormalization(), G4GeneralParticleSourceMessenger::SetParticleGun(), sourceIntensity, sourceVector, and theMessenger.

Referenced by G4GeneralParticleSourceMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4GeneralParticleSource::ClearAll ( )

Definition at line 152 of file G4GeneralParticleSource.cc.

References currentSource, currentSourceIdx, sourceIntensity, sourceProbability, and sourceVector.

Referenced by G4GeneralParticleSourceMessenger::SetNewValue().

+ Here is the caller graph for this function:

void G4GeneralParticleSource::DeleteaSource ( G4int  aV)

Definition at line 161 of file G4GeneralParticleSource.cc.

References currentSource, currentSourceIdx, G4cout, G4endl, normalised, sourceIntensity, and sourceVector.

Referenced by G4GeneralParticleSourceMessenger::SetNewValue().

+ Here is the caller graph for this function:

G4SingleParticleSource* G4GeneralParticleSource::GetCurrentSource ( )
inline

Definition at line 165 of file G4GeneralParticleSource.hh.

References currentSource.

Referenced by UltraPrimaryGeneratorAction::GeneratePrimaries(), and UltraPrimaryGeneratorAction::UltraPrimaryGeneratorAction().

+ Here is the caller graph for this function:

G4int G4GeneralParticleSource::GetCurrentSourceIndex ( )
inline

Definition at line 166 of file G4GeneralParticleSource.hh.

References currentSourceIdx.

Referenced by G4GeneralParticleSourceMessenger::SetNewValue().

+ Here is the caller graph for this function:

G4double G4GeneralParticleSource::GetCurrentSourceIntensity ( )
inline

Definition at line 167 of file G4GeneralParticleSource.hh.

References currentSourceIdx, and sourceIntensity.

Referenced by G4GeneralParticleSourceMessenger::SetNewValue().

+ Here is the caller graph for this function:

G4int G4GeneralParticleSource::GetNumberOfParticles ( )
inline

Definition at line 200 of file G4GeneralParticleSource.hh.

References currentSource, and G4SingleParticleSource::GetNumberOfParticles().

+ Here is the call graph for this function:

G4int G4GeneralParticleSource::GetNumberofSource ( )
inline

Definition at line 161 of file G4GeneralParticleSource.hh.

References sourceVector.

G4ParticleDefinition* G4GeneralParticleSource::GetParticleDefinition ( )
inline

Definition at line 186 of file G4GeneralParticleSource.hh.

References currentSource, and G4SingleParticleSource::GetParticleDefinition().

Referenced by WLSPrimaryGeneratorAction::GeneratePrimaries(), UltraPrimaryGeneratorAction::GeneratePrimaries(), and WLSPrimaryGeneratorAction::SetOptPhotonPolar().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4double G4GeneralParticleSource::GetParticleEnergy ( )
inline

Definition at line 203 of file G4GeneralParticleSource.hh.

References currentSource, and G4SingleParticleSource::GetParticleEnergy().

Referenced by UltraPrimaryGeneratorAction::GeneratePrimaries().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4ThreeVector G4GeneralParticleSource::GetParticleMomentumDirection ( )
inline

Definition at line 202 of file G4GeneralParticleSource.hh.

References currentSource, and G4SingleParticleSource::GetParticleMomentumDirection().

Referenced by WLSPrimaryGeneratorAction::SetOptPhotonPolar().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4ThreeVector G4GeneralParticleSource::GetParticlePolarization ( )
inline

Definition at line 192 of file G4GeneralParticleSource.hh.

References currentSource, and G4SingleParticleSource::GetParticlePolarization().

+ Here is the call graph for this function:

G4ThreeVector G4GeneralParticleSource::GetParticlePosition ( )
inline

Definition at line 201 of file G4GeneralParticleSource.hh.

References currentSource, and G4SingleParticleSource::GetParticlePosition().

+ Here is the call graph for this function:

G4double G4GeneralParticleSource::GetParticleTime ( )
inline

Definition at line 196 of file G4GeneralParticleSource.hh.

References currentSource, and G4SingleParticleSource::GetParticleTime().

+ Here is the call graph for this function:

void G4GeneralParticleSource::IntensityNormalization ( )
private

Definition at line 94 of file G4GeneralParticleSource.cc.

References flat_sampling, normalised, sourceIntensity, sourceProbability, sourceVector, and G4INCL::CrossSections::total().

Referenced by AddaSource(), G4GeneralParticleSource(), and GeneratePrimaryVertex().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4GeneralParticleSource::ListSource ( )

Definition at line 125 of file G4GeneralParticleSource.cc.

References G4cout, G4endl, and sourceIntensity.

Referenced by G4GeneralParticleSourceMessenger::SetNewValue().

+ Here is the caller graph for this function:

void G4GeneralParticleSource::SetCurrentSourceIntensity ( G4double  aV)

Definition at line 146 of file G4GeneralParticleSource.cc.

References currentSourceIdx, normalised, and sourceIntensity.

Referenced by G4GeneralParticleSourceMessenger::SetNewValue().

+ Here is the caller graph for this function:

void G4GeneralParticleSource::SetCurrentSourceto ( G4int  aV)

Definition at line 132 of file G4GeneralParticleSource.cc.

References currentSource, currentSourceIdx, G4cout, G4endl, G4GeneralParticleSourceMessenger::SetParticleGun(), sourceIntensity, sourceVector, and theMessenger.

Referenced by G4GeneralParticleSourceMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4GeneralParticleSource::SetFlatSampling ( G4bool  av)
inline

Definition at line 180 of file G4GeneralParticleSource.hh.

References flat_sampling, and normalised.

Referenced by G4GeneralParticleSourceMessenger::SetNewValue().

+ Here is the caller graph for this function:

void G4GeneralParticleSource::SetMultipleVertex ( G4bool  av)
inline

Definition at line 176 of file G4GeneralParticleSource.hh.

References multiple_vertex.

Referenced by G4GeneralParticleSourceMessenger::SetNewValue().

+ Here is the caller graph for this function:

void G4GeneralParticleSource::SetNumberOfParticles ( G4int  i)
inline

Definition at line 198 of file G4GeneralParticleSource.hh.

References currentSource, and G4SingleParticleSource::SetNumberOfParticles().

+ Here is the call graph for this function:

void G4GeneralParticleSource::SetParticleCharge ( G4double  aCharge)
inline

Definition at line 188 of file G4GeneralParticleSource.hh.

References currentSource, and G4SingleParticleSource::SetParticleCharge().

+ Here is the call graph for this function:

void G4GeneralParticleSource::SetParticleDefinition ( G4ParticleDefinition aParticleDefinition)
inline

Definition at line 183 of file G4GeneralParticleSource.hh.

References currentSource, and G4SingleParticleSource::SetParticleDefinition().

Referenced by GammaKnifePrimaryGeneratorAction::SetDefaultPrimaryParticle(), and UltraPrimaryGeneratorAction::UltraPrimaryGeneratorAction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4GeneralParticleSource::SetParticlePolarization ( G4ThreeVector  aVal)
inline

Definition at line 191 of file G4GeneralParticleSource.hh.

References currentSource, and G4SingleParticleSource::SetParticlePolarization().

Referenced by WLSPrimaryGeneratorAction::SetOptPhotonPolar(), and UltraPrimaryGeneratorAction::UltraPrimaryGeneratorAction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4GeneralParticleSource::SetParticleTime ( G4double  aTime)
inline

Definition at line 195 of file G4GeneralParticleSource.hh.

References currentSource, and G4SingleParticleSource::SetParticleTime().

Referenced by WLSPrimaryGeneratorAction::SetOptPhotonTime().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4GeneralParticleSource::SetVerbosity ( G4int  i)
inline

Definition at line 173 of file G4GeneralParticleSource.hh.

References currentSource, and G4SingleParticleSource::SetVerbosity().

+ Here is the call graph for this function:

Member Data Documentation

G4bool G4GeneralParticleSource::flat_sampling
private
G4bool G4GeneralParticleSource::multiple_vertex
private

Definition at line 210 of file G4GeneralParticleSource.hh.

Referenced by GeneratePrimaryVertex(), and SetMultipleVertex().

G4bool G4GeneralParticleSource::normalised
private
std::vector<G4double> G4GeneralParticleSource::sourceProbability
private
G4GeneralParticleSourceMessenger* G4GeneralParticleSource::theMessenger
private

The documentation for this class was generated from the following files: