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_);
20  bool operator() (const reco::Jet & jet, const int & jetFlavour, const edm::Handle<reco::SoftLeptonTagInfoCollection> & infos) const;
21 
23  void setEtaMin ( double d ) { etaMin = d ; }
24  void setEtaMax ( double d ) { etaMax = d ; }
25 // void setPPartonMin ( double d ) { pPartonMin = d ; }
26 // void setPPartonMax ( double d ) { pPartonMax = d ; }
27  void setPtRecJetMin ( double d ) { ptRecJetMin = d ; }
28  void setPtRecJetMax ( double d ) { ptRecJetMax = d ; }
29  void setPRecJetMin ( double d ) { pRecJetMin = d ; }
30  void setPRecJetMax ( double d ) { pRecJetMax = d ; }
31  void setRatioMin ( double d ) { ratioMin = d ; }
32  void setRatioMax ( double d ) { ratioMax = d ; }
33 
34 // void setPtPartonMin ( double d ) { ptPartonMin = d ; }
35 // void setPtPartonMax ( double d ) { ptPartonMax = d ; }
36 
37  protected:
38 
40  double ratio(const reco::Jet & jet, const edm::Handle<reco::SoftLeptonTagInfoCollection> & infos) const;
41 
42  // eta range
43  double etaMin ; // these are meant as |eta| !!
44  double etaMax ;
45 
46  // parton p
47 // double pPartonMin ;
48 // double pPartonMax ;
49 
50  // parton pt
51 // double ptPartonMin ;
52 // double ptPartonMax ;
53 
54  // rec. jet
55  double ptRecJetMin ;
56  double ptRecJetMax ;
57  //
58  double pRecJetMin ;
59  double pRecJetMax ;
60 
61  double ratioMin ;
62  double ratioMax ;
63 
64 } ;
65 
66 #endif
double pRecJetMax
Definition: AcceptJet.h:59
double etaMax
Definition: AcceptJet.h:44
void setPtRecJetMax(double d)
Definition: AcceptJet.h:28
double ptRecJetMin
Definition: AcceptJet.h:55
double ratioMin
Definition: AcceptJet.h:61
double ptRecJetMax
Definition: AcceptJet.h:56
double etaMin
Definition: AcceptJet.h:43
Base class for all types of Jets.
Definition: Jet.h:21
double pRecJetMin
Definition: AcceptJet.h:58
void setEtaMax(double d)
Definition: AcceptJet.h:24
double ratioMax
Definition: AcceptJet.h:62
void setEtaMin(double d)
Set cut parameters.
Definition: AcceptJet.h:23
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_)
Definition: AcceptJet.cc:9
void setRatioMax(double d)
Definition: AcceptJet.h:32
void setPRecJetMin(double d)
Definition: AcceptJet.h:29
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:49
void setPtRecJetMin(double d)
Definition: AcceptJet.h:27
void setRatioMin(double d)
Definition: AcceptJet.h:31
void setPRecJetMax(double d)
Definition: AcceptJet.h:30
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.
Definition: AcceptJet.cc:15