test
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  friend class MVAJetPuId;
26 
29 
32 
35 
36  DECLARE_VARIABLE(dZ ,float);
38 
40  void RMS(const float val) { dR2Mean(val); }
41  const float & RMS() const { return dR2Mean(); }
42 
44 
47 
55 
60 
67 
70 };
71 
72 // ----------------------------------------------------------------------------------------------------
74 public:
75  friend class PileupJetIdAlgo;
76  friend class MVAJetPuId;
77 
80 
81  PileupJetIdentifier & operator= (const StoredPileupJetIdentifier & lhs) { ((StoredPileupJetIdentifier &)(*this)) = lhs; return *this;}
82 
83  enum Id {
84  kTight = 0,
85  kMedium = 1,
86  kLoose = 2
87  };
88 
89  static bool passJetId(int flag, Id level) { return ( flag & (1 << level) ) != 0 ; }
90 
92  bool passJetId (Id level) { return passJetId(idFlag_,level); }
93 
95 
98 
103 
120 
126 
135 
140 
145 
150 
155 
159 
160  //DECLARE_VARIABLE(majW ,float);
161  //DECLARE_VARIABLE(minW ,float);
162 
170 
178 
186 
187 };
188 
189 #undef DECLARE_VARIABLE
190 
191 #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 & majW() 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 & pull() 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 & 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 & 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 & minW() 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