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 00036 // End class description 00037 // 00043 // 00044 // --------------------------------------------------------------------------// 00055 // --------------------------------------------------------------------------// 00056 #include "generators/MJGeneratorRDMRadioactiveDecayGunMessenger.hh" 00057 #include "generators/MJGeneratorRDMUIcmdWithNucleusAndUnit.hh" 00058 #include <iostream> 00060 // 00061 MJGeneratorRDMRadioactiveDecayGunMessenger::MJGeneratorRDMRadioactiveDecayGunMessenger 00062 (MJGeneratorRDMRadioactiveDecayGun* theRadioactiveDecayGun1) : 00063 theRadioactiveDecayGun(theRadioactiveDecayGun1) 00064 { 00065 ionCmd = new MJGeneratorRDMUIcmdWithNucleusAndUnit("/grdm/ion",this); 00066 ionCmd->SetGuidance("define the primary ion (a,z,e)"); 00067 ionCmd->SetParameterName("A","Z","E",true); 00068 00069 ionCmd->SetDefaultUnit("keV"); 00070 ionCmd->SetUnitCandidates("keV MeV"); 00071 } 00073 // 00074 MJGeneratorRDMRadioactiveDecayGunMessenger::~MJGeneratorRDMRadioactiveDecayGunMessenger () 00075 { 00076 delete ionCmd; 00077 } 00079 // 00080 void MJGeneratorRDMRadioactiveDecayGunMessenger::SetNewValue 00081 (G4UIcommand *command, G4String newValues) 00082 { 00083 00084 if (command==ionCmd) {theRadioactiveDecayGun-> 00085 SetNucleus(ionCmd->GetNewNucleusValue(newValues)); 00086 } 00087 } 00089 // 00090 //G4String G4MJGeneratorRDMRadioactiveDecayGunMessenger::GetCurrentValue (G4UIcommand * command) 00091 //{ 00092 00093 // else if (command==NpIntvCmd) 00094 // {cv = NpIntvCmd->ConvertToString(theRDMnnun->GetNumberOfPhiIntv());} 00095 // return cv; 00096 //} 00098 00099 00100 00101 00102 00103 00104 00105 00106 00107