Geant4  10.01.p03
WLSPrimaryGeneratorAction Class Reference

#include <WLSPrimaryGeneratorAction.hh>

+ Inheritance diagram for WLSPrimaryGeneratorAction:
+ Collaboration diagram for WLSPrimaryGeneratorAction:

Public Member Functions

 WLSPrimaryGeneratorAction (WLSDetectorConstruction *)
 
virtual ~WLSPrimaryGeneratorAction ()
 
virtual void GeneratePrimaries (G4Event *)
 
void BuildEmissionSpectrum ()
 
void SetOptPhotonPolar (G4double)
 
void SetDecayTimeConstant (G4double)
 
- Public Member Functions inherited from G4VUserPrimaryGeneratorAction
 G4VUserPrimaryGeneratorAction ()
 
virtual ~G4VUserPrimaryGeneratorAction ()
 

Protected Attributes

G4PhysicsTablefIntegralTable
 

Private Member Functions

void SetOptPhotonPolar ()
 
void SetOptPhotonTime ()
 

Private Attributes

WLSDetectorConstructionfDetector
 
G4GeneralParticleSourcefParticleGun
 
WLSPrimaryGeneratorMessengerfGunMessenger
 
G4double fTimeConstant
 

Static Private Attributes

static G4bool fFirst = false
 

Detailed Description

Definition at line 51 of file WLSPrimaryGeneratorAction.hh.

Constructor & Destructor Documentation

WLSPrimaryGeneratorAction::WLSPrimaryGeneratorAction ( WLSDetectorConstruction dc)
WLSPrimaryGeneratorAction::~WLSPrimaryGeneratorAction ( )
virtual

Definition at line 85 of file WLSPrimaryGeneratorAction.cc.

References G4PhysicsTable::clearAndDestroy(), fGunMessenger, fIntegralTable, and fParticleGun.

+ Here is the call graph for this function:

Member Function Documentation

void WLSPrimaryGeneratorAction::BuildEmissionSpectrum ( )

Definition at line 104 of file WLSPrimaryGeneratorAction.cc.

References G4PhysicsVector::Energy(), fIntegralTable, G4Material::GetMaterialPropertiesTable(), G4Material::GetMaterialTable(), G4Material::GetNumberOfMaterials(), G4MaterialPropertiesTable::GetProperty(), G4PhysicsVector::GetVectorLength(), and G4PhysicsTable::insertAt().

Referenced by GeneratePrimaries().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void WLSPrimaryGeneratorAction::SetDecayTimeConstant ( G4double  time)

Definition at line 97 of file WLSPrimaryGeneratorAction.cc.

References fTimeConstant.

void WLSPrimaryGeneratorAction::SetOptPhotonPolar ( G4double  angle)

Definition at line 219 of file WLSPrimaryGeneratorAction.cc.

References fParticleGun, G4cout, G4endl, G4GeneralParticleSource::GetParticleDefinition(), G4GeneralParticleSource::GetParticleMomentumDirection(), G4ParticleDefinition::GetParticleName(), CLHEP::normal(), and G4GeneralParticleSource::SetParticlePolarization().

+ Here is the call graph for this function:

void WLSPrimaryGeneratorAction::SetOptPhotonPolar ( )
private

Definition at line 211 of file WLSPrimaryGeneratorAction.cc.

References deg, and G4UniformRand.

Referenced by GeneratePrimaries().

+ Here is the caller graph for this function:

void WLSPrimaryGeneratorAction::SetOptPhotonTime ( )
private

Definition at line 244 of file WLSPrimaryGeneratorAction.cc.

References fParticleGun, fTimeConstant, G4UniformRand, and G4GeneralParticleSource::SetParticleTime().

Referenced by GeneratePrimaries().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

WLSDetectorConstruction* WLSPrimaryGeneratorAction::fDetector
private

Definition at line 77 of file WLSPrimaryGeneratorAction.hh.

Referenced by WLSPrimaryGeneratorAction().

G4bool WLSPrimaryGeneratorAction::fFirst = false
staticprivate

Definition at line 81 of file WLSPrimaryGeneratorAction.hh.

Referenced by GeneratePrimaries().

WLSPrimaryGeneratorMessenger* WLSPrimaryGeneratorAction::fGunMessenger
private
G4PhysicsTable* WLSPrimaryGeneratorAction::fIntegralTable
protected
G4double WLSPrimaryGeneratorAction::fTimeConstant
private

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