|
| 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 16 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(), ratioMax, and ratioMin.
38 LogDebug(
"infos not valid") <<
"A valid SoftLeptonTagInfoCollection was not found!"
39 <<
" Skipping ratio check.";
42 double pToEratio =
ratio( jet, infos );
56 if(!(neutralHadronEnergyFraction < 0.99
57 && neutralEmEnergyFraction < 0.99
59 && chargedHadronEnergyFraction > 0.0
60 && chargedMultiplicity > 0.0
61 && chargedEmEnergyFraction < 0.99))
virtual double p() const
magnitude of momentum vector
float chargedEmEnergy() const
chargedEmEnergy
int chargedMultiplicity() const
chargedMultiplicity
Jets made from PFObjects.
virtual double eta() const
momentum pseudorapidity
virtual double pt() const
transverse momentum
float neutralEmEnergy() const
neutralEmEnergy
virtual double energy() const
energy
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.
virtual std::vector< reco::PFCandidatePtr > getPFConstituents() const
get all constituents
float neutralHadronEnergy() const
neutralHadronEnergy
float chargedHadronEnergy() const
chargedHadronEnergy