Geant4
10.01.p03
|
#include <WLSPrimaryGeneratorAction.hh>
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 | |
G4PhysicsTable * | fIntegralTable |
Private Member Functions | |
void | SetOptPhotonPolar () |
void | SetOptPhotonTime () |
Private Attributes | |
WLSDetectorConstruction * | fDetector |
G4GeneralParticleSource * | fParticleGun |
WLSPrimaryGeneratorMessenger * | fGunMessenger |
G4double | fTimeConstant |
Static Private Attributes | |
static G4bool | fFirst = false |
Definition at line 51 of file WLSPrimaryGeneratorAction.hh.
WLSPrimaryGeneratorAction::WLSPrimaryGeneratorAction | ( | WLSDetectorConstruction * | dc | ) |
Definition at line 65 of file WLSPrimaryGeneratorAction.cc.
References fDetector, fGunMessenger, fIntegralTable, fParticleGun, and fTimeConstant.
|
virtual |
Definition at line 85 of file WLSPrimaryGeneratorAction.cc.
References G4PhysicsTable::clearAndDestroy(), fGunMessenger, fIntegralTable, and fParticleGun.
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().
|
virtual |
Implements G4VUserPrimaryGeneratorAction.
Definition at line 162 of file WLSPrimaryGeneratorAction.cc.
References BuildEmissionSpectrum(), eV, fFirst, fIntegralTable, fParticleGun, G4UniformRand, G4GeneralParticleSource::GeneratePrimaryVertex(), G4PhysicsOrderedFreeVector::GetEnergy(), G4Material::GetIndex(), G4Material::GetMaterialPropertiesTable(), G4Material::GetMaterialTable(), G4PhysicsOrderedFreeVector::GetMaxValue(), G4Material::GetName(), G4GeneralParticleSource::GetParticleDefinition(), G4ParticleDefinition::GetParticleName(), G4MaterialPropertiesTable::GetProperty(), SetOptPhotonPolar(), and SetOptPhotonTime().
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().
|
private |
Definition at line 211 of file WLSPrimaryGeneratorAction.cc.
References deg, and G4UniformRand.
Referenced by GeneratePrimaries().
|
private |
Definition at line 244 of file WLSPrimaryGeneratorAction.cc.
References fParticleGun, fTimeConstant, G4UniformRand, and G4GeneralParticleSource::SetParticleTime().
Referenced by GeneratePrimaries().
|
private |
Definition at line 77 of file WLSPrimaryGeneratorAction.hh.
Referenced by WLSPrimaryGeneratorAction().
|
staticprivate |
Definition at line 81 of file WLSPrimaryGeneratorAction.hh.
Referenced by GeneratePrimaries().
|
private |
Definition at line 79 of file WLSPrimaryGeneratorAction.hh.
Referenced by WLSPrimaryGeneratorAction(), and ~WLSPrimaryGeneratorAction().
|
protected |
Definition at line 70 of file WLSPrimaryGeneratorAction.hh.
Referenced by BuildEmissionSpectrum(), GeneratePrimaries(), WLSPrimaryGeneratorAction(), and ~WLSPrimaryGeneratorAction().
|
private |
Definition at line 78 of file WLSPrimaryGeneratorAction.hh.
Referenced by GeneratePrimaries(), SetOptPhotonPolar(), SetOptPhotonTime(), WLSPrimaryGeneratorAction(), and ~WLSPrimaryGeneratorAction().
|
private |
Definition at line 83 of file WLSPrimaryGeneratorAction.hh.
Referenced by SetDecayTimeConstant(), SetOptPhotonTime(), and WLSPrimaryGeneratorAction().