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 // 00045 // 00046 // --------------------------------------------------------------------------// 00057 // --------------------------------------------------------------------------// 00058 00059 #ifndef _MJGENERATORG4GUN_HH 00060 #define _MJGENERATORG4GUN_HH 00061 00062 //---------------------------------------------------------------------------// 00063 00064 #include "generators/MJVGenerator.hh" 00065 00066 class G4Event; 00067 class G4ParticleGun; 00068 00069 //---------------------------------------------------------------------------// 00070 00071 class MJGeneratorG4Gun : public MJVGenerator 00072 { 00073 public: 00074 00075 //default constructor 00076 MJGeneratorG4Gun(); 00077 00078 //copy constructor 00079 MJGeneratorG4Gun(const MJGeneratorG4Gun &); 00080 00081 //destructor 00082 ~MJGeneratorG4Gun(); 00083 00084 //public interface 00085 void GeneratePrimaryVertex(G4Event *event); 00086 void SetParticlePosition(G4ThreeVector vec) {fParticleGun->SetParticlePosition(vec);} 00087 00088 //protected members 00089 protected: 00090 00091 00092 //private members 00093 private: 00094 G4ParticleGun *fParticleGun; 00095 00096 }; 00097 #endif