Functions | |
void | allStatus1 (const HepMC::GenEvent *all, std::vector< const HepMC::GenParticle *> &status1) |
void | allStatus2 (const HepMC::GenEvent *all, std::vector< const HepMC::GenParticle *> &status2) |
void | allStatus3 (const HepMC::GenEvent *all, std::vector< const HepMC::GenParticle *> &status3) |
void | allVisibleParticles (const HepMC::GenEvent *all, std::vector< const HepMC::GenParticle *> &visible) |
void | findDescendents (const HepMC::GenParticle *a, std::vector< const HepMC::GenParticle *> &descendents) |
void | findFSRPhotons (const std::vector< const HepMC::GenParticle *> &leptons, const std::vector< const HepMC::GenParticle *> &all, double deltaR, std::vector< const HepMC::GenParticle *> &photons) |
void | findFSRPhotons (const std::vector< const HepMC::GenParticle *> &leptons, const HepMC::GenEvent *all, double deltaR, std::vector< const HepMC::GenParticle *> &photons) |
TLorentzVector | genMet (const HepMC::GenEvent *all, double etamin=-9999., double etamax=9999.) |
template<class T > | |
bool | GreaterByE (const T &a1, const T &a2) |
bool | isChargedLepton (const HepMC::GenParticle *part) |
bool | isNeutrino (const HepMC::GenParticle *part) |
bool | isTau (const HepMC::GenParticle *part) |
void | removeIsolatedLeptons (const HepMC::GenEvent *all, double deltaR, double sumPt, std::vector< const HepMC::GenParticle *> &pruned) |
bool | sortByE (const HepMC::GenParticle *a, const HepMC::GenParticle *b) |
bool | sortByPseudoRapidity (const HepMC::GenParticle *a, const HepMC::GenParticle *b) |
bool | sortByPt (const HepMC::GenParticle *a, const HepMC::GenParticle *b) |
template<class T > | |
bool | sortByPtRef (const T lhs, const T rhs) |
bool | sortByRapidity (const HepMC::GenParticle *a, const HepMC::GenParticle *b) |
void HepMCValidationHelper::allStatus1 | ( | const HepMC::GenEvent * | all, |
std::vector< const HepMC::GenParticle *> & | status1 | ||
) |
Definition at line 73 of file HepMCValidationHelper.cc.
References python.cmstools::all().
Referenced by allVisibleParticles(), MBUEandQCDValidation::analyze(), findFSRPhotons(), and removeIsolatedLeptons().
void HepMCValidationHelper::allStatus2 | ( | const HepMC::GenEvent * | all, |
std::vector< const HepMC::GenParticle *> & | status2 | ||
) |
Definition at line 80 of file HepMCValidationHelper.cc.
References python.cmstools::all().
Referenced by removeIsolatedLeptons().
void HepMCValidationHelper::allStatus3 | ( | const HepMC::GenEvent * | all, |
std::vector< const HepMC::GenParticle *> & | status3 | ||
) |
Definition at line 87 of file HepMCValidationHelper.cc.
References python.cmstools::all().
void HepMCValidationHelper::allVisibleParticles | ( | const HepMC::GenEvent * | all, |
std::vector< const HepMC::GenParticle *> & | visible | ||
) |
Definition at line 269 of file HepMCValidationHelper.cc.
References python.cmstools::all(), allStatus1(), mps_fire::i, and isNeutrino().
Referenced by genMet().
void HepMCValidationHelper::findDescendents | ( | const HepMC::GenParticle * | a, |
std::vector< const HepMC::GenParticle *> & | descendents | ||
) |
Definition at line 94 of file HepMCValidationHelper.cc.
References a.
Referenced by removeIsolatedLeptons().
void HepMCValidationHelper::findFSRPhotons | ( | const std::vector< const HepMC::GenParticle *> & | leptons, |
const std::vector< const HepMC::GenParticle *> & | all, | ||
double | deltaR, | ||
std::vector< const HepMC::GenParticle *> & | photons | ||
) |
Definition at line 21 of file HepMCValidationHelper.cc.
References python.cmstools::all(), PbPb_ZMuSkimMuonDPG_cff::deltaR, mps_fire::i, HLT_2022v11_cff::leptons, and mps_update::status.
Referenced by WValidation::analyze(), DrellYanValidation::analyze(), findFSRPhotons(), and removeIsolatedLeptons().
void HepMCValidationHelper::findFSRPhotons | ( | const std::vector< const HepMC::GenParticle *> & | leptons, |
const HepMC::GenEvent * | all, | ||
double | deltaR, | ||
std::vector< const HepMC::GenParticle *> & | photons | ||
) |
Definition at line 12 of file HepMCValidationHelper.cc.
References python.cmstools::all(), allStatus1(), findFSRPhotons(), and HLT_2022v11_cff::leptons.
TLorentzVector HepMCValidationHelper::genMet | ( | const HepMC::GenEvent * | all, |
double | etamin = -9999. , |
||
double | etamax = 9999. |
||
) |
Definition at line 280 of file HepMCValidationHelper.cc.
References python.cmstools::all(), allVisibleParticles(), muonTiming_cfi::etamax, muonTiming_cfi::etamin, mps_fire::i, BTaggingMonitor_cfi::met, submitPVValidationJobs::t, and x.
Referenced by GenSpecificAlgo::addInfo(), WValidation::analyze(), HLTJetMETValidation::analyze(), pat::GenMETExtractor::produce(), HLTTauMCProducer::produce(), and l1t::GenToInputProducer::produce().
Definition at line 10 of file HepMCValidationHelper.h.
References testProducerWithPsetDescEmpty_cfi::a2.
bool HepMCValidationHelper::isChargedLepton | ( | const HepMC::GenParticle * | part | ) |
Definition at line 47 of file HepMCValidationHelper.cc.
References funct::abs(), HiggsValidation_cfi::pdg_id, and mps_update::status.
Referenced by removeIsolatedLeptons().
bool HepMCValidationHelper::isNeutrino | ( | const HepMC::GenParticle * | part | ) |
Definition at line 57 of file HepMCValidationHelper.cc.
References funct::abs(), HiggsValidation_cfi::pdg_id, and mps_update::status.
Referenced by allVisibleParticles(), and removeIsolatedLeptons().
bool HepMCValidationHelper::isTau | ( | const HepMC::GenParticle * | part | ) |
Definition at line 64 of file HepMCValidationHelper.cc.
References funct::abs().
Referenced by removeIsolatedLeptons().
void HepMCValidationHelper::removeIsolatedLeptons | ( | const HepMC::GenEvent * | all, |
double | deltaR, | ||
double | sumPt, | ||
std::vector< const HepMC::GenParticle *> & | pruned | ||
) |
Definition at line 107 of file HepMCValidationHelper.cc.
References python.cmstools::all(), allStatus1(), allStatus2(), gather_cfg::cout, PbPb_ZMuSkimMuonDPG_cff::deltaR, Exception, findDescendents(), findFSRPhotons(), mps_fire::i, isChargedLepton(), isNeutrino(), isTau(), dqmiolumiharvest::j, HLT_2022v11_cff::leptons, HiggsValidation_cfi::pdg_id, submitPVValidationJobs::t, Tau3MuMonitor_cff::taus, and x.
Referenced by MBUEandQCDValidation::analyze().
|
inline |
Definition at line 25 of file HepMCValidationHelper.h.
|
inline |
Definition at line 39 of file HepMCValidationHelper.h.
|
inline |
Definition at line 15 of file HepMCValidationHelper.h.
Referenced by WValidation::analyze(), and DrellYanValidation::analyze().
Definition at line 20 of file HepMCValidationHelper.h.
|
inline |