CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PileupJetIdentifier.h
Go to the documentation of this file.
1 //--------------------------------------------------------------------------------------------------
2 //
3 // PileupJetIdentifier
4 //
5 // Author: P. Musella, P. Harris
6 //--------------------------------------------------------------------------------------------------
7 
8 #include <string>
9 #include <map>
10 
11 #ifndef RecoJets_JetProducers_interface_PileupJetIdentifier_h
12 #define RecoJets_JetProducers_interface_PileupJetIdentifier_h
13 
14 #define DECLARE_VARIABLE(NAME,TYPE) \
15  private: \
16  TYPE NAME ## _; \
17  public: \
18  const TYPE & NAME() const { return NAME ## _; } \
19  void NAME(const TYPE val) { NAME ## _ = val; }
20 
21 // ----------------------------------------------------------------------------------------------------
23 public:
24  friend class PileupJetIdAlgo;
25 
28 
31 
34 
35  DECLARE_VARIABLE(dZ ,float);
37 
39  void RMS(const float val) { dR2Mean(val); }
40  const float & RMS() const { return dR2Mean(); }
41 
43 
51 
56 
63 
65 };
66 
67 // ----------------------------------------------------------------------------------------------------
69 public:
70  friend class PileupJetIdAlgo;
71 
74 
75  PileupJetIdentifier & operator= (const StoredPileupJetIdentifier & lhs) { ((StoredPileupJetIdentifier &)(*this)) = lhs; return *this;}
76 
77  enum Id {
78  kTight = 0,
79  kMedium = 1,
80  kLoose = 2
81  };
82 
83  static bool passJetId(int flag, Id level) { return ( flag & (1 << level) ) != 0 ; }
84 
86  bool passJetId (Id level) { return passJetId(idFlag_,level); }
87 
89 
92 
97 
98  DECLARE_VARIABLE(d0 ,float);
114 
120 
129 
134 
139 
144 
149 
153 
156 
164 
172 
180 
181 };
182 
183 #undef DECLARE_VARIABLE
184 
185 #endif
const float & etaW() const
const float & ptRMS() const
const float & chgEMfrac() const
const float & emFrac05() const
const float & sumPt() const
void RMS(const float val)
a.k.a RMS
const float & emFrac06() const
const float & phiW() const
const float & frac05() const
const float & emFrac03() const
const float & neutFrac03() const
const int & idFlag() const
const float & neuHadrfrac() const
const float & dRMeanEm() const
const float & ptMean() const
const float & neutFrac01() const
const float & betaStarClassic() const
const float & mva() const
const float & secondChFrac() const
const float & neutFrac02() const
const float & neutFrac05() const
const float & thirdEmFrac() const
const float & chFrac04() const
const float & leadChFrac() const
const float & leadPhi() const
const float & frac03() const
const float & betaClassic() const
const float & emFrac04() const
const float & jetPt() const
const float & ptDNe() const
const float & chFrac03() const
const float & secondEta() const
const float & neuEMfrac() const
const float & secondEmFrac() const
static bool passJetId(int flag, Id level)
const float & chFrac07() const
const float & neutFrac06() const
const float & dRLead2nd() const
const float & sumChPt() const
const float & secondPhi() const
bool passJetId(Id level)
PileupJetIdentifier & operator=(const StoredPileupJetIdentifier &lhs)
const float & chFrac02() const
const float & pt2A() const
const float & chFrac01() const
const float & chgHadrfrac() const
const float & ptD() const
const float & frac07() const
const float & secondNeutFrac() const
const float & beta() const
const float & leadPt() const
const float & leadNeutFrac() const
const float & fourthEmFrac() const
const float & dRMeanNeut() const
const float & leadNeutEta() const
const float & leadNeutPt() const
const float & secondPt() const
const float & ptDCh() const
const float & dRMeanCh() const
const float & jetPhi() const
const float & minW() const
const float & nNeutrals() const
const float & chFrac05() const
const float & dZ() const
const float & nvtx() const
const float & leadChPt() const
const float & frac04() const
const float & fourthChFrac() const
const float & frac01() const
const float & thirdChFrac() const
const float & majW() const
const float & frac06() const
const float & leadChPhi() const
const float & jetW() const
const float & chFrac06() const
const float & sumNePt() const
const float & leadEta() const
const float & rho() const
const float & dR2Mean() const
const float & thirdFrac() const
const float & jetRchg() const
const float & leadNeutPhi() const
const float & fourthNeutFrac() const
const float & emFrac01() const
const float & leadEmFrac() const
const float & leadEmPhi() const
const float & leadEmEta() const
const float & neutFrac04() const
const float & emFrac02() const
const float & leadEmPt() const
const float & nParticles() const
const float & RMS() const
const float & fourthFrac() const
const float & secondFrac() const
#define DECLARE_VARIABLE(NAME, TYPE)
const float & betaStar() const
tuple level
Definition: testEve_cfg.py:34
const float & dRMean() const
const float & d0() const
const float & dRLeadCent() const
const float & nTrueInt() const
const float & thirdNeutFrac() const
const float & jetR() const
const float & nCharged() const
const float & frac02() const
const float & neutFrac07() const
const float & jetM() const
const float & emFrac07() const
const float & dRMatch() const
const float & leadChEta() const
const float & jetEta() const
const float & leadFrac() const