#include <AcceptJet.h>
Public Member Functions | |
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) |
Protected Member Functions | |
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. More... | |
Protected Attributes | |
bool | doJetID |
double | etaMax |
double | etaMin |
double | pRecJetMax |
double | pRecJetMin |
double | ptRecJetMax |
double | ptRecJetMin |
double | ratioMax |
double | ratioMin |
Decide if jet and associated parton satisfy desired kinematic cuts.
Definition at line 14 of file AcceptJet.h.
AcceptJet::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_ | ||
) |
Definition at line 10 of file AcceptJet.cc.
bool AcceptJet::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.
Definition at line 29 of file AcceptJet.cc.
References reco::PFJet::chargedEmEnergy(), reco::PFJet::chargedHadronEnergy(), reco::btau::chargedHadronEnergyFraction, reco::PFJet::chargedMultiplicity(), doJetID, reco::LeafCandidate::energy(), reco::LeafCandidate::eta(), etaMax, etaMin, reco::PFJet::getPFConstituents(), edm::HandleBase::isValid(), patTestJEC_cfi::jec, metsig::jet, LogDebug, reco::PFJet::neutralEmEnergy(), reco::PFJet::neutralHadronEnergy(), reco::btau::neutralHadronEnergyFraction, reco::LeafCandidate::p(), pRecJetMax, pRecJetMin, reco::LeafCandidate::pt(), ptRecJetMax, ptRecJetMin, ratio(), and ratioMax.
|
protected |
Finds the ratio of the momentum of any leptons in the jet to jet energy.
Definition at line 80 of file AcceptJet.cc.
References reco::deltaR(), alignCSCRings::e, reco::LeafCandidate::eta(), isotrackApplyRegressor::k, and reco::LeafCandidate::phi().
Referenced by operator()().
|
inline |
Definition at line 42 of file AcceptJet.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
Definition at line 74 of file AcceptJet.h.
Referenced by operator()(), and setDoJetID().
|
protected |
Definition at line 53 of file AcceptJet.h.
Referenced by operator()(), and setEtaMax().
|
protected |
Definition at line 52 of file AcceptJet.h.
Referenced by operator()(), and setEtaMin().
|
protected |
Definition at line 68 of file AcceptJet.h.
Referenced by operator()(), and setPRecJetMax().
|
protected |
Definition at line 67 of file AcceptJet.h.
Referenced by operator()(), and setPRecJetMin().
|
protected |
Definition at line 65 of file AcceptJet.h.
Referenced by operator()(), and setPtRecJetMax().
|
protected |
Definition at line 64 of file AcceptJet.h.
Referenced by operator()(), and setPtRecJetMin().
|
protected |
Definition at line 71 of file AcceptJet.h.
Referenced by operator()(), and setRatioMax().
|
protected |
Definition at line 70 of file AcceptJet.h.
Referenced by setRatioMin().