00001 // 00002 // ******************************************************************** 00003 // * DISCLAIMER * 00004 // * * 00005 // * Neither the authors of this software system, nor their employing * 00006 // * institutes,nor the agencies providing financial support for this * 00007 // * work make any representation or warranty, express or implied, * 00008 // * regarding this software system or assume any liability for its * 00009 // * use. * 00010 // * * 00011 // ******************************************************************** 00012 // 00013 // Implementation of the Decay0 primary generator as MJ-generator 00014 // 00015 // History: 00016 // -------- 00017 // 25 Oct 2004 L.Pandola First implementation 00018 00019 #include "G4ParticleTable.hh" 00020 #include "G4ParticleDefinition.hh" 00021 #include "G4Material.hh" 00022 #include "Randomize.hh" 00023 00024 #include "io/MJLogger.hh" 00025 00026 class G4Event; 00027 00028 //---------------------------------------------------------------------------// 00029 00030 #include "generators/MaGeGeneratorDecay0.hh" 00031 00032 //---------------------------------------------------------------------------// 00033 00034 MaGeGeneratorDecay0::MaGeGeneratorDecay0() 00035 { 00036 fParticleGun = new MaGeDecay0Interface(" "); 00037 MJLog(trace) << "MJGeneratorDecay0 Created." << endlog; 00038 } 00039 00040 //---------------------------------------------------------------------------// 00041 00042 MaGeGeneratorDecay0::MaGeGeneratorDecay0(const MaGeGeneratorDecay0 & other) 00043 { 00044 } 00045 00046 //---------------------------------------------------------------------------// 00047 00048 MaGeGeneratorDecay0::~MaGeGeneratorDecay0() 00049 { 00050 delete fParticleGun; 00051 } 00052 00053 //---------------------------------------------------------------------------// 00054 00055 void MaGeGeneratorDecay0::GeneratePrimaryVertex(G4Event *anevent) 00056 { 00057 fParticleGun->GeneratePrimaryVertex(anevent); 00058 } 00059 00060 //---------------------------------------------------------------------------// 00061 //---------------------------------------------------------------------------//