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 //---------------------------------------------------------------------------// 00022 // 00023 // $Id: MJGeneratorRDM.cc,v 1.2 2004/11/09 13:42:39 xliu Exp $ 00024 // 00025 // CLASS IMPLEMENTATION: MJGeneratorRDM.cc 00026 // 00027 //---------------------------------------------------------------------------// 00031 // 00032 //---------------------------------------------------------------------------// 00044 //---------------------------------------------------------------------------// 00045 00046 #include "G4ParticleTable.hh" 00047 #include "G4ParticleDefinition.hh" 00048 #include "G4Material.hh" 00049 #include "Randomize.hh" 00050 00051 #include "io/MJLogger.hh" 00052 00053 class G4Event; 00054 00055 //---------------------------------------------------------------------------// 00056 00057 #include "generators/MJGeneratorRDM.hh" 00058 00059 //---------------------------------------------------------------------------// 00060 00061 MJGeneratorRDM::MJGeneratorRDM() 00062 { 00063 //Inititialize particle gun with RDM 00064 fParticleGun = new MJGeneratorRDMRadioactiveDecayGun(); 00065 MJLog(trace) << "MJGeneratorRDM Created." << endlog; 00066 } 00067 00068 //---------------------------------------------------------------------------// 00069 00070 MJGeneratorRDM::MJGeneratorRDM(const MJGeneratorRDM & other) 00071 { 00072 } 00073 00074 //---------------------------------------------------------------------------// 00075 00076 MJGeneratorRDM::~MJGeneratorRDM() 00077 { 00078 delete fParticleGun; 00079 } 00080 00081 //---------------------------------------------------------------------------// 00082 00083 void MJGeneratorRDM::GeneratePrimaryVertex(G4Event *anevent) 00084 { 00085 // Set the nucleus at default position (0.,0.,0.) 00086 // fParticleGun->SetParticlePosition(G4ThreeVector(0.0*cm, 0.0*cm, 0.0*cm)); 00087 fParticleGun->GeneratePrimaryVertex(anevent); 00088 } 00089 00090 //---------------------------------------------------------------------------// 00091 //---------------------------------------------------------------------------//