File indexing completed on 2024-12-20 03:14:14
0001
0002 #include "SimG4Core/CustomPhysics/interface/CMSAntiSQ.h"
0003 #include "G4PhysicalConstants.hh"
0004 #include "G4SystemOfUnits.hh"
0005 #include "G4ParticleTable.hh"
0006
0007 #include "G4PhaseSpaceDecayChannel.hh"
0008 #include "G4DecayTable.hh"
0009
0010
0011
0012
0013
0014 CMSAntiSQ* CMSAntiSQ::theInstance = nullptr;
0015
0016 CMSAntiSQ* CMSAntiSQ::Definition(double mass) {
0017 if (theInstance != nullptr)
0018 return theInstance;
0019 const G4String name = "anti_sexaq";
0020
0021 G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
0022 G4ParticleDefinition* anInstance = pTable->FindParticle(name);
0023 if (anInstance == nullptr) {
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034 anInstance = new G4ParticleDefinition(
0035 name, mass, 0, 0.0, 0, +1, 0, 0, 0, 0, "baryon", 0, -2, -1020000020, true, -1.0, nullptr, false, "sexaq");
0036 }
0037 theInstance = reinterpret_cast<CMSAntiSQ*>(anInstance);
0038 return theInstance;
0039 }
0040
0041 CMSAntiSQ* CMSAntiSQ::AntiSQ(double mass) {
0042 return Definition(mass * GeV);
0043 }