#include <CustomParticleFactory.h>
Public Member Functions | |
CustomParticleFactory () | |
const std::vector< G4ParticleDefinition * > & | GetCustomParticles () |
void | loadCustomParticles (const std::string &filePath) |
~CustomParticleFactory () | |
Private Member Functions | |
void | addCustomParticle (int pdgCode, double mass, const std::string &name) |
G4DecayTable * | getAntiDecayTable (int pdgId, G4DecayTable *theDecayTable) |
G4DecayTable * | getDecayTable (std::ifstream *configFile, int pdgId) |
void | getMassTable (std::ifstream *configFile) |
std::string | ToLower (std::string str) |
Static Private Attributes | |
static bool | loaded = false |
static std::vector< G4ParticleDefinition * > | m_particles |
Definition at line 12 of file CustomParticleFactory.h.
|
explicit |
Definition at line 26 of file CustomParticleFactory.cc.
CustomParticleFactory::~CustomParticleFactory | ( | ) |
Definition at line 28 of file CustomParticleFactory.cc.
|
private |
Definition at line 90 of file CustomParticleFactory.cc.
References funct::abs(), ALCARECOTkAlJpsiMuMu_cff::charge, GeV, createfilelist::int, m_particles, CustomPDGParser::s_charge(), CustomPDGParser::s_isDphoton(), CustomPDGParser::s_isMesonino(), CustomPDGParser::s_isRHadron(), CustomPDGParser::s_isSbaryon(), CustomPDGParser::s_issbottomHadron(), CustomPDGParser::s_isSLepton(), CustomPDGParser::s_isstopHadron(), CustomPDGParser::s_spin(), CustomParticle::SetCloud(), CustomParticle::SetSpectator(), Validation_hcalonly_cfi::sign, spin(), TopDecayID::stable, str, AlCaHLTBitMon_QueryRunRegistry::string, and ApeEstimator_cff::width.
Referenced by getMassTable().
|
private |
Definition at line 379 of file CustomParticleFactory.cc.
References mps_fire::i, min(), dataset::name, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by loadCustomParticles().
const std::vector< G4ParticleDefinition * > & CustomParticleFactory::GetCustomParticles | ( | ) |
Definition at line 417 of file CustomParticleFactory.cc.
References m_particles.
|
private |
Definition at line 318 of file CustomParticleFactory.cc.
References beamvalidation::br, mps_fire::i, mps_splice::line, LogDebug, dataset::name, common_cff::pdgId, AlCaHLTBitMon_QueryRunRegistry::string, and ToLower().
Referenced by loadCustomParticles().
|
private |
Definition at line 238 of file CustomParticleFactory.cc.
References funct::abs(), addCustomParticle(), mps_splice::line, ResonanceBuilder::mass, SiStripPI::max, dataset::name, common_cff::pdgId, CustomPDGParser::s_isRHadron(), CustomPDGParser::s_isstopHadron(), Validation_hcalonly_cfi::sign, AlCaHLTBitMon_QueryRunRegistry::string, tmp, and ToLower().
Referenced by loadCustomParticles().
void CustomParticleFactory::loadCustomParticles | ( | const std::string & | filePath | ) |
Definition at line 30 of file CustomParticleFactory.cc.
References MillePedeFileConverter_cfg::e, getAntiDecayTable(), getDecayTable(), getMassTable(), GeV, mps_splice::line, loaded, MeV, common_cff::pdgId, alignCSCRings::s, AlCaHLTBitMon_QueryRunRegistry::string, ToLower(), and ApeEstimator_cff::width.
|
private |
Definition at line 410 of file CustomParticleFactory.cc.
References mps_fire::i, create_public_lumi_plots::loc, and str.
Referenced by getDecayTable(), getMassTable(), and loadCustomParticles().
|
staticprivate |
Definition at line 27 of file CustomParticleFactory.h.
Referenced by loadCustomParticles().
|
staticprivate |
Definition at line 28 of file CustomParticleFactory.h.
Referenced by addCustomParticle(), and GetCustomParticles().