62 fOpticalPhysics(opticalPhysics),
64 fSelectOpProcessCmd(0),
65 fSetOpProcessUseCmd(0),
66 fSetOpProcessVerboseCmd(0),
67 fSetCerenkovMaxPhotonsCmd(0),
68 fSetCerenkovMaxBetaChangeCmd(0),
69 fSetScintillationYieldFactorCmd(0),
70 fSetScintillationByParticleTypeCmd(0),
71
72 fSetWLSTimeProfileCmd(0),
73 fSetTrackSecondariesFirstCmd(0),
74 fSetFiniteRiseTimeCmd(0)
75{
77 fDir->
SetGuidance(
"Commands related to the optical physics simulation engine.");
78
79 fSelectOpProcessCmd
81 fSelectOpProcessCmd
82 ->
SetGuidance(
"Select optical process for applying use/verbose/trackfirst commands");
88 }
91
92 fSetOpProcessUseCmd
94 fSetOpProcessUseCmd->
SetGuidance(
"Use/Not use selected optical process");
97
98 fSetOpProcessVerboseCmd
100 fSetOpProcessVerboseCmd->
SetGuidance(
"Set verbosity level for selected optical process");
102 fSetOpProcessVerboseCmd->
SetRange(
"OpProcessVerbose>=0");
104
105 fSetCerenkovMaxPhotonsCmd
107 fSetCerenkovMaxPhotonsCmd->
SetGuidance(
"Set maximum number of photons per step");
109 fSetCerenkovMaxPhotonsCmd->
SetRange(
"CerenkovMaxPhotons>=0");
111
112 fSetCerenkovMaxBetaChangeCmd
114 fSetCerenkovMaxBetaChangeCmd
115 ->
SetGuidance(
"Set maximum change of beta of parent particle per step");
116 fSetCerenkovMaxBetaChangeCmd->
SetParameterName(
"CerenkovMaxBetaChange",
false);
117 fSetCerenkovMaxBetaChangeCmd->
SetRange(
"CerenkovMaxBetaChange>=0");
119
120 fSetScintillationYieldFactorCmd
122 fSetScintillationYieldFactorCmd->
SetGuidance(
"Set scintillation yield factor");
123 fSetScintillationYieldFactorCmd->
SetParameterName(
"ScintillationYieldFactor",
false);
124 fSetScintillationYieldFactorCmd->
SetRange(
"ScintillationYieldFactor>=0");
126
127 fSetScintillationByParticleTypeCmd
128 =
new G4UIcmdWithABool(
"/optics_engine/setScintillationByParticleType",
this);
129 fSetScintillationByParticleTypeCmd->
SetGuidance(
"Activate/Inactivate scintillation process by particle type");
130 fSetScintillationByParticleTypeCmd->
SetParameterName(
"ScintillationByParticleTypeActivation",
false);
132
133
134
135
136
137
138
139
140
141 fSetWLSTimeProfileCmd
143 fSetWLSTimeProfileCmd
144 ->
SetGuidance(
"Set the WLS time profile (delta or exponential)");
148
149 fSetTrackSecondariesFirstCmd
151 fSetTrackSecondariesFirstCmd
152 ->
SetGuidance(
"Set option to track secondaries before finishing their parent track");
153 fSetTrackSecondariesFirstCmd->
SetParameterName(
"TrackSecondariesFirst",
false);
155
156 fSetFiniteRiseTimeCmd
158 fSetFiniteRiseTimeCmd
159 ->
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");
162}
@ kNoProcess
Number of processes, no selected process.
G4String G4OpticalProcessName(G4int)
Return the name for a given optical process index.
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetCandidates(const char *candidateList)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetGuidance(const char *aGuidance)
void SetRange(const char *rs)
void AvailableForStates(G4ApplicationState s1)