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 // G4CascadeParamMessenger.hh 00027 // Define simple UI commands as alternative to environment variables 00028 // 00029 #ifndef G4CascadeParamMessenger_hh 00030 #define G4CascadeParamMessenger_hh 00031 00032 #include "G4UImessenger.hh" 00033 #include "globals.hh" 00034 00035 class G4CascadeParameters; 00036 class G4UIcmdWithABool; 00037 class G4UIcmdWithADouble; 00038 class G4UIcmdWithAString; 00039 class G4UIcmdWithAnInteger; 00040 class G4UIcmdWithoutParameter; 00041 class G4UIcommand; 00042 class G4UIdirectory; 00043 00044 00045 class G4CascadeParamMessenger : public G4UImessenger { 00046 public: 00047 G4CascadeParamMessenger(G4CascadeParameters* params); 00048 virtual ~G4CascadeParamMessenger(); 00049 00050 // Interface command needed by G4UImanager -- subclasses should call back! 00051 virtual void SetNewValue(G4UIcommand* command, G4String newValue); 00052 00053 protected: // These commands are intended to be in a base class 00054 void CreateDirectory(const char* path, const char* desc); 00055 00056 template <class T> 00057 T* CreateCommand(const G4String& cmd, const G4String& desc); 00058 00059 private: 00060 G4CascadeParameters* theParams; 00061 G4UIdirectory* cmdDir; 00062 G4bool localCmdDir; // Flag if created vs. found directory 00063 00064 G4UIcmdWithAnInteger* verboseCmd; 00065 G4UIcmdWithoutParameter* reportCmd; 00066 G4UIcmdWithABool* usePreCoCmd; 00067 G4UIcmdWithABool* doCoalCmd; 00068 G4UIcmdWithAString* randomFileCmd; 00069 G4UIcmdWithABool* nucUseBestCmd; 00070 G4UIcmdWithADouble* nucRad2parCmd; 00071 G4UIcmdWithADouble* nucRadScaleCmd; 00072 G4UIcmdWithADouble* nucRadSmallCmd; 00073 G4UIcmdWithADouble* nucRadAlphaCmd; 00074 G4UIcmdWithADouble* nucRadTrailingCmd; 00075 G4UIcmdWithADouble* nucFermiScaleCmd; 00076 G4UIcmdWithADouble* nucXsecScaleCmd; 00077 G4UIcmdWithADouble* nucGammaQDCmd; 00078 G4UIcmdWithADouble* coalDPmax2Cmd; 00079 G4UIcmdWithADouble* coalDPmax3Cmd; 00080 G4UIcmdWithADouble* coalDPmax4Cmd; 00081 }; 00082 00083 // Templated function implementation below 00084 #include "G4CascadeParamMessenger.icc" 00085 00086 #endif /* G4CascadeParamMessenger_hh */