63 fOpticalPhysics(opticalPhysics),
65 fActivateProcessCmd(0),
66 fSetOpProcessVerboseCmd(0),
67 fSetCerenkovMaxPhotonsCmd(0),
68 fSetCerenkovMaxBetaChangeCmd(0),
69 fSetCerenkovStackPhotonsCmd(0),
70 fSetScintillationYieldFactorCmd(0),
71 fSetScintillationByParticleTypeCmd(0),
72 fSetScintillationTrackInfoCmd(0),
73 fSetScintillationStackPhotonsCmd(0),
74 fSetWLSTimeProfileCmd(0),
75 fSetTrackSecondariesFirstCmd(0),
76 fSetFiniteRiseTimeCmd(0),
79 G4bool toBeBroadcasted =
false;
81 fDir->
SetGuidance(
"Commands related to the optical physics simulation engine.");
83 fDir2->
SetGuidance(
"Commands related to the optical physics simulation engine.");
168 fSetFiniteRiseTimeCmd->
SetGuidance(
"If set, the G4Scintillation process expects the user to have set the constant material property FAST/SLOWSCINTILLATIONRISETIME");
220 std::istringstream is(newValue.
data());
224 if ( pn ==
"Cerenkov" ) {
226 }
else if ( pn ==
"Scintillation" ) {
228 }
else if ( pn ==
"OpAbsorption" ) {
230 }
else if ( pn ==
"OpRayleigh" ) {
232 }
else if ( pn ==
"OpMieHG" ) {
234 }
else if ( pn ==
"OpBoundary" ) {
236 }
else if ( pn ==
"OpWLS" ) {
240 msg <<
"Not allowed process name: "<<pn<<
" (UI: "<<newValue<<
")";
248 std::istringstream is(newValue.
data());
252 if ( pn ==
"Cerenkov" ) {
254 }
else if ( pn ==
"Scintillation" ) {
256 }
else if ( pn ==
"OpAbsorption" ) {
258 }
else if ( pn ==
"OpRayleigh" ) {
260 }
else if ( pn ==
"OpMieHG" ) {
262 }
else if ( pn ==
"OpBoundary" ) {
264 }
else if ( pn ==
"OpWLS" ) {
268 msg <<
"Not allowed process name: "<<pn<<
" (UI: "<<newValue<<
")";
G4UIcmdWithABool * fSetScintillationStackPhotonsCmd
setStackPhotons command
void SetGuidance(const char *aGuidance)
std::ostringstream G4ExceptionDescription
G4UIcmdWithAString * fSetWLSTimeProfileCmd
setWLSTimeProfile command
void SetVerboseLevel(G4int value)
Rayleigh scattering process index.
G4UIcmdWithADouble * fSetCerenkovMaxBetaChangeCmd
setCerenkovMaxBetaChange command
void SetCerenkovStackPhotons(G4bool)
Scintillation process index.
void SetDefaultValue(G4int defVal)
void SetFiniteRiseTime(G4bool)
void Configure(G4OpticalProcessIndex, G4bool)
G4UIcmdWithABool * fSetFiniteRiseTimeCmd
setFiniteRiseTime command
static G4bool ConvertToBool(const char *st)
void SetRange(const char *rs)
static G4double GetNewDoubleValue(const char *paramString)
G4UIcmdWithABool * fSetScintillationByParticleTypeCmd
setScintillationByParticleType command
G4UIcmdWithABool * fSetInvokeSDCmd
setInvokeSD command
G4UIdirectory * fDir
command directory
Absorption process index.
void SetGuidance(const char *theGuidance)
static G4bool GetNewBoolValue(const char *paramString)
virtual void SetNewValue(G4UIcommand *, G4String)
void SetParameter(G4UIparameter *const newParameter)
void SetDefaultValue(const char *theDefaultValue)
void SetMaxBetaChangePerStep(G4double)
Number of processes, no selected process.
G4UIcommand * fSetTrackSecondariesFirstCmd
setTrackSecondariesFirst command
const XML_Char int const XML_Char * value
void SetScintillationByParticleType(G4bool)
const char * data() const
void SetCandidates(const char *candidateList)
void SetScintillationStackPhotons(G4bool)
G4String G4OpticalProcessName(G4int)
Return the name for a given optical process index.
G4UIcommand * fActivateProcessCmd
selectOpProcess command
virtual ~G4OpticalPhysicsMessenger()
void SetScintillationYieldFactor(G4double)
void SetTrackSecondariesFirst(G4OpticalProcessIndex, G4bool)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4OpticalPhysicsMessenger()
Not implemented.
G4UIcmdWithABool * fSetCerenkovStackPhotonsCmd
setStackPhotons command
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
static G4int GetNewIntValue(const char *paramString)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
G4UIcmdWithABool * fSetScintillationTrackInfoCmd
setScintillationTrackInfo command
G4OpticalPhysics * fOpticalPhysics
associated class
Wave Length Shifting process index.
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
G4OpticalProcessIndex fSelectedProcessIndex
selected optical process
void SetMaxNumPhotonsPerStep(G4int)
void SetParameterCandidates(const char *theString)
void SetScintillationTrackInfo(G4bool)
G4UIcmdWithAnInteger * fSetOpProcessVerboseCmd
setProcessVerbose command
void AvailableForStates(G4ApplicationState s1)
void SetWLSTimeProfile(G4String)
G4UIcmdWithADouble * fSetScintillationYieldFactorCmd
setScintillationYieldFactor command
G4UIcmdWithAnInteger * fSetCerenkovMaxPhotonsCmd
setCerenkovMaxPhotons command
Mie scattering process index.