CMS 3D CMS Logo

AcceptJet.h
Go to the documentation of this file.
1 #ifndef AcceptJet_H
2 #define AcceptJet_H
3 
7 
14 class AcceptJet {
15 public:
16  AcceptJet(const double& etaMin_,
17  const double& etaMax_,
18  const double& ptMin_,
19  const double& ptMax_,
20  const double& pMin_,
21  const double& pMax_,
22  const double& ratioMin_,
23  const double& ratioMax_,
24  const bool& doJetID_);
26  bool operator()(const reco::Jet& jet,
27  const int& jetFlavour,
29  const double jec) const;
30 
32  void setEtaMin(double d) { etaMin = d; }
33  void setEtaMax(double d) { etaMax = d; }
34  // void setPPartonMin ( double d ) { pPartonMin = d ; }
35  // void setPPartonMax ( double d ) { pPartonMax = d ; }
36  void setPtRecJetMin(double d) { ptRecJetMin = d; }
37  void setPtRecJetMax(double d) { ptRecJetMax = d; }
38  void setPRecJetMin(double d) { pRecJetMin = d; }
39  void setPRecJetMax(double d) { pRecJetMax = d; }
40  void setRatioMin(double d) { ratioMin = d; }
41  void setRatioMax(double d) { ratioMax = d; }
42  void setDoJetID(bool b) { doJetID = b; }
43 
44  // void setPtPartonMin ( double d ) { ptPartonMin = d ; }
45  // void setPtPartonMax ( double d ) { ptPartonMax = d ; }
46 
47 protected:
50 
51  // eta range
52  double etaMin; // these are meant as |eta| !!
53  double etaMax;
54 
55  // parton p
56  // double pPartonMin ;
57  // double pPartonMax ;
58 
59  // parton pt
60  // double ptPartonMin ;
61  // double ptPartonMax ;
62 
63  // rec. jet
64  double ptRecJetMin;
65  double ptRecJetMax;
66  //
67  double pRecJetMin;
68  double pRecJetMax;
69 
70  double ratioMin;
71  double ratioMax;
72 
73  //Apply loose Jet ID in case of PF jets
74  bool doJetID;
75 };
76 
77 #endif
Handle.h
reco::Jet
Base class for all types of Jets.
Definition: Jet.h:20
AcceptJet::ptRecJetMax
double ptRecJetMax
Definition: AcceptJet.h:65
SoftLeptonTagInfo.h
AcceptJet::operator()
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.
Definition: AcceptJet.cc:29
AcceptJet::ptRecJetMin
double ptRecJetMin
Definition: AcceptJet.h:64
AcceptJet::setPtRecJetMax
void setPtRecJetMax(double d)
Definition: AcceptJet.h:37
AcceptJet::setPRecJetMax
void setPRecJetMax(double d)
Definition: AcceptJet.h:39
AcceptJet::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: AcceptJet.cc:10
Jet.h
edm::Handle
Definition: AssociativeIterator.h:50
AcceptJet::setDoJetID
void setDoJetID(bool b)
Definition: AcceptJet.h:42
AcceptJet::pRecJetMin
double pRecJetMin
Definition: AcceptJet.h:67
AcceptJet::setRatioMin
void setRatioMin(double d)
Definition: AcceptJet.h:40
AcceptJet::etaMax
double etaMax
Definition: AcceptJet.h:53
b
double b
Definition: hdecay.h:118
AcceptJet::setEtaMax
void setEtaMax(double d)
Definition: AcceptJet.h:33
AcceptJet::ratioMax
double ratioMax
Definition: AcceptJet.h:71
AcceptJet::pRecJetMax
double pRecJetMax
Definition: AcceptJet.h:68
AcceptJet::setEtaMin
void setEtaMin(double d)
Set cut parameters.
Definition: AcceptJet.h:32
AcceptJet::setRatioMax
void setRatioMax(double d)
Definition: AcceptJet.h:41
AcceptJet::ratio
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.
Definition: AcceptJet.cc:80
AcceptJet::doJetID
bool doJetID
Definition: AcceptJet.h:74
AcceptJet::ratioMin
double ratioMin
Definition: AcceptJet.h:70
AcceptJet::setPRecJetMin
void setPRecJetMin(double d)
Definition: AcceptJet.h:38
metsig::jet
Definition: SignAlgoResolutions.h:47
AcceptJet::etaMin
double etaMin
Definition: AcceptJet.h:52
jetMETDQMOfflineSource_cff.jec
jec
Definition: jetMETDQMOfflineSource_cff.py:27
ztail.d
d
Definition: ztail.py:151
AcceptJet::setPtRecJetMin
void setPtRecJetMin(double d)
Definition: AcceptJet.h:36
submitPVValidationJobs.infos
dictionary infos
Definition: submitPVValidationJobs.py:221
AcceptJet
Definition: AcceptJet.h:14