34 #include "DetectorMessenger.hh"
41 #include "DetectorConstruction.hh"
140 if (newValue ==
"polished") {
143 else if (newValue ==
"polishedfrontpainted") {
146 else if (newValue ==
"polishedbackpainted") {
149 else if (newValue ==
"ground") {
152 else if (newValue ==
"groundfrontpainted") {
155 else if (newValue ==
"groundbackpainted") {
158 else if (newValue ==
"polishedlumirrorair") {
161 else if (newValue ==
"polishedlumirrorglue") {
164 else if (newValue ==
"polishedair") {
167 else if (newValue ==
"polishedteflonair") {
170 else if (newValue ==
"polishedtioair") {
173 else if (newValue ==
"polishedtyvekair") {
176 else if (newValue ==
"polishedvm2000air") {
179 else if (newValue ==
"polishedvm2000glue") {
182 else if (newValue ==
"etchedlumirrorair") {
185 else if (newValue ==
"etchedlumirrorglue") {
188 else if (newValue ==
"etchedair") {
191 else if (newValue ==
"etchedteflonair") {
194 else if (newValue ==
"etchedtioair") {
197 else if (newValue ==
"etchedtyvekair") {
200 else if (newValue ==
"etchedvm2000air") {
203 else if (newValue ==
"etchedvm2000glue") {
206 else if (newValue ==
"groundlumirrorair") {
209 else if (newValue ==
"groundlumirrorglue") {
212 else if (newValue ==
"groundair") {
215 else if (newValue ==
"groundteflonair") {
218 else if (newValue ==
"groundtioair") {
221 else if (newValue ==
"groundtyvekair") {
224 else if (newValue ==
"groundvm2000air") {
227 else if (newValue ==
"groundvm2000glue") {
231 else if (newValue ==
"Rough_LUT") {
234 else if (newValue ==
"RoughTeflon_LUT") {
237 else if (newValue ==
"RoughESR_LUT") {
240 else if (newValue ==
"RoughESRGrease_LUT") {
243 else if (newValue ==
"Polished_LUT") {
246 else if (newValue ==
"PolishedTeflon_LUT") {
249 else if (newValue ==
"PolishedESR_LUT") {
252 else if (newValue ==
"PolishedESRGrease_LUT") {
255 else if (newValue ==
"Detector_LUT") {
260 ed <<
"Invalid surface finish: " << newValue;
267 if (newValue ==
"glisur") {
270 else if (newValue ==
"unified") {
273 else if (newValue ==
"LUT") {
276 else if (newValue ==
"DAVIS") {
279 else if (newValue ==
"dichroic") {
284 ed <<
"Invalid surface model: " << newValue;
292 if (newValue ==
"dielectric_metal") {
295 else if (newValue ==
"dielectric_dielectric") {
298 else if (newValue ==
"dielectric_LUT") {
301 else if (newValue ==
"dielectric_LUTDAVIS") {
306 ed <<
"Invalid surface type: " << newValue;
321 std::istringstream instring(newValue);
327 if (tmp ==
"") {
break; }
334 const char* c = prop.c_str();
342 std::istringstream instring(newValue);
348 if (tmp ==
"") {
break; }
355 const char* c = prop.c_str();
364 std::istringstream instring(newValue);
370 if (tmp ==
"") {
break; }
377 const char* c = prop.c_str();
385 std::istringstream instring(newValue);
391 const char* c = prop.c_str();
398 std::istringstream instring(newValue);
404 const char* c = prop.c_str();
void SetGuidance(const char *aGuidance)
G4UIcmdWithAString * fSurfaceModelCmd
void SetSurfaceModel(const G4OpticalSurfaceModel model)
void AddWorldMPV(const char *c, G4MaterialPropertyVector *mpv)
static G4double ConvertToDouble(const char *st)
std::ostringstream G4ExceptionDescription
void InsertValues(G4double energy, G4double value)
void AddBoxMPV(const char *c, G4MaterialPropertyVector *mpv)
G4UIcmdWithAString * fBoxMatConstPropVectorCmd
void SetSurfaceType(const G4SurfaceType type)
G4PhysicsOrderedFreeVector G4MaterialPropertyVector
G4UIcmdWithADouble * fSurfaceSigmaAlphaCmd
static G4double GetNewDoubleValue(const char *paramString)
void AddSurfaceMPV(const char *c, G4MaterialPropertyVector *mpv)
void AddBoxMPCV(const char *c, G4double v)
G4UIcmdWithAString * fSurfaceMatPropVectorCmd
void SetSurfaceSigmaAlpha(G4double v)
void SetNewValue(G4UIcommand *, G4String)
G4UIcmdWithAString * fSurfaceTypeCmd
G4UIcmdWithAString * fSurfaceFinishCmd
DetectorMessenger(DetectorConstruction *)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
void SetSurfaceFinish(const G4OpticalSurfaceFinish finish)
G4GLOB_DLL std::ostream G4cout
DetectorConstruction * fDetector
G4UIcmdWithAString * fWorldMatConstPropVectorCmd
G4UIcmdWithAString * fWorldMatPropVectorCmd
G4UIdirectory * fOpticalDir
G4UIcmdWithAString * fBoxMatPropVectorCmd
void AvailableForStates(G4ApplicationState s1)
Simple detector construction with a box volume placed in a world.
void SetToBeBroadcasted(G4bool val)