00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // 00027 // 00028 //--------------------------------------------------------------------------- 00029 // 00030 // ClassName: G4OpticalPhysicsMessenger 00031 // 00032 // Author: P.Gumplinger 30.09.2009 00033 // 00034 // Modified: P.Gumplinger 29.09.2011 00035 // (based on code from I. Hrivnacova) 00036 // 00037 //---------------------------------------------------------------------------- 00038 // 00039 // This class defines commands for the optical physics 00040 // 00041 00042 #ifndef G4OpticalPhysicsMessenger_h 00043 #define G4OpticalPhysicsMessenger_h 1 00044 00045 #include "globals.hh" 00046 00047 #include "G4UImessenger.hh" 00048 #include "G4OpticalProcessIndex.hh" 00049 00050 class G4VProcess; 00051 class G4OpticalPhysics; 00052 00053 class G4UIdirectory; 00054 class G4UIcmdWithABool; 00055 class G4UIcmdWithADouble; 00056 class G4UIcmdWithAString; 00057 class G4UIcmdWithAnInteger; 00058 00059 // Messenger class that defines commands for the optical physics 00060 // 00061 // Implements commands: 00062 // - /optics_engine/selectOpProcess processName 00063 // - /optics_engine/setOpProcessUse true|false 00064 // - /optics_engine/setOpProcessVerbose verboseLevel 00065 // - /optics_engine/setCerenkovMaxPhotons maxNofPhotons 00066 // - /optics_engine/setCerenkovMaxBetaChange maxBetaChange 00067 // - /optics_engine/setScintillationYieldFactor yieldFactor 00068 // - /optics_engine/setScintillationByParticleType true|false 00069 // - /optics_engine/setOpticalSurfaceModel glisur|unified 00070 // - /optics_engine/setWLSTimeProfile delta|exponential 00071 // - /optics_engine/setTrackSecondariesFirst true|false 00072 // - /optics_engine/setFiniteRiseTime true|false 00073 00074 class G4OpticalPhysicsMessenger: public G4UImessenger 00075 { 00076 public: 00077 00078 G4OpticalPhysicsMessenger(G4OpticalPhysics*); 00079 virtual ~G4OpticalPhysicsMessenger(); 00080 00081 // methods 00082 virtual void SetNewValue(G4UIcommand*, G4String); 00083 00084 private: 00085 00087 G4OpticalPhysicsMessenger(); 00089 G4OpticalPhysicsMessenger(const G4OpticalPhysicsMessenger& right); 00091 G4OpticalPhysicsMessenger& operator=(const G4OpticalPhysicsMessenger& right); 00092 00093 // data members 00094 00096 G4OpticalPhysics* fOpticalPhysics; 00097 00099 G4UIdirectory* fDir; 00100 00102 G4OpticalProcessIndex fSelectedProcessIndex; 00103 00105 G4UIcmdWithAString* fSelectOpProcessCmd; 00106 00108 G4UIcmdWithABool* fSetOpProcessUseCmd; 00109 00111 G4UIcmdWithAnInteger* fSetOpProcessVerboseCmd; 00112 00114 G4UIcmdWithAnInteger* fSetCerenkovMaxPhotonsCmd; 00115 00117 G4UIcmdWithADouble* fSetCerenkovMaxBetaChangeCmd; 00118 00120 G4UIcmdWithADouble* fSetScintillationYieldFactorCmd; 00121 00123 G4UIcmdWithABool* fSetScintillationByParticleTypeCmd; 00124 00125 // /// setOpticalSurfaceModel command 00126 // G4UIcmdWithAString* fSetOpticalSurfaceModelCmd; 00127 00129 G4UIcmdWithAString* fSetWLSTimeProfileCmd; 00130 00132 G4UIcmdWithABool* fSetTrackSecondariesFirstCmd; 00133 00135 G4UIcmdWithABool* fSetFiniteRiseTimeCmd; 00136 00137 }; 00138 00139 #endif // G4OpticalPhysicsMessenger_h