62 fOpticalPhysics(opticalPhysics),
64 fSelectOpProcessCmd(0),
65 fSetOpProcessUseCmd(0),
66 fSetOpProcessVerboseCmd(0),
67 fSetCerenkovMaxPhotonsCmd(0),
68 fSetCerenkovMaxBetaChangeCmd(0),
69 fSetScintillationYieldFactorCmd(0),
70 fSetScintillationByParticleTypeCmd(0),
72 fSetWLSTimeProfileCmd(0),
73 fSetTrackSecondariesFirstCmd(0),
74 fSetFiniteRiseTimeCmd(0)
78 SetGuidance(
"Commands related to the optical physics simulation engine.");
83 ->
SetGuidance(
"Select optical process for applying use/verbose/trackfirst commands");
117 ->
SetGuidance(
"Set maximum change of beta of parent particle per step");
119 SetParameterName(
"CerenkovMaxBetaChange",
false);
127 SetGuidance(
"Set scintillation yield factor");
129 SetParameterName(
"ScintillationYieldFactor",
false);
135 =
new G4UIcmdWithABool(
"/optics_engine/setScintillationByParticleType",
this);
137 SetGuidance(
"Activate/Inactivate scintillation process by particle type");
139 SetParameterName(
"ScintillationByParticleTypeActivation",
false);
155 ->
SetGuidance(
"Set the WLS time profile (delta or exponential)");
163 ->
SetGuidance(
"Set option to track secondaries before finishing their parent track");
165 SetParameterName(
"TrackSecondariesFirst",
false);
172 ->
SetGuidance(
"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");
201 if ( newValue ==
"Cerenkov" ) {
203 }
else if ( newValue ==
"Scintillation" ) {
205 }
else if ( newValue ==
"OpAbsorption" ) {
207 }
else if ( newValue ==
"OpRayleigh" ) {
209 }
else if ( newValue ==
"OpMieHG" ) {
211 }
else if ( newValue ==
"OpBoundary" ) {
213 }
else if ( newValue ==
"OpWLS" ) {
270 if ( newValue ==
"delta" ) {
273 if ( newValue ==
"exponential" ) {
281 GetNewBoolValue(newValue));
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
G4OpticalPhysics * fOpticalPhysics
associated class
virtual void SetNewValue(G4UIcommand *, G4String)
G4UIcmdWithABool * fSetFiniteRiseTimeCmd
setFiniteRiseTime command
Number of processes, no selected process.
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
G4OpticalProcessIndex fSelectedProcessIndex
selected optical process
static G4int GetNewIntValue(const char *paramString)
void SetMaxBetaChangePerStep(G4double)
virtual ~G4OpticalPhysicsMessenger()
G4UIcmdWithAString * fSetWLSTimeProfileCmd
setWLSTimeProfile command
Scintillation process index.
Mie scattering process index.
G4UIcmdWithAnInteger * fSetOpProcessVerboseCmd
setProcessVerbose command
void SetFiniteRiseTime(G4bool)
Absorption process index.
static G4bool GetNewBoolValue(const char *paramString)
void SetScintillationByParticleType(G4bool)
G4UIcmdWithAnInteger * fSetCerenkovMaxPhotonsCmd
setCerenkovMaxPhotons command
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
G4UIcmdWithABool * fSetOpProcessUseCmd
setProcessUse command
G4UIcmdWithABool * fSetTrackSecondariesFirstCmd
setTrackSecondariesFirst command
void SetMaxNumPhotonsPerStep(G4int)
static G4double GetNewDoubleValue(const char *paramString)
void SetRange(const char *rs)
void SetGuidance(const char *aGuidance)
void AvailableForStates(G4ApplicationState s1)
G4UIcmdWithABool * fSetScintillationByParticleTypeCmd
setScintillationByParticleType command
Wave Length Shifting process index.
G4OpticalPhysicsMessenger()
Not implemented.
G4UIdirectory * fDir
command directory
G4String G4OpticalProcessName(G4int)
Return the name for a given optical process index.
void SetScintillationYieldFactor(G4double)
void SetWLSTimeProfile(G4String)
void SetTrackSecondariesFirst(G4OpticalProcessIndex, G4bool)
G4UIcmdWithADouble * fSetScintillationYieldFactorCmd
setScintillationYieldFactor command
void SetCandidates(const char *candidateList)
G4UIcmdWithADouble * fSetCerenkovMaxBetaChangeCmd
setCerenkovMaxBetaChange command
void SetDefaultValue(G4int defVal)
G4UIcmdWithAString * fSelectOpProcessCmd
selectOpProcess command
Rayleigh scattering process index.