Geant4  10.00.p01
G4SingleParticleSource Class Reference

#include <G4SingleParticleSource.hh>

+ Inheritance diagram for G4SingleParticleSource:
+ Collaboration diagram for G4SingleParticleSource:

Public Member Functions

 G4SingleParticleSource ()
 
 ~G4SingleParticleSource ()
 
void GeneratePrimaryVertex (G4Event *evt)
 
G4SPSPosDistributionGetPosDist ()
 
G4SPSAngDistributionGetAngDist ()
 
G4SPSEneDistributionGetEneDist ()
 
G4SPSRandomGeneratorGetBiasRndm ()
 
void SetVerbosity (G4int)
 
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 Attributes

G4SPSPosDistributionposGenerator
 
G4SPSAngDistributionangGenerator
 
G4SPSEneDistributioneneGenerator
 
G4SPSRandomGeneratorbiasRndm
 
G4int NumberOfParticlesToBeGenerated
 
G4ParticleDefinitionparticle_definition
 
G4ParticleMomentum particle_momentum_direction
 
G4double particle_energy
 
G4double particle_charge
 
G4ThreeVector particle_position
 
G4double particle_time
 
G4ThreeVector particle_polarization
 
G4double particle_weight
 
G4int verbosityLevel
 

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 123 of file G4SingleParticleSource.hh.

Constructor & Destructor Documentation

G4SingleParticleSource::~G4SingleParticleSource ( )

Definition at line 92 of file G4SingleParticleSource.cc.

References angGenerator, biasRndm, eneGenerator, and posGenerator.

Member Function Documentation

G4SPSRandomGenerator* G4SingleParticleSource::GetBiasRndm ( )
inline

Definition at line 141 of file G4SingleParticleSource.hh.

References biasRndm.

Referenced by G4GeneralParticleSourceMessenger::SetNewValue().

+ Here is the caller graph for this function:

G4SPSEneDistribution* G4SingleParticleSource::GetEneDist ( )
inline
G4int G4SingleParticleSource::GetNumberOfParticles ( )
inline

Definition at line 186 of file G4SingleParticleSource.hh.

References NumberOfParticlesToBeGenerated.

Referenced by G4GeneralParticleSource::GetNumberOfParticles().

+ Here is the caller graph for this function:

G4ParticleDefinition* G4SingleParticleSource::GetParticleDefinition ( )
inline

Definition at line 151 of file G4SingleParticleSource.hh.

References particle_definition.

Referenced by G4GeneralParticleSource::GetParticleDefinition().

+ Here is the caller graph for this function:

G4double G4SingleParticleSource::GetParticleEnergy ( )
inline

Definition at line 198 of file G4SingleParticleSource.hh.

References particle_energy.

Referenced by G4GeneralParticleSource::GetParticleEnergy().

+ Here is the caller graph for this function:

G4ThreeVector G4SingleParticleSource::GetParticleMomentumDirection ( )
inline

Definition at line 194 of file G4SingleParticleSource.hh.

References particle_momentum_direction.

Referenced by G4GeneralParticleSource::GetParticleMomentumDirection().

+ Here is the caller graph for this function:

G4ThreeVector G4SingleParticleSource::GetParticlePolarization ( )
inline

Definition at line 166 of file G4SingleParticleSource.hh.

References particle_polarization.

Referenced by G4GeneralParticleSource::GetParticlePolarization().

+ Here is the caller graph for this function:

G4ThreeVector G4SingleParticleSource::GetParticlePosition ( )
inline

Definition at line 190 of file G4SingleParticleSource.hh.

References particle_position.

Referenced by G4GeneralParticleSource::GetParticlePosition().

+ Here is the caller graph for this function:

G4double G4SingleParticleSource::GetParticleTime ( )
inline

Definition at line 176 of file G4SingleParticleSource.hh.

References particle_time.

Referenced by G4GeneralParticleSource::GetParticleTime().

+ Here is the caller graph for this function:

void G4SingleParticleSource::SetNumberOfParticles ( G4int  i)
inline

Definition at line 181 of file G4SingleParticleSource.hh.

References NumberOfParticlesToBeGenerated.

Referenced by G4GeneralParticleSourceMessenger::SetNewValue(), and G4GeneralParticleSource::SetNumberOfParticles().

+ Here is the caller graph for this function:

void G4SingleParticleSource::SetParticleCharge ( G4double  aCharge)
inline

Definition at line 156 of file G4SingleParticleSource.hh.

References particle_charge.

Referenced by G4GeneralParticleSourceMessenger::IonCommand(), G4GeneralParticleSourceMessenger::IonLvlCommand(), and G4GeneralParticleSource::SetParticleCharge().

+ Here is the caller graph for this function:

void G4SingleParticleSource::SetParticleDefinition ( G4ParticleDefinition aParticleDefinition)

Definition at line 107 of file G4SingleParticleSource.cc.

References G4ParticleDefinition::GetPDGCharge(), particle_charge, and particle_definition.

Referenced by G4AdjointPrimaryGenerator::GenerateAdjointPrimaryVertex(), G4AdjointPrimaryGenerator::GenerateFwdPrimaryVertex(), G4GeneralParticleSourceMessenger::IonCommand(), G4GeneralParticleSourceMessenger::IonLvlCommand(), G4GeneralParticleSourceMessenger::SetNewValue(), and G4GeneralParticleSource::SetParticleDefinition().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4SingleParticleSource::SetParticlePolarization ( G4ThreeVector  aVal)
inline

Definition at line 162 of file G4SingleParticleSource.hh.

References particle_polarization.

Referenced by G4GeneralParticleSourceMessenger::SetNewValue(), and G4GeneralParticleSource::SetParticlePolarization().

+ Here is the caller graph for this function:

void G4SingleParticleSource::SetParticleTime ( G4double  aTime)
inline

Definition at line 172 of file G4SingleParticleSource.hh.

References particle_time.

Referenced by G4GeneralParticleSourceMessenger::SetNewValue(), and G4GeneralParticleSource::SetParticleTime().

+ Here is the caller graph for this function:

void G4SingleParticleSource::SetVerbosity ( G4int  vL)

Definition at line 99 of file G4SingleParticleSource.cc.

References angGenerator, eneGenerator, G4cout, G4endl, posGenerator, G4SPSPosDistribution::SetVerbosity(), G4SPSAngDistribution::SetVerbosity(), G4SPSEneDistribution::SetVerbosity(), and verbosityLevel.

Referenced by G4GeneralParticleSourceMessenger::SetNewValue(), and G4GeneralParticleSource::SetVerbosity().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

G4SPSAngDistribution* G4SingleParticleSource::angGenerator
private
G4SPSRandomGenerator* G4SingleParticleSource::biasRndm
private
G4SPSEneDistribution* G4SingleParticleSource::eneGenerator
private
G4int G4SingleParticleSource::NumberOfParticlesToBeGenerated
private
G4double G4SingleParticleSource::particle_charge
private
G4ParticleDefinition* G4SingleParticleSource::particle_definition
private
G4double G4SingleParticleSource::particle_energy
private
G4ParticleMomentum G4SingleParticleSource::particle_momentum_direction
private
G4ThreeVector G4SingleParticleSource::particle_polarization
private
G4ThreeVector G4SingleParticleSource::particle_position
private
G4double G4SingleParticleSource::particle_time
private
G4double G4SingleParticleSource::particle_weight
private

Definition at line 219 of file G4SingleParticleSource.hh.

Referenced by G4SingleParticleSource(), and GeneratePrimaryVertex().

G4SPSPosDistribution* G4SingleParticleSource::posGenerator
private
G4int G4SingleParticleSource::verbosityLevel
private

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