test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
AcceptJet.h
Go to the documentation of this file.
1 #ifndef AcceptJet_H
2 #define AcceptJet_H
3 
7 
14 class AcceptJet {
15 
16  public:
17  AcceptJet(const double& etaMin_, const double& etaMax_, const double& ptMin_, const double& ptMax_,
18  const double& pMin_, const double& pMax_, const double& ratioMin_, const double& ratioMax_,
19  const bool& doJetID_);
21  bool operator() (const reco::Jet & jet, const int & jetFlavour, const edm::Handle<reco::SoftLeptonTagInfoCollection> & infos, const double jec) const;
22 
24  void setEtaMin ( double d ) { etaMin = d ; }
25  void setEtaMax ( double d ) { etaMax = d ; }
26 // void setPPartonMin ( double d ) { pPartonMin = d ; }
27 // void setPPartonMax ( double d ) { pPartonMax = d ; }
28  void setPtRecJetMin ( double d ) { ptRecJetMin = d ; }
29  void setPtRecJetMax ( double d ) { ptRecJetMax = d ; }
30  void setPRecJetMin ( double d ) { pRecJetMin = d ; }
31  void setPRecJetMax ( double d ) { pRecJetMax = d ; }
32  void setRatioMin ( double d ) { ratioMin = d ; }
33  void setRatioMax ( double d ) { ratioMax = d ; }
34  void setDoJetID ( bool b ) { doJetID = b ; }
35 
36 // void setPtPartonMin ( double d ) { ptPartonMin = d ; }
37 // void setPtPartonMax ( double d ) { ptPartonMax = d ; }
38 
39  protected:
40 
42  double ratio(const reco::Jet & jet, const edm::Handle<reco::SoftLeptonTagInfoCollection> & infos) const;
43 
44  // eta range
45  double etaMin ; // these are meant as |eta| !!
46  double etaMax ;
47 
48  // parton p
49 // double pPartonMin ;
50 // double pPartonMax ;
51 
52  // parton pt
53 // double ptPartonMin ;
54 // double ptPartonMax ;
55 
56  // rec. jet
57  double ptRecJetMin ;
58  double ptRecJetMax ;
59  //
60  double pRecJetMin ;
61  double pRecJetMax ;
62 
63  double ratioMin ;
64  double ratioMax ;
65 
66  //Apply loose Jet ID in case of PF jets
67  bool doJetID;
68 } ;
69 
70 #endif
double pRecJetMax
Definition: AcceptJet.h:61
double etaMax
Definition: AcceptJet.h:46
void setPtRecJetMax(double d)
Definition: AcceptJet.h:29
double ptRecJetMin
Definition: AcceptJet.h:57
double ratioMin
Definition: AcceptJet.h:63
double ptRecJetMax
Definition: AcceptJet.h:58
bool doJetID
Definition: AcceptJet.h:67
double etaMin
Definition: AcceptJet.h:45
Base class for all types of Jets.
Definition: Jet.h:20
double pRecJetMin
Definition: AcceptJet.h:60
void setEtaMax(double d)
Definition: AcceptJet.h:25
double ratioMax
Definition: AcceptJet.h:64
void setEtaMin(double d)
Set cut parameters.
Definition: AcceptJet.h:24
void setRatioMax(double d)
Definition: AcceptJet.h:33
void setPRecJetMin(double d)
Definition: AcceptJet.h:30
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
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:71
double b
Definition: hdecay.h:120
void setPtRecJetMin(double d)
Definition: AcceptJet.h:28
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:16
void setDoJetID(bool b)
Definition: AcceptJet.h:34
void setRatioMin(double d)
Definition: AcceptJet.h:32
void setPRecJetMax(double d)
Definition: AcceptJet.h:31