ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
WLSPrimaryGeneratorAction Class Reference

#include <geant4/tree/geant4-10.6-release/examples/extended/optical/wls/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 50 of file WLSPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 50 of file WLSPrimaryGeneratorAction.hh

Constructor & Destructor Documentation

WLSPrimaryGeneratorAction::WLSPrimaryGeneratorAction ( WLSDetectorConstruction dc)

Definition at line 64 of file WLSPrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 64 of file WLSPrimaryGeneratorAction.cc

References fDetector, fGunMessenger, fIntegralTable, fParticleGun, and fTimeConstant.

WLSPrimaryGeneratorAction::~WLSPrimaryGeneratorAction ( )
virtual

Definition at line 84 of file WLSPrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 84 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 103 of file WLSPrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 103 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 96 of file WLSPrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 96 of file WLSPrimaryGeneratorAction.cc

References fTimeConstant, and Acts::VectorHelpers::time().

+ Here is the call graph for this function:

void WLSPrimaryGeneratorAction::SetOptPhotonPolar ( G4double  angle)

Definition at line 218 of file WLSPrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 218 of file WLSPrimaryGeneratorAction.cc

References CLHEP::Hep3Vector::cross(), 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 210 of file WLSPrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 210 of file WLSPrimaryGeneratorAction.cc

References angle, deg, and G4UniformRand.

Referenced by GeneratePrimaries().

+ Here is the caller graph for this function:

void WLSPrimaryGeneratorAction::SetOptPhotonTime ( )
private

Definition at line 243 of file WLSPrimaryGeneratorAction.cc.

View newest version in sPHENIX GitHub at line 243 of file WLSPrimaryGeneratorAction.cc

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

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 76 of file WLSPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 76 of file WLSPrimaryGeneratorAction.hh

Referenced by WLSPrimaryGeneratorAction().

G4bool WLSPrimaryGeneratorAction::fFirst = false
staticprivate

Definition at line 80 of file WLSPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 80 of file WLSPrimaryGeneratorAction.hh

Referenced by GeneratePrimaries().

WLSPrimaryGeneratorMessenger* WLSPrimaryGeneratorAction::fGunMessenger
private

Definition at line 78 of file WLSPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 78 of file WLSPrimaryGeneratorAction.hh

Referenced by WLSPrimaryGeneratorAction(), and ~WLSPrimaryGeneratorAction().

G4PhysicsTable* WLSPrimaryGeneratorAction::fIntegralTable
protected

Definition at line 69 of file WLSPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 69 of file WLSPrimaryGeneratorAction.hh

Referenced by BuildEmissionSpectrum(), GeneratePrimaries(), WLSPrimaryGeneratorAction(), and ~WLSPrimaryGeneratorAction().

G4GeneralParticleSource* WLSPrimaryGeneratorAction::fParticleGun
private

Definition at line 77 of file WLSPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 77 of file WLSPrimaryGeneratorAction.hh

Referenced by GeneratePrimaries(), SetOptPhotonPolar(), SetOptPhotonTime(), WLSPrimaryGeneratorAction(), and ~WLSPrimaryGeneratorAction().

G4double WLSPrimaryGeneratorAction::fTimeConstant
private

Definition at line 82 of file WLSPrimaryGeneratorAction.hh.

View newest version in sPHENIX GitHub at line 82 of file WLSPrimaryGeneratorAction.hh

Referenced by SetDecayTimeConstant(), SetOptPhotonTime(), and WLSPrimaryGeneratorAction().


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