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) |
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 72 of file HepMCValidationHelper.cc.
Referenced by allVisibleParticles(), MBUEandQCDValidation::analyze(), findFSRPhotons(), removeIsolatedLeptons(), and sortByPseudoRapidity().
void HepMCValidationHelper::allStatus2 | ( | const HepMC::GenEvent * | all, |
std::vector< const HepMC::GenParticle * > & | status2 | ||
) |
Definition at line 78 of file HepMCValidationHelper.cc.
Referenced by removeIsolatedLeptons(), and sortByPseudoRapidity().
void HepMCValidationHelper::allStatus3 | ( | const HepMC::GenEvent * | all, |
std::vector< const HepMC::GenParticle * > & | status3 | ||
) |
Definition at line 84 of file HepMCValidationHelper.cc.
Referenced by sortByPseudoRapidity().
void HepMCValidationHelper::allVisibleParticles | ( | const HepMC::GenEvent * | all, |
std::vector< const HepMC::GenParticle * > & | visible | ||
) |
Definition at line 248 of file HepMCValidationHelper.cc.
References allStatus1(), mps_fire::i, and isNeutrino().
Referenced by genMet(), and sortByPseudoRapidity().
void HepMCValidationHelper::findDescendents | ( | const HepMC::GenParticle * | a, |
std::vector< const HepMC::GenParticle * > & | descendents | ||
) |
Definition at line 90 of file HepMCValidationHelper.cc.
Referenced by removeIsolatedLeptons(), and sortByPseudoRapidity().
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 deltaR(), mps_fire::i, and mps_update::status.
Referenced by WValidation::analyze(), DrellYanValidation::analyze(), findFSRPhotons(), removeIsolatedLeptons(), and sortByPseudoRapidity().
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 11 of file HepMCValidationHelper.cc.
References allStatus1(), and findFSRPhotons().
TLorentzVector HepMCValidationHelper::genMet | ( | const HepMC::GenEvent * | all, |
double | etamin = -9999. , |
||
double | etamax = 9999. |
||
) |
Definition at line 258 of file HepMCValidationHelper.cc.
References allVisibleParticles(), mps_fire::i, RazorAnalyzer::met, lumiQTWidget::t, and x().
Referenced by GenSpecificAlgo::addInfo(), WValidation::analyze(), HLTJetMETValidation::analyze(), pat::GenMETExtractor::produce(), HLTTauMCProducer::produce(), l1t::GenToInputProducer::produce(), and sortByPseudoRapidity().
Definition at line 9 of file HepMCValidationHelper.h.
bool HepMCValidationHelper::isChargedLepton | ( | const HepMC::GenParticle * | part | ) |
Definition at line 46 of file HepMCValidationHelper.cc.
References funct::abs(), HiggsValidation_cfi::pdg_id, and mps_update::status.
Referenced by removeIsolatedLeptons(), and sortByPseudoRapidity().
bool HepMCValidationHelper::isNeutrino | ( | const HepMC::GenParticle * | part | ) |
Definition at line 54 of file HepMCValidationHelper.cc.
References funct::abs(), HiggsValidation_cfi::pdg_id, and mps_update::status.
Referenced by allVisibleParticles(), removeIsolatedLeptons(), and sortByPseudoRapidity().
bool HepMCValidationHelper::isTau | ( | const HepMC::GenParticle * | part | ) |
Definition at line 61 of file HepMCValidationHelper.cc.
References funct::abs().
Referenced by removeIsolatedLeptons(), and sortByPseudoRapidity().
void HepMCValidationHelper::removeIsolatedLeptons | ( | const HepMC::GenEvent * | all, |
double | deltaR, | ||
double | sumPt, | ||
std::vector< const HepMC::GenParticle * > & | pruned | ||
) |
Definition at line 100 of file HepMCValidationHelper.cc.
References allStatus1(), allStatus2(), gather_cfg::cout, deltaR(), findDescendents(), findFSRPhotons(), mps_fire::i, isChargedLepton(), isNeutrino(), isTau(), AK4GenJetFlavourInfos_cfi::leptons, HiggsValidation_cfi::pdg_id, lumiQTWidget::t, jetCleaner_cfi::taus, and x().
Referenced by MBUEandQCDValidation::analyze(), and sortByPseudoRapidity().
|
inline |
Definition at line 15 of file HepMCValidationHelper.h.
|
inline |
Definition at line 27 of file HepMCValidationHelper.h.
References a, Vispa.Plugins.EdmBrowser.EdmDataAccessor::all(), allStatus1(), allStatus2(), allStatus3(), allVisibleParticles(), deltaR(), findDescendents(), findFSRPhotons(), genMet(), GenParticle::GenParticle, isChargedLepton(), isNeutrino(), isTau(), AK4GenJetFlavourInfos_cfi::leptons, jetCleaner_cfi::photons, removeIsolatedLeptons(), and TtFullHadEvtBuilder_cfi::sumPt.
|
inline |
Definition at line 12 of file HepMCValidationHelper.h.
Referenced by WValidation::analyze(), and DrellYanValidation::analyze().
|
inline |