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 PrimaryGeneratorMessenger_h 00009 #define PrimaryGeneratorMessenger_h 1 00010 00011 #include "G4UImessenger.hh" 00012 #include "myglobals.hh" 00013 00014 class PrimaryGeneratorAction; 00015 class G4UIdirectory; 00016 class G4UIcmdWithAString; 00017 class G4UIcmdWithADouble; 00018 class G4UIcmdWithAnInteger; 00019 class G4UIcmdWithoutParameter; 00020 00021 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 00022 00023 class PrimaryGeneratorMessenger: public G4UImessenger 00024 { 00025 public: 00026 PrimaryGeneratorMessenger(PrimaryGeneratorAction*); 00027 virtual ~PrimaryGeneratorMessenger(); 00028 00029 void SetNewValue(G4UIcommand*, G4String); 00030 00031 private: 00032 PrimaryGeneratorAction* Action; 00033 G4UIdirectory* gunDir; 00034 G4UIcmdWithAnInteger* root_index_cmd; 00035 G4UIcmdWithAString* EnergyMode_cmd; 00036 G4UIcmdWithAString* DirectionMode_cmd; 00037 G4UIcmdWithAString* PositionMode_cmd; 00038 G4UIcmdWithAString* EM_hist_filename_cmd; 00039 G4UIcmdWithAString* EM_hist_histname_cmd; 00040 G4UIcmdWithAString* DM_hist_filename_cmd; 00041 G4UIcmdWithAString* DM_hist_histname_cmd; 00042 G4UIcmdWithAString* root_filename_cmd; 00043 G4UIcmdWithAString* root_treename_cmd; 00044 G4UIcmdWithAString* ResetGenCmd; 00045 G4UIcmdWithAString* ReadCardCmd; 00046 G4UIcmdWithoutParameter* InitializeCmd; 00047 G4UIcmdWithoutParameter* histo_build_cmd; 00048 G4UIcmdWithoutParameter* root_build_cmd; 00049 }; 00050 00051 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 00052 00053 #endif 00054