68 fExcitationRatio(0.0),
70 fFiniteRiseTime(false),
71 fScintillationByParticleType(false)
110 G4cout <<
" Scintillation by Particle Type: activated " <<
G4endl;
145 G4cout <<
"G4OpticalPhysics:: Add Optical Physics Processes"<<
G4endl;
148 std::vector<G4VProcess*> OpProcesses;
159 OpProcesses[
kRayleigh] = OpRayleighScatteringProcess;
160 OpProcesses[
kMieHG] = OpMieHGScatteringProcess;
164 OpProcesses[
kBoundary] = OpBoundaryProcess;
168 OpProcesses[
kWLS] = OpWLSProcess;
174 std::ostringstream o;
175 o <<
"Optical Photon without a Process Manager";
176 G4Exception(
"G4OpticalPhysics::ConstructProcess()",
"",
192 OpProcesses[
kCerenkov] = CerenkovProcess;
223 std::ostringstream o;
224 o <<
"Particle " << particleName <<
"without a Process Manager";
225 G4Exception(
"G4OpticalPhysics::ConstructProcess()",
"",
308 G4bool trackSecondariesFirst)
static void SetScintillationByParticleType(const G4bool)
static void SetMaxBetaChangePerStep(const G4double d)
void SetProcessVerbose(G4int, G4int)
static G4LossTableManager * Instance()
static void SetFiniteRiseTime(const G4bool state)
Number of processes, no selected process.
virtual void ConstructParticle()
void AddScintillationSaturation(G4EmSaturation *)
static void SetTrackSecondariesFirst(const G4bool state)
void SetMaxBetaChangePerStep(G4double)
G4OpticalPhysicsMessenger * fMessenger
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
Scintillation process index.
G4bool IsApplicable(const G4ParticleDefinition &aParticleType)
Mie scattering process index.
void SetFiniteRiseTime(G4bool)
Absorption process index.
G4ProcessManager * GetProcessManager() const
const G4String & GetParticleName() const
void SetScintillationByParticleType(G4bool)
std::vector< G4bool > fProcessTrackSecondariesFirst
G4double fMaxBetaChange
max change of beta per step
static void UseTimeProfile(const G4String name)
virtual void ConstructProcess()
virtual ~G4OpticalPhysics()
static void SetScintillationYieldFactor(const G4double yieldfactor)
std::vector< G4bool > fProcessUse
G4double fYieldFactor
scintillation yield factor
G4GLOB_DLL std::ostream G4cout
void SetMaxNumPhotonsPerStep(G4int)
static void AddSaturation(G4EmSaturation *)
G4bool fFiniteRiseTime
option to set a finite rise-time; Note: the G4Scintillation process expects the user to have set the ...
#define aParticleIterator
void Configure(G4OpticalProcessIndex, G4bool)
G4int AddProcess(G4VProcess *aProcess, G4int ordAtRestDoIt=ordInActive, G4int ordAlongSteptDoIt=ordInActive, G4int ordPostStepDoIt=ordInActive)
G4EmSaturation * EmSaturation()
G4int fMaxNumPhotons
max number of Cerenkov photons per step
G4_DECLARE_PHYSCONSTR_FACTORY(G4OpticalPhysics)
static void SetMaxNumPhotonsPerStep(const G4int NumPhotons)
std::vector< G4int > fProcessVerbose
G4double fExcitationRatio
scintillation excitation ratio
void SetProcessOrdering(G4VProcess *aProcess, G4ProcessVectorDoItIndex idDoIt, G4int ordDoIt=ordDefault)
Wave Length Shifting process index.
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static void SetScintillationExcitationRatio(const G4double ratio)
static G4OpticalPhoton * OpticalPhoton()
void SetScintillationExcitationRatio(G4double)
G4String G4OpticalProcessName(G4int)
Return the name for a given optical process index.
G4OpticalPhysics(G4int verbose=0, const G4String &name="Optical")
void SetScintillationYieldFactor(G4double)
static void SetTrackSecondariesFirst(const G4bool state)
void SetProcessOrderingToLast(G4VProcess *aProcess, G4ProcessVectorDoItIndex idDoIt)
void SetWLSTimeProfile(G4String)
void SetTrackSecondariesFirst(G4OpticalProcessIndex, G4bool)
static G4OpticalPhoton * OpticalPhotonDefinition()
Rayleigh scattering process index.
G4String fProfile
the WLS process time profile
void PrintStatistics() const
G4bool fScintillationByParticleType
option to allow for the light yield to be a function of particle type and deposited energy in case of...
G4bool IsApplicable(const G4ParticleDefinition &aParticleType)