#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 29 of file CustomParticleFactory.cc.
|
private |
Definition at line 88 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, harvestTrackValidationPlots::str, AlCaHLTBitMon_QueryRunRegistry::string, and ApeEstimator_cff::width.
Referenced by getMassTable().
|
private |
Definition at line 378 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 420 of file CustomParticleFactory.cc.
References m_particles.
|
private |
Definition at line 314 of file CustomParticleFactory.cc.
References beamvalidation::br, mps_fire::i, geometryCSVtoXML::line, LogDebug, dataset::name, cosmictrackingParticleSelector_cfi::pdgId, AlCaHLTBitMon_QueryRunRegistry::string, and ToLower().
Referenced by loadCustomParticles().
|
private |
Definition at line 225 of file CustomParticleFactory.cc.
References funct::abs(), addCustomParticle(), geometryCSVtoXML::line, ResonanceBuilder::mass, hpstanc_transforms::max, dataset::name, cosmictrackingParticleSelector_cfi::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 32 of file CustomParticleFactory.cc.
References MillePedeFileConverter_cfg::e, getAntiDecayTable(), getDecayTable(), getMassTable(), GeV, geometryCSVtoXML::line, loaded, MeV, cosmictrackingParticleSelector_cfi::pdgId, alignCSCRings::s, AlCaHLTBitMon_QueryRunRegistry::string, ToLower(), and ApeEstimator_cff::width.
|
private |
Definition at line 413 of file CustomParticleFactory.cc.
References mps_fire::i, create_public_lumi_plots::loc, and harvestTrackValidationPlots::str.
Referenced by getDecayTable(), getMassTable(), and loadCustomParticles().
|
staticprivate |
Definition at line 30 of file CustomParticleFactory.h.
Referenced by loadCustomParticles().
|
staticprivate |
Definition at line 31 of file CustomParticleFactory.h.
Referenced by addCustomParticle(), and GetCustomParticles().