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 MyFieldSvcMessenger_h 00009 #define MyFieldSvcMessenger_h 1 00010 00011 #include "myglobals.hh" 00012 #include "G4UImessenger.hh" 00013 00014 class MyFieldSvc; 00015 class G4UIdirectory; 00016 class G4UIcmdWithoutParameter; 00017 class G4UIcmdWithAString; 00018 class G4UIcmdWithADouble; 00019 class G4UIcmdWithADoubleAndUnit; 00020 00021 class MyFieldSvcMessenger: public G4UImessenger 00022 { 00023 public: 00024 MyFieldSvcMessenger(MyFieldSvc* ); 00025 ~MyFieldSvcMessenger(); 00026 00027 void SetNewValue(G4UIcommand*, G4String); 00028 00029 private: 00030 MyFieldSvc* fMyFieldSvc; 00031 00032 G4UIdirectory* g4simDir; 00033 G4UIdirectory* magDir; 00034 G4UIcmdWithoutParameter* SetFieldCmd; 00035 G4UIcmdWithAString* ReadCardCmd; 00036 G4UIcmdWithADoubleAndUnit* SetMagIntensityCmd; 00037 G4UIcmdWithADoubleAndUnit* SetMagThetaCmd; 00038 G4UIcmdWithADoubleAndUnit* SetMagPhiCmd; 00039 00040 }; 00041 00042 #endif 00043