9 AcceptJet::AcceptJet(
const double& etaMin_,
const double& etaMax_,
const double& ptMin_,
const double& ptMax_,
10 const double& pMin_,
const double& pMax_,
const double& ratioMin_,
const double& ratioMax_) :
11 etaMin(etaMin_),
etaMax(etaMax_), ptRecJetMin(ptMin_), ptRecJetMax(ptMax_), pRecJetMin(pMin_),
12 pRecJetMax(pMax_), ratioMin(ratioMin_), ratioMax(ratioMax_) {}
37 edm::LogWarning(
"infos not valid") <<
"A valid SoftLeptonTagInfoCollection was not found!"
38 <<
" Skipping ratio check.";
41 double pToEratio =
ratio( jet, infos );
51 double jetRatio = 0.0;
52 reco::SoftLeptonTagInfoCollection::const_iterator infoiter = infos->begin();
53 for( ; infoiter != infos->end(); ++infoiter)
55 if(
reco::deltaR(jet.
eta(), jet.
phi(), infoiter->jet()->eta(), infoiter->jet()->phi()) > 1
e-4 )
58 if( infoiter->leptons() == 0 )
61 for(
unsigned int k = 0;
k != infoiter->leptons(); ++
k )
63 double tempRatio = infoiter->properties(
k).ratio;
64 if( tempRatio > jetRatio )
virtual double p() const GCC11_FINAL
magnitude of momentum vector
Base class for all types of Jets.
virtual float phi() const GCC11_FINAL
momentum azimuthal angle
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_)
auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
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 float pt() const GCC11_FINAL
transverse momentum
bool operator()(const reco::Jet &jet, const int &jetFlavour, const edm::Handle< reco::SoftLeptonTagInfoCollection > &infos) const
Returns true if jet and associated parton satisfy kinematic cuts.