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
double pRecJetMax
Definition: AcceptJet.h:68
double etaMax
Definition: AcceptJet.h:53
void setPtRecJetMax(double d)
Definition: AcceptJet.h:37
double ptRecJetMin
Definition: AcceptJet.h:64
double ratioMin
Definition: AcceptJet.h:70
double ptRecJetMax
Definition: AcceptJet.h:65
bool doJetID
Definition: AcceptJet.h:74
double etaMin
Definition: AcceptJet.h:52
Base class for all types of Jets.
Definition: Jet.h:20
double pRecJetMin
Definition: AcceptJet.h:67
void setEtaMax(double d)
Definition: AcceptJet.h:33
double ratioMax
Definition: AcceptJet.h:71
void setEtaMin(double d)
Set cut parameters.
Definition: AcceptJet.h:32
void setRatioMax(double d)
Definition: AcceptJet.h:41
void setPRecJetMin(double d)
Definition: AcceptJet.h:38
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(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
d
Definition: ztail.py:151
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
double b
Definition: hdecay.h:120
void setPtRecJetMin(double d)
Definition: AcceptJet.h:36
void setDoJetID(bool b)
Definition: AcceptJet.h:42
void setRatioMin(double d)
Definition: AcceptJet.h:40
void setPRecJetMax(double d)
Definition: AcceptJet.h:39