#include <CustomParticleFactory.h>
Public Member Functions | |
CustomParticleFactory () | |
const std::vector< G4ParticleDefinition * > & | getCustomParticles () |
void | loadCustomParticles (const std::string &filePath) |
~CustomParticleFactory ()=default | |
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 29 of file CustomParticleFactory.cc.
|
default |
|
private |
Definition at line 92 of file CustomParticleFactory.cc.
References funct::abs(), ALCARECOTkAlJpsiMuMu_cff::charge, CMSAntiSIMP::Definition(), CMSSIMP::Definition(), createfilelist::int, m_particles, EgHLTOffHistBins_cfi::mass, Skims_PA_cff::name, CustomPDGParser::s_charge(), CustomPDGParser::s_isDphoton(), CustomPDGParser::s_isgluinoHadron(), CustomPDGParser::s_isMesonino(), CustomPDGParser::s_isSbaryon(), CustomPDGParser::s_issbottomHadron(), CustomPDGParser::s_isSIMP(), CustomPDGParser::s_isSLepton(), CustomPDGParser::s_isstopHadron(), CustomPDGParser::s_spin(), CustomParticle::SetCloud(), CustomParticle::SetSpectator(), Validation_hcalonly_cfi::sign, TopDecayID::stable, str, AlCaHLTBitMon_QueryRunRegistry::string, and ApeEstimator_cff::width.
Referenced by getMassTable().
|
private |
Definition at line 399 of file CustomParticleFactory.cc.
References mps_fire::i, dqmiolumiharvest::j, SiStripPI::min, Skims_PA_cff::name, EgammaValidation_cff::pdgId, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by loadCustomParticles().
const std::vector< G4ParticleDefinition * > & CustomParticleFactory::getCustomParticles | ( | ) |
Definition at line 437 of file CustomParticleFactory.cc.
References m_particles.
|
private |
Definition at line 338 of file CustomParticleFactory.cc.
References beamvalidation::br, GCPpyPlots::configFile, mps_fire::i, mps_splice::line, LogDebug, Skims_PA_cff::name, EgammaValidation_cff::pdgId, AlCaHLTBitMon_QueryRunRegistry::string, and ToLower().
Referenced by loadCustomParticles().
|
private |
Definition at line 248 of file CustomParticleFactory.cc.
References funct::abs(), addCustomParticle(), GCPpyPlots::configFile, mps_splice::line, EgHLTOffHistBins_cfi::mass, SiStripPI::max, Skims_PA_cff::name, EgammaValidation_cff::pdgId, CustomPDGParser::s_isgluinoHadron(), CustomPDGParser::s_isSIMP(), CustomPDGParser::s_isstopHadron(), Validation_hcalonly_cfi::sign, AlCaHLTBitMon_QueryRunRegistry::string, createJobs::tmp, and ToLower().
Referenced by loadCustomParticles().
void CustomParticleFactory::loadCustomParticles | ( | const std::string & | filePath | ) |
Definition at line 31 of file CustomParticleFactory.cc.
References GCPpyPlots::configFile, MillePedeFileConverter_cfg::e, dt4ml_dqm_sourceclient-live_cfg::filePath, getAntiDecayTable(), getDecayTable(), getMassTable(), mps_splice::line, loaded, EgammaValidation_cff::pdgId, alignCSCRings::s, AlCaHLTBitMon_QueryRunRegistry::string, ToLower(), and ApeEstimator_cff::width.
|
private |
Definition at line 430 of file CustomParticleFactory.cc.
References mps_fire::i, 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().