|
| AcceptJet (const double &etaMin_, const double &etaMax_, const double &ptMin_, const double &ptMax_, const double &pMin_, const double &pMax_, const double &ratioMin_, const double &ratioMax_, const bool &doJetID_) |
|
bool | operator() (const reco::Jet &jet, const int &jetFlavour, const edm::Handle< reco::SoftLeptonTagInfoCollection > &infos, const double jec) const |
| Returns true if jet and associated parton satisfy kinematic cuts. More...
|
|
void | setDoJetID (bool b) |
|
void | setEtaMax (double d) |
|
void | setEtaMin (double d) |
| Set cut parameters. More...
|
|
void | setPRecJetMax (double d) |
|
void | setPRecJetMin (double d) |
|
void | setPtRecJetMax (double d) |
|
void | setPtRecJetMin (double d) |
|
void | setRatioMax (double d) |
|
void | setRatioMin (double d) |
|
Decide if jet and associated parton satisfy desired kinematic cuts.
Definition at line 14 of file AcceptJet.h.
Returns true if jet and associated parton satisfy kinematic cuts.
Definition at line 29 of file AcceptJet.cc.
References reco::PFJet::chargedEmEnergy(), reco::PFJet::chargedHadronEnergy(), reco::btau::chargedHadronEnergyFraction, reco::PFJet::chargedMultiplicity(), doJetID, etaMax, etaMin, reco::PFJet::getPFConstituents(), submitPVValidationJobs::infos, jetMETDQMOfflineSource_cff::jec, metsig::jet, LogDebug, custom_jme_cff::nConstituents, reco::PFJet::neutralEmEnergy(), reco::PFJet::neutralHadronEnergy(), reco::btau::neutralHadronEnergyFraction, pRecJetMax, pRecJetMin, ptRecJetMax, ptRecJetMin, ratio(), and ratioMax.
51 if (!
infos.isValid()) {
52 LogDebug(
"infos not valid") <<
"A valid SoftLeptonTagInfoCollection was not found!" 53 <<
" Skipping ratio check.";
56 if (pToEratio / jec < ratioMin || pToEratio / jec >
ratioMax)
float neutralHadronEnergy() const
neutralHadronEnergy
int chargedMultiplicity() const
chargedMultiplicity
float chargedEmEnergy() const
chargedEmEnergy
float neutralEmEnergy() const
neutralEmEnergy
Jets made from PFObjects.
virtual std::vector< reco::PFCandidatePtr > getPFConstituents() const
get all constituents
double ratio(const reco::Jet &jet, const edm::Handle< reco::SoftLeptonTagInfoCollection > &infos) const
Finds the ratio of the momentum of any leptons in the jet to jet energy.
float chargedHadronEnergy() const
chargedHadronEnergy