#include <DatabasePDG.h>
Public Member Functions | |
int | CheckImpossibleDecays (bool dump=kFALSE) |
DatabasePDG () | |
void | DumpData (bool dumpAll=kFALSE) |
char * | GetDecayFilename () |
double | GetMaximumMass () |
double | GetMaximumWidth () |
double | GetMinimumMass () |
double | GetMinimumWidth () |
int | GetNAllowedChannels (ParticlePDG *particle, double motherMass) |
int | GetNParticles (bool all=kFALSE) |
char * | GetParticleFilename () |
ParticlePDG * | GetPDGParticle (int pdg) |
ParticlePDG * | GetPDGParticle (char *name) |
ParticlePDG * | GetPDGParticleByIndex (int index) |
bool | GetPDGParticleStatus (int pdg) |
bool | GetPDGParticleStatus (char *name) |
bool | GetPDGParticleStatusByIndex (int index) |
bool | GetUseCharmParticles () |
bool | IsChannelAllowed (DecayChannel *channel, double motherMass) |
bool | LoadData () |
void | SetDecayFilename (char *filename) |
void | SetMassRange (double min, double max) |
void | SetMaximumMass (double value) |
void | SetMaximumWidth (double value) |
void | SetMinimumMass (double value) |
void | SetMinimumWidth (double value) |
void | SetParticleFilename (char *filename) |
void | SetUseCharmParticles (bool flag) |
void | SetWidthRange (double min, double max) |
void | UseThisListOfParticles (char *filename, bool exclusive=kTRUE) |
~DatabasePDG () | |
Private Member Functions | |
bool | LoadDecays () |
bool | LoadParticles () |
void | SortParticles () |
Private Attributes | |
char | fDecayFilename [256] |
double | fMaximumMass |
double | fMaximumWidth |
double | fMinimumMass |
double | fMinimumWidth |
int | fNParticles |
char | fParticleFilename [256] |
ParticlePDG * | fParticles [kMaxParticles] |
bool | fStatus [kMaxParticles] |
bool | fUseCharmParticles |
Definition at line 34 of file DatabasePDG.h.
DatabasePDG::DatabasePDG | ( | ) |
Definition at line 29 of file DatabasePDG.cc.
References connectstrParser::f1, connectstrParser::f2, edmOneToOneComparison::file1, edmOneToOneComparison::file2, edm::FileInPath::fullPath(), mps_fire::i, kMaxParticles, particlesDATAstr, AlCaHLTBitMon_QueryRunRegistry::string, and tableDECAYstr.
DatabasePDG::~DatabasePDG | ( | ) |
int DatabasePDG::CheckImpossibleDecays | ( | bool | dump = kFALSE | ) |
Definition at line 372 of file DatabasePDG.cc.
References gather_cfg::cout, ParticlePDG::GetMass(), and ParticlePDG::GetPDG().
Referenced by GetMaximumMass().
void DatabasePDG::DumpData | ( | bool | dumpAll = kFALSE | ) |
Definition at line 318 of file DatabasePDG.cc.
References gather_cfg::cout, ParticlePDG::GetMass(), and createfilelist::int.
Referenced by GetMaximumMass().
|
inline |
Definition at line 82 of file DatabasePDG.h.
References Vispa.Plugins.EdmBrowser.EdmDataAccessor::all(), fDecayFilename, GetNParticles(), GetPDGParticle(), GetPDGParticleByIndex(), GetPDGParticleStatus(), GetPDGParticleStatusByIndex(), diffTreeTool::index, and dataset::name.
|
inline |
Definition at line 94 of file DatabasePDG.h.
References CheckImpossibleDecays(), FrontierConditions_GlobalTag_cff::dump, DumpData(), fMaximumMass, GetNAllowedChannels(), and IsChannelAllowed().
|
inline |
|
inline |
|
inline |
int DatabasePDG::GetNAllowedChannels | ( | ParticlePDG * | particle, |
double | motherMass | ||
) |
Definition at line 650 of file DatabasePDG.cc.
References ParticlePDG::GetDecayChannel(), ParticlePDG::GetNDecayChannels(), and mps_fire::i.
Referenced by Decay(), and GetMaximumMass().
int DatabasePDG::GetNParticles | ( | bool | all = kFALSE | ) |
Definition at line 574 of file DatabasePDG.cc.
References mps_fire::i.
Referenced by GrandCanonical::BaryonDensity(), GrandCanonical::CharmDensity(), GrandCanonical::ElectroDensity(), GrandCanonical::EnergyDensity(), GetDecayFilename(), gen::Hydjet2Hadronizer::initializeForInternalPartons(), GrandCanonical::StrangeDensity(), and NAStrangeDensity::StrangenessDensity().
|
inline |
ParticlePDG * DatabasePDG::GetPDGParticle | ( | int | pdg | ) |
Definition at line 222 of file DatabasePDG.cc.
References mps_fire::i.
Referenced by Decay(), gen::Hydjet2Hadronizer::generatePartonsAndHadronize(), GetDecayFilename(), and gen::Hydjet2Hadronizer::initializeForInternalPartons().
ParticlePDG * DatabasePDG::GetPDGParticle | ( | char * | name | ) |
Definition at line 270 of file DatabasePDG.cc.
References mps_fire::i.
ParticlePDG * DatabasePDG::GetPDGParticleByIndex | ( | int | index | ) |
Definition at line 202 of file DatabasePDG.cc.
References diffTreeTool::index.
Referenced by GrandCanonical::BaryonDensity(), GrandCanonical::CharmDensity(), GrandCanonical::ElectroDensity(), GrandCanonical::EnergyDensity(), GetDecayFilename(), gen::Hydjet2Hadronizer::initializeForInternalPartons(), GrandCanonical::StrangeDensity(), and NAStrangeDensity::StrangenessDensity().
bool DatabasePDG::GetPDGParticleStatus | ( | int | pdg | ) |
Definition at line 246 of file DatabasePDG.cc.
References mps_fire::i.
Referenced by GetDecayFilename().
bool DatabasePDG::GetPDGParticleStatus | ( | char * | name | ) |
Definition at line 294 of file DatabasePDG.cc.
References mps_fire::i.
bool DatabasePDG::GetPDGParticleStatusByIndex | ( | int | index | ) |
Definition at line 212 of file DatabasePDG.cc.
References diffTreeTool::index.
Referenced by GetDecayFilename().
|
inline |
bool DatabasePDG::IsChannelAllowed | ( | DecayChannel * | channel, |
double | motherMass | ||
) |
Definition at line 641 of file DatabasePDG.cc.
References DecayChannel::GetDaughterPDG(), DecayChannel::GetNDaughters(), and mps_fire::i.
Referenced by GetMaximumMass().
bool DatabasePDG::LoadData | ( | ) |
|
private |
Definition at line 142 of file DatabasePDG.cc.
References ParticlePDG::AddChannel(), SelectingProcedure_cff::decay, mps_fire::i, GetRecoTauVFromDQM_MC_cff::kk, and LogDebug.
|
private |
Definition at line 70 of file DatabasePDG.cc.
References EnergyCorrector::c, LogDebug, ResonanceBuilder::mass, dataset::name, lumiQueryAPI::q, alignCSCRings::s, spin(), and ApeEstimator_cff::width.
void DatabasePDG::SetDecayFilename | ( | char * | filename | ) |
Definition at line 62 of file DatabasePDG.cc.
void DatabasePDG::SetMassRange | ( | double | min, |
double | max | ||
) |
Definition at line 514 of file DatabasePDG.cc.
References mps_fire::i, SiStripPI::max, and min().
Referenced by InitialState::InitialState().
void DatabasePDG::SetMaximumMass | ( | double | value | ) |
Definition at line 499 of file DatabasePDG.cc.
References mps_fire::i, and relativeConstraints::value.
void DatabasePDG::SetMaximumWidth | ( | double | value | ) |
Definition at line 449 of file DatabasePDG.cc.
References mps_fire::i, and relativeConstraints::value.
void DatabasePDG::SetMinimumMass | ( | double | value | ) |
Definition at line 484 of file DatabasePDG.cc.
References mps_fire::i, and relativeConstraints::value.
void DatabasePDG::SetMinimumWidth | ( | double | value | ) |
Definition at line 434 of file DatabasePDG.cc.
References mps_fire::i, and relativeConstraints::value.
void DatabasePDG::SetParticleFilename | ( | char * | filename | ) |
Definition at line 58 of file DatabasePDG.cc.
void DatabasePDG::SetUseCharmParticles | ( | bool | flag | ) |
void DatabasePDG::SetWidthRange | ( | double | min, |
double | max | ||
) |
Definition at line 464 of file DatabasePDG.cc.
References mps_fire::i, SiStripPI::max, and min().
Referenced by InitialState::InitialState().
|
private |
Definition at line 537 of file DatabasePDG.cc.
References mps_fire::i.
void DatabasePDG::UseThisListOfParticles | ( | char * | filename, |
bool | exclusive = kTRUE |
||
) |
Definition at line 584 of file DatabasePDG.cc.
References runEdmFileComparison::found, mps_fire::i, kMaxParticles, and LogDebug.
|
private |
Definition at line 40 of file DatabasePDG.h.
Referenced by GetDecayFilename().
|
private |
Definition at line 45 of file DatabasePDG.h.
Referenced by GetMaximumMass().
|
private |
Definition at line 43 of file DatabasePDG.h.
Referenced by GetMaximumWidth().
|
private |
Definition at line 44 of file DatabasePDG.h.
Referenced by GetMinimumMass().
|
private |
Definition at line 42 of file DatabasePDG.h.
Referenced by GetMinimumWidth().
|
private |
Definition at line 36 of file DatabasePDG.h.
|
private |
Definition at line 39 of file DatabasePDG.h.
Referenced by GetParticleFilename().
|
private |
Definition at line 37 of file DatabasePDG.h.
|
private |
Definition at line 38 of file DatabasePDG.h.
|
private |
Definition at line 41 of file DatabasePDG.h.
Referenced by GetUseCharmParticles().