00001 //---------------------------------------------------------------------------// 00002 //bb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nu// 00003 // // 00004 // MAJORANA Simulation // 00005 // // 00006 // This code implementation is the intellectual property of the // 00007 // MAJORANA Collaboration. It is based on Geant4, an intellectual // 00008 // property of the RD44 GEANT4 collaboration. // 00009 // // 00010 // ********************* // 00011 // // 00012 // Neither the authors of this software system, nor their employing // 00013 // institutes, nor the agencies providing financial support for this // 00014 // work make any representation or warranty, express or implied, // 00015 // regarding this software system or assume any liability for its use. // 00016 // By copying, distributing or modifying the Program (or any work based // 00017 // on on the Program) you indicate your acceptance of this statement, // 00018 // and all its terms. // 00019 // // 00020 //bb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nubb0nu// 00021 //---------------------------------------------------------------------------// 00032 // Begin description of class here 00039 // End class description 00040 // 00046 // 00047 // --------------------------------------------------------------------------// 00058 // --------------------------------------------------------------------------// 00059 #ifndef MJGeneratorRDMRadioactiveDecayGunMessenger_h 00060 #define MJGeneratorRDMRadioactiveDecayGunMessenger_h 1 00061 // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 00062 // 00063 // MODULE: MJGeneratorRDMRadioactiveDecayGunMessenger.hh 00064 // 00065 // Version: 0.b.3 00066 // Date: 29/02/00 00067 // Author: F Lei & P R Truscott 00068 // Organisation: DERA UK 00069 // Customer: ESA/ESTEC, NOORDWIJK 00070 // Contract: 12115/96/JG/NL Work Order No. 3 00071 // 00072 // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 00073 // 00074 // CHANGE HISTORY 00075 // -------------- 00076 // 00077 // 29 February 2000, P R Truscott, DERA UK 00078 // 0.b.3 release. 00079 // 00080 // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 00082 // 00083 #include "G4UImessenger.hh" 00084 00085 #include "generators/MJGeneratorRDMUIcmdWithNucleusAndUnit.hh" 00086 #include "globals.hh" 00087 00088 #include "generators/MJGeneratorRDMRadioactiveDecayGun.hh" 00089 00090 class MJGeneratorRDMRadioactiveDecayGun; 00092 // 00093 class MJGeneratorRDMRadioactiveDecayGunMessenger: public G4UImessenger 00094 { 00095 // class description 00096 // The MJGeneratorRDMRadioactiveDecayGunMessenger is instatiated by the 00097 // MJGeneratorRDMRadioactiveDecayGun and introduces into the UI menu commands options 00098 // to allow user to specify the isotope which will be treated by 00099 // G4MJGeneratorRDMRadioactiveDecay 00100 // class description - end 00101 00102 public: // with description 00103 MJGeneratorRDMRadioactiveDecayGunMessenger (MJGeneratorRDMRadioactiveDecayGun *theMJGeneratorRDMRadioactiveDecayGun1); 00104 // Constructor introduces commands into the UI menu to control 00105 // MJGeneratorRDMRadioactiveDecayGun. theG4MJGeneratorRDMRadioactiveDecayGun1 is used to identify 00106 // to this class (when instatiated) the associated MJGeneratorRDMRadioactiveDecayGun, 00107 // whose parameters are going to be changed as a result of the UI commands. 00108 // 00109 ~MJGeneratorRDMRadioactiveDecayGunMessenger (); 00110 // Destructor deletes G4UIdirectory and G4UIcommand objects. 00111 // 00112 void SetNewValue (G4UIcommand *command, G4String newValues); 00113 // Identifies the command which has been invoked by the user, extracts the 00114 // parameters associated with that command (held in newValues, and uses 00115 // these values with the appropriate member function of 00116 // MJGeneratorRDMRadioactiveDecayGun. 00117 // 00118 private: 00119 MJGeneratorRDMRadioactiveDecayGun *theRadioactiveDecayGun; 00120 MJGeneratorRDMUIcmdWithNucleusAndUnit *ionCmd; 00121 }; 00123 #endif 00124 00125 00126 00127