|
| 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.
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 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, reco::PFJet::neutralEmEnergy(), reco::PFJet::neutralHadronEnergy(), reco::btau::neutralHadronEnergyFraction, reco::LeafCandidate::p(), pRecJetMax, pRecJetMin, reco::LeafCandidate::pt(), ptRecJetMax, ptRecJetMin, ratio(), ratioMax, and ratioMin.
38 edm::LogWarning(
"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 energy() const GCC11_FINAL
energy
float chargedEmEnergy() const
chargedEmEnergy
virtual double p() const GCC11_FINAL
magnitude of momentum vector
int chargedMultiplicity() const
chargedMultiplicity
Jets made from PFObjects.
float neutralEmEnergy() const
neutralEmEnergy
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 float eta() const GCC11_FINAL
momentum pseudorapidity
virtual std::vector< reco::PFCandidatePtr > getPFConstituents() const
get all constituents
float neutralHadronEnergy() const
neutralHadronEnergy
virtual float pt() const GCC11_FINAL
transverse momentum
float chargedHadronEnergy() const
chargedHadronEnergy