#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 (char *name) |
ParticlePDG * | GetPDGParticle (int pdg) |
ParticlePDG * | GetPDGParticleByIndex (int index) |
bool | GetPDGParticleStatus (char *name) |
bool | GetPDGParticleStatus (int pdg) |
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 28 of file DatabasePDG.cc.
References DeadROC_duringRun::f1, DeadROC_duringRun::f2, timingPdfMaker::file1, edmOneToOneComparison::file2, mps_fire::i, kMaxParticles, particlesDATAstr, AlCaHLTBitMon_QueryRunRegistry::string, and tableDECAYstr.
DatabasePDG::~DatabasePDG | ( | ) |
Definition at line 52 of file DatabasePDG.cc.
References mps_fire::i, and kMaxParticles.
int DatabasePDG::CheckImpossibleDecays | ( | bool | dump = kFALSE | ) |
Definition at line 385 of file DatabasePDG.cc.
References gather_cfg::cout, FrontierConditions_GlobalTag_cff::dump, ParticlePDG::GetMass(), and ParticlePDG::GetPDG().
void DatabasePDG::DumpData | ( | bool | dumpAll = kFALSE | ) |
Definition at line 320 of file DatabasePDG.cc.
References gather_cfg::cout, ParticlePDG::GetMass(), and createfilelist::int.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
int DatabasePDG::GetNAllowedChannels | ( | ParticlePDG * | particle, |
double | motherMass | ||
) |
Definition at line 657 of file DatabasePDG.cc.
References ParticlePDG::GetDecayChannel(), ParticlePDG::GetNDecayChannels(), and mps_fire::i.
Referenced by Decay().
int DatabasePDG::GetNParticles | ( | bool | all = kFALSE | ) |
Definition at line 582 of file DatabasePDG.cc.
References python.cmstools::all(), and mps_fire::i.
Referenced by GrandCanonical::BaryonDensity(), GrandCanonical::CharmDensity(), GrandCanonical::ElectroDensity(), GrandCanonical::EnergyDensity(), gen::Hydjet2Hadronizer::initializeForInternalPartons(), GrandCanonical::StrangeDensity(), and NAStrangeDensity::StrangenessDensity().
|
inline |
ParticlePDG * DatabasePDG::GetPDGParticle | ( | char * | name | ) |
Definition at line 268 of file DatabasePDG.cc.
References mps_fire::i, and Skims_PA_cff::name.
ParticlePDG * DatabasePDG::GetPDGParticle | ( | int | pdg | ) |
Definition at line 218 of file DatabasePDG.cc.
References mps_fire::i.
Referenced by Decay(), gen::Hydjet2Hadronizer::generatePartonsAndHadronize(), and gen::Hydjet2Hadronizer::initializeForInternalPartons().
ParticlePDG * DatabasePDG::GetPDGParticleByIndex | ( | int | index | ) |
Definition at line 198 of file DatabasePDG.cc.
Referenced by GrandCanonical::BaryonDensity(), GrandCanonical::CharmDensity(), GrandCanonical::ElectroDensity(), GrandCanonical::EnergyDensity(), gen::Hydjet2Hadronizer::initializeForInternalPartons(), GrandCanonical::StrangeDensity(), and NAStrangeDensity::StrangenessDensity().
bool DatabasePDG::GetPDGParticleStatus | ( | char * | name | ) |
Definition at line 294 of file DatabasePDG.cc.
References mps_fire::i, and Skims_PA_cff::name.
bool DatabasePDG::GetPDGParticleStatus | ( | int | pdg | ) |
Definition at line 243 of file DatabasePDG.cc.
References mps_fire::i.
bool DatabasePDG::GetPDGParticleStatusByIndex | ( | int | index | ) |
Definition at line 208 of file DatabasePDG.cc.
|
inline |
bool DatabasePDG::IsChannelAllowed | ( | DecayChannel * | channel, |
double | motherMass | ||
) |
Definition at line 648 of file DatabasePDG.cc.
References DecayChannel::GetDaughterPDG(), DecayChannel::GetNDaughters(), and mps_fire::i.
bool DatabasePDG::LoadData | ( | ) |
|
private |
Definition at line 138 of file DatabasePDG.cc.
References ParticlePDG::AddChannel(), PA_ZEESkim_cff::decay, mps_fire::i, GetRecoTauVFromDQM_MC_cff::kk, and LogDebug.
|
private |
Definition at line 63 of file DatabasePDG.cc.
References HltBtagPostValidation_cff::c, LogDebug, EgHLTOffHistBins_cfi::mass, Skims_PA_cff::name, dileptonTrigSettings_cff::pdg, submitPVResolutionJobs::q, alignCSCRings::s, and ApeEstimator_cff::width.
void DatabasePDG::SetDecayFilename | ( | char * | filename | ) |
void DatabasePDG::SetMassRange | ( | double | min, |
double | max | ||
) |
Definition at line 527 of file DatabasePDG.cc.
References mps_fire::i, SiStripPI::max, and min().
Referenced by InitialState::InitialState().
void DatabasePDG::SetMaximumMass | ( | double | value | ) |
Definition at line 513 of file DatabasePDG.cc.
References mps_fire::i, and relativeConstraints::value.
void DatabasePDG::SetMaximumWidth | ( | double | value | ) |
Definition at line 466 of file DatabasePDG.cc.
References mps_fire::i, and relativeConstraints::value.
void DatabasePDG::SetMinimumMass | ( | double | value | ) |
Definition at line 499 of file DatabasePDG.cc.
References mps_fire::i, and relativeConstraints::value.
void DatabasePDG::SetMinimumWidth | ( | double | value | ) |
Definition at line 452 of file DatabasePDG.cc.
References mps_fire::i, and relativeConstraints::value.
void DatabasePDG::SetParticleFilename | ( | char * | filename | ) |
void DatabasePDG::SetUseCharmParticles | ( | bool | flag | ) |
void DatabasePDG::SetWidthRange | ( | double | min, |
double | max | ||
) |
Definition at line 480 of file DatabasePDG.cc.
References mps_fire::i, SiStripPI::max, and min().
Referenced by InitialState::InitialState().
|
private |
Definition at line 546 of file DatabasePDG.cc.
References mps_fire::i.
void DatabasePDG::UseThisListOfParticles | ( | char * | filename, |
bool | exclusive = kTRUE |
||
) |
Definition at line 593 of file DatabasePDG.cc.
References generator_cfi::exclusive, corrVsCorr::filename, newFWLiteAna::found, mps_fire::i, kMaxParticles, LogDebug, and dileptonTrigSettings_cff::pdg.
|
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().