70 fExcitationRatio(0.0),
72 fFiniteRiseTime(false),
73 fScintillationByParticleType(false)
108 G4cout <<
" Track secondaries first: activated" <<
G4endl;
111 G4cout <<
" Track secondaries first: inactivated" <<
G4endl;
116 G4cout <<
" Scintillation by Particle Type: activated " <<
G4endl;
120 G4cout <<
" Track secondaries first: activated" <<
G4endl;
123 G4cout <<
" Track secondaries first: inactivated" <<
G4endl;
146 #define DIR_CMDS "/process/optical"
147 #define GUIDANCE "Commands related to the optical physics simulation engine for "
159 "Set the verbose level");
174 "Set the WLS time profile (delta or exponential)");
188 "Set option of a finite rise-time for G4Scintillation - If set, the G4Scintillation process expects the user to have set the constant material property FAST/SLOWSCINTILLATIONRISETIME");
194 "Set scintillation yield factor");
201 "Set scintillation excitation ratio");
207 "Activate/Inactivate scintillation process by particle type");
213 "Set option to track secondaries before finishing their parent track");
227 "Set maximum number of photons per step");
234 "Set maximum change of beta of parent particle per step");
241 "Set option to track secondaries before finishing their parent track");
262 G4cout <<
"G4OpticalPhysics:: Add Optical Physics Processes"<<
G4endl;
265 std::vector<G4VProcess*> OpProcesses;
277 OpProcesses[
kRayleigh] = OpRayleighScatteringProcess;
281 OpProcesses[
kMieHG] = OpMieHGScatteringProcess;
285 OpProcesses[
kBoundary] = OpBoundaryProcess;
290 OpProcesses[
kWLS] = OpWLSProcess;
296 std::ostringstream o;
297 o <<
"Optical Photon without a Process Manager";
298 G4Exception(
"G4OpticalPhysics::ConstructProcess()",
"",
325 OpProcesses[
kCerenkov] = CerenkovProcess;
336 std::ostringstream o;
337 o <<
"Particle " << particleName <<
"without a Process Manager";
338 G4Exception(
"G4OpticalPhysics::ConstructProcess()",
"",
419 G4bool trackSecondariesFirst)
void SetScintillationByParticleType(const G4bool)
void SetMaxBetaChangePerStep(const G4double d)
static G4LossTableManager * Instance()
void SetFiniteRiseTime(const G4bool state)
Number of processes, no selected process.
virtual void ConstructParticle()
void SetTrackSecondariesFirst(const G4bool state)
void SetMaxBetaChangePerStep(G4double)
This class is generic messenger.
G4OpticalPhysicsMessenger * fMessenger
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
Command & DeclareMethod(const G4String &name, const G4AnyMethod &fun, const G4String &doc="")
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
void UseTimeProfile(const G4String name)
virtual void ConstructProcess()
virtual ~G4OpticalPhysics()
Command & SetDefaultValue(const G4String &)
void SetScintillationYieldFactor(const G4double yieldfactor)
std::vector< G4bool > fProcessUse
G4double fYieldFactor
scintillation yield factor
G4GLOB_DLL std::ostream G4cout
void SetMaxNumPhotonsPerStep(G4int)
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)
void SetMaxNumPhotonsPerStep(const G4int NumPhotons)
G4double fExcitationRatio
scintillation excitation ratio
void SetProcessOrdering(G4VProcess *aProcess, G4ProcessVectorDoItIndex idDoIt, G4int ordDoIt=ordDefault)
Command & SetStates(G4ApplicationState s0)
Wave Length Shifting process index.
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
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)
void SetTrackSecondariesFirst(const G4bool state)
void SetProcessOrderingToLast(G4VProcess *aProcess, G4ProcessVectorDoItIndex idDoIt)
Command & SetCandidates(const G4String &)
void buildCommands(T *proc, const char *dir, const char *guidance)
void SetWLSTimeProfile(G4String)
void SetTrackSecondariesFirst(G4OpticalProcessIndex, G4bool)
Command & SetParameterName(const G4String &, G4bool, G4bool=false)
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)