00001 //---------------------------------------------------------------------------// 00002 //Description: Messenger class 00003 //Author: Wu Chen(wuchen@mail.ihep.ac.cn) 00004 //Created: 17 Oct, 2012 00005 //Comment: 00006 //---------------------------------------------------------------------------// 00007 00008 #ifndef MyAnalysisSvcMessenger_h 00009 #define MyAnalysisSvcMessenger_h 1 00010 00011 #include "myglobals.hh" 00012 #include "G4UImessenger.hh" 00013 00014 class MyAnalysisSvc; 00015 class G4UIdirectory; 00016 class G4UIcmdWithAString; 00017 class G4UIcmdWithADoubleAndUnit; 00018 class G4UIcmdWithAnInteger; 00019 00020 class MyAnalysisSvcMessenger: public G4UImessenger 00021 { 00022 public: 00023 MyAnalysisSvcMessenger(MyAnalysisSvc*); 00024 ~MyAnalysisSvcMessenger(); 00025 00026 void SetNewValue(G4UIcommand*, G4String); 00027 00028 private: 00029 MyAnalysisSvc* m_myAnalysisSvc; 00030 00031 G4UIdirectory* myAnalysisSvcDir; 00032 00033 //about output 00034 G4UIcmdWithAString* out_card_cmd; 00035 00036 //about root file 00037 G4UIcmdWithAString* ofile_name_cmd; 00038 G4UIcmdWithAString* tree_name_cmd; 00039 00040 //about cut 00041 G4UIcmdWithADoubleAndUnit* set_minT_cmd; 00042 G4UIcmdWithADoubleAndUnit* set_maxT_cmd; 00043 00044 //about log 00045 G4UIcmdWithAString* run_name_cmd; 00046 00047 // about PrintModulo 00048 G4UIcmdWithAnInteger* PrintCmd; 00049 }; 00050 00051 #endif