CMS 3D CMS Logo

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##_ = 0; \
17  \
18 public: \
19  const TYPE &NAME() const { return NAME##_; } \
20  void NAME(const TYPE val) { NAME##_ = val; }
21 
22 // ----------------------------------------------------------------------------------------------------
24 public:
25  friend class PileupJetIdAlgo;
26  friend class MVAJetPuId;
27 
30 
33 
36 
39 
41  void RMS(const float val) { dR2Mean(val); }
42  const float &RMS() const { return dR2Mean(); }
43 
45 
48 
56 
61 
68 
71 };
72 
73 // ----------------------------------------------------------------------------------------------------
75 public:
76  friend class PileupJetIdAlgo;
77  friend class MVAJetPuId;
78 
81 
83  ((StoredPileupJetIdentifier &)(*this)) = lhs;
84  return *this;
85  }
86 
87  enum Id { kTight = 0, kMedium = 1, kLoose = 2 };
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 #undef DECLARE_VARIABLE
189 
190 #endif
PileupJetIdentifier::phiW
const float & phiW() const
Definition: PileupJetIdentifier.h:158
PileupJetIdentifier::passJetId
bool passJetId(Id level)
Definition: PileupJetIdentifier.h:92
personalPlayback.level
level
Definition: personalPlayback.py:22
PileupJetIdentifier::leadNeutEta
const float & leadNeutEta() const
Definition: PileupJetIdentifier.h:112
PileupJetIdentifier::~PileupJetIdentifier
~PileupJetIdentifier()
Definition: PileupJetIdentifier.cc:15
PileupJetIdentifier::d0
const float & d0() const
Definition: PileupJetIdentifier.h:104
PileupJetIdentifier::dRLead2nd
const float & dRLead2nd() const
Definition: PileupJetIdentifier.h:122
StoredPileupJetIdentifier::RMS
const float & RMS() const
Definition: PileupJetIdentifier.h:42
PileupJetIdentifier::passJetId
static bool passJetId(int flag, Id level)
Definition: PileupJetIdentifier.h:89
PileupJetIdentifier::leadNeutPhi
const float & leadNeutPhi() const
Definition: PileupJetIdentifier.h:113
PileupJetIdentifier::fourthEmFrac
const float & fourthEmFrac() const
Definition: PileupJetIdentifier.h:154
PileupJetIdentifier::jetW
const float & jetW() const
Definition: PileupJetIdentifier.h:156
PileupJetIdentifier::idFlag_
int idFlag_
Definition: PileupJetIdentifier.h:91
PileupJetIdentifier::leadPhi
const float & leadPhi() const
Definition: PileupJetIdentifier.h:107
PileupJetIdentifier::chgHadrfrac
const float & chgHadrfrac() const
Definition: PileupJetIdentifier.h:101
PileupJetIdentifier::kTight
Definition: PileupJetIdentifier.h:87
StoredPileupJetIdentifier::pull
const float & pull() const
Definition: PileupJetIdentifier.h:70
PileupJetIdentifier::mva
const float & mva() const
Definition: PileupJetIdentifier.h:94
PileupJetIdentifier::thirdChFrac
const float & thirdChFrac() const
Definition: PileupJetIdentifier.h:143
PileupJetIdentifier::thirdEmFrac
const float & thirdEmFrac() const
Definition: PileupJetIdentifier.h:153
PileupJetIdentifier::leadEmFrac
const float & leadEmFrac() const
Definition: PileupJetIdentifier.h:151
PileupJetIdentifier::thirdNeutFrac
const float & thirdNeutFrac() const
Definition: PileupJetIdentifier.h:148
PileupJetIdentifier::leadNeutPt
const float & leadNeutPt() const
Definition: PileupJetIdentifier.h:111
StoredPileupJetIdentifier::nParticles
const float & nParticles() const
Definition: PileupJetIdentifier.h:38
PileupJetIdentifier::dRLeadCent
const float & dRLeadCent() const
Definition: PileupJetIdentifier.h:121
PileupJetIdentifier::dRMeanNeut
const float & dRMeanNeut() const
Definition: PileupJetIdentifier.h:123
PileupJetIdentifier::leadChEta
const float & leadChEta() const
Definition: PileupJetIdentifier.h:118
PileupJetIdentifier::emFrac05
const float & emFrac05() const
Definition: PileupJetIdentifier.h:183
StoredPileupJetIdentifier::jetRchg
const float & jetRchg() const
Definition: PileupJetIdentifier.h:65
PileupJetIdentifier::thirdFrac
const float & thirdFrac() const
Definition: PileupJetIdentifier.h:138
PileupJetIdentifier::ptDNe
const float & ptDNe() const
Definition: PileupJetIdentifier.h:131
StoredPileupJetIdentifier::StoredPileupJetIdentifier
StoredPileupJetIdentifier()
Definition: PileupJetIdentifier.cc:6
StoredPileupJetIdentifier::ptD
const float & ptD() const
Definition: PileupJetIdentifier.h:62
PileupJetIdentifier::chFrac05
const float & chFrac05() const
Definition: PileupJetIdentifier.h:167
StoredPileupJetIdentifier::nvtx
const float & nvtx() const
Definition: PileupJetIdentifier.h:69
PileupJetIdentifier::neutFrac06
const float & neutFrac06() const
Definition: PileupJetIdentifier.h:176
StoredPileupJetIdentifier::~StoredPileupJetIdentifier
~StoredPileupJetIdentifier()
Definition: PileupJetIdentifier.cc:9
StoredPileupJetIdentifier::betaStar
const float & betaStar() const
Definition: PileupJetIdentifier.h:58
PileupJetIdentifier::secondFrac
const float & secondFrac() const
Definition: PileupJetIdentifier.h:137
PileupJetIdentifier::emFrac01
const float & emFrac01() const
Definition: PileupJetIdentifier.h:179
PileupJetIdentifier::secondNeutFrac
const float & secondNeutFrac() const
Definition: PileupJetIdentifier.h:147
PileupJetIdentifier::neutFrac01
const float & neutFrac01() const
Definition: PileupJetIdentifier.h:171
PileupJetIdentifier::chFrac06
const float & chFrac06() const
Definition: PileupJetIdentifier.h:168
PileupJetIdentifier::neutFrac07
const float & neutFrac07() const
Definition: PileupJetIdentifier.h:177
PileupJetIdentifier::sumNePt
const float & sumNePt() const
Definition: PileupJetIdentifier.h:134
PileupJetIdentifier::neutFrac02
const float & neutFrac02() const
Definition: PileupJetIdentifier.h:172
PileupJetIdentifier::secondPhi
const float & secondPhi() const
Definition: PileupJetIdentifier.h:110
StoredPileupJetIdentifier::minW
const float & minW() const
Definition: PileupJetIdentifier.h:47
StoredPileupJetIdentifier::dZ
const float & dZ() const
Definition: PileupJetIdentifier.h:37
PileupJetIdentifier::sumChPt
const float & sumChPt() const
Definition: PileupJetIdentifier.h:133
StoredPileupJetIdentifier::frac01
const float & frac01() const
Definition: PileupJetIdentifier.h:49
StoredPileupJetIdentifier::frac07
const float & frac07() const
Definition: PileupJetIdentifier.h:55
PileupJetIdentifier::fourthNeutFrac
const float & fourthNeutFrac() const
Definition: PileupJetIdentifier.h:149
PileupJetIdentifier::emFrac07
const float & emFrac07() const
Definition: PileupJetIdentifier.h:185
StoredPileupJetIdentifier::nCharged
const float & nCharged() const
Definition: PileupJetIdentifier.h:34
PileupJetIdentifier::leadEmPhi
const float & leadEmPhi() const
Definition: PileupJetIdentifier.h:116
StoredPileupJetIdentifier::nTrueInt
const float & nTrueInt() const
Definition: PileupJetIdentifier.h:67
PileupJetIdentifier::emFrac04
const float & emFrac04() const
Definition: PileupJetIdentifier.h:182
PileupJetIdentifier::dRMeanCh
const float & dRMeanCh() const
Definition: PileupJetIdentifier.h:125
PileupJetIdentifier::leadChPt
const float & leadChPt() const
Definition: PileupJetIdentifier.h:117
PileupJetIdentifier::leadPt
const float & leadPt() const
Definition: PileupJetIdentifier.h:105
PileupJetIdentifier::chFrac02
const float & chFrac02() const
Definition: PileupJetIdentifier.h:164
PileupJetIdentifier::emFrac03
const float & emFrac03() const
Definition: PileupJetIdentifier.h:181
PileupJetIdentifier::Id
Id
Definition: PileupJetIdentifier.h:87
PileupJetIdentifier::leadEta
const float & leadEta() const
Definition: PileupJetIdentifier.h:106
PileupJetIdentifier::leadChPhi
const float & leadChPhi() const
Definition: PileupJetIdentifier.h:119
PileupJetIdentifier::chFrac07
const float & chFrac07() const
Definition: PileupJetIdentifier.h:169
PileupJetIdentifier::leadNeutFrac
const float & leadNeutFrac() const
Definition: PileupJetIdentifier.h:146
StoredPileupJetIdentifier::dRMean
const float & dRMean() const
Definition: PileupJetIdentifier.h:44
PileupJetIdentifier::neuHadrfrac
const float & neuHadrfrac() const
Definition: PileupJetIdentifier.h:102
PileupJetIdentifier::ptDCh
const float & ptDCh() const
Definition: PileupJetIdentifier.h:130
PileupJetIdentifier::neutFrac04
const float & neutFrac04() const
Definition: PileupJetIdentifier.h:174
PileupJetIdentifier
Definition: PileupJetIdentifier.h:74
StoredPileupJetIdentifier::nNeutrals
const float & nNeutrals() const
Definition: PileupJetIdentifier.h:35
PileupJetIdentifier::etaW
const float & etaW() const
Definition: PileupJetIdentifier.h:157
StoredPileupJetIdentifier::jetR
const float & jetR() const
Definition: PileupJetIdentifier.h:64
PileupJetIdentifier::leadEmEta
const float & leadEmEta() const
Definition: PileupJetIdentifier.h:115
StoredPileupJetIdentifier::frac05
const float & frac05() const
Definition: PileupJetIdentifier.h:53
DECLARE_VARIABLE
#define DECLARE_VARIABLE(NAME, TYPE)
Definition: PileupJetIdentifier.h:14
PileupJetIdentifier::idFlag
const int & idFlag() const
Definition: PileupJetIdentifier.h:91
StoredPileupJetIdentifier::dR2Mean
const float & dR2Mean() const
Definition: PileupJetIdentifier.h:40
StoredPileupJetIdentifier::RMS
void RMS(const float val)
a.k.a RMS
Definition: PileupJetIdentifier.h:41
PileupJetIdentifier::fourthChFrac
const float & fourthChFrac() const
Definition: PileupJetIdentifier.h:144
StoredPileupJetIdentifier::jetEta
const float & jetEta() const
Definition: PileupJetIdentifier.h:31
StoredPileupJetIdentifier::beta
const float & beta() const
Definition: PileupJetIdentifier.h:57
heppy_batch.val
val
Definition: heppy_batch.py:351
PileupJetIdentifier::chFrac01
const float & chFrac01() const
Definition: PileupJetIdentifier.h:163
PileupJetIdentifier::sumPt
const float & sumPt() const
Definition: PileupJetIdentifier.h:132
PileupJetIdentifier::jetM
const float & jetM() const
Definition: PileupJetIdentifier.h:97
PileupJetIdentifier::pt2A
const float & pt2A() const
Definition: PileupJetIdentifier.h:129
PileupJetIdentifier::kLoose
Definition: PileupJetIdentifier.h:87
PileupJetIdentifier::neuEMfrac
const float & neuEMfrac() const
Definition: PileupJetIdentifier.h:100
PileupJetIdentifier::jetPhi
const float & jetPhi() const
Definition: PileupJetIdentifier.h:96
PileupJetIdentifier::neutFrac03
const float & neutFrac03() const
Definition: PileupJetIdentifier.h:173
StoredPileupJetIdentifier::betaClassic
const float & betaClassic() const
Definition: PileupJetIdentifier.h:59
PileupJetIdentifier::leadFrac
const float & leadFrac() const
Definition: PileupJetIdentifier.h:136
PileupJetIdentifier::leadChFrac
const float & leadChFrac() const
Definition: PileupJetIdentifier.h:141
PileupJetIdentifier::secondPt
const float & secondPt() const
Definition: PileupJetIdentifier.h:108
StoredPileupJetIdentifier::betaStarClassic
const float & betaStarClassic() const
Definition: PileupJetIdentifier.h:60
PileupJetIdentifier::secondChFrac
const float & secondChFrac() const
Definition: PileupJetIdentifier.h:142
StoredPileupJetIdentifier::frac03
const float & frac03() const
Definition: PileupJetIdentifier.h:51
PileupJetIdentifier::neutFrac05
const float & neutFrac05() const
Definition: PileupJetIdentifier.h:175
PileupJetIdentifier::dRMeanEm
const float & dRMeanEm() const
Definition: PileupJetIdentifier.h:124
PileupJetIdentifier::chFrac04
const float & chFrac04() const
Definition: PileupJetIdentifier.h:166
PileupJetIdentifier::chgEMfrac
const float & chgEMfrac() const
Definition: PileupJetIdentifier.h:99
StoredPileupJetIdentifier::frac02
const float & frac02() const
Definition: PileupJetIdentifier.h:50
PileupJetIdAlgo
Definition: PileupJetIdAlgo.h:22
PileupJetIdentifier::emFrac02
const float & emFrac02() const
Definition: PileupJetIdentifier.h:180
StoredPileupJetIdentifier::jetPt
const float & jetPt() const
Definition: PileupJetIdentifier.h:32
StoredPileupJetIdentifier
Definition: PileupJetIdentifier.h:23
PileupJetIdentifier::fourthFrac
const float & fourthFrac() const
Definition: PileupJetIdentifier.h:139
StoredPileupJetIdentifier::rho
const float & rho() const
Definition: PileupJetIdentifier.h:63
PileupJetIdentifier::kMedium
Definition: PileupJetIdentifier.h:87
StoredPileupJetIdentifier::dRMatch
const float & dRMatch() const
Definition: PileupJetIdentifier.h:66
PileupJetIdentifier::emFrac06
const float & emFrac06() const
Definition: PileupJetIdentifier.h:184
PileupJetIdentifier::chFrac03
const float & chFrac03() const
Definition: PileupJetIdentifier.h:165
MVAJetPuId
Definition: MVAJetPuId.h:16
PileupJetIdentifier::secondEmFrac
const float & secondEmFrac() const
Definition: PileupJetIdentifier.h:152
StoredPileupJetIdentifier::majW
const float & majW() const
Definition: PileupJetIdentifier.h:46
PileupJetIdentifier::operator=
PileupJetIdentifier & operator=(const StoredPileupJetIdentifier &lhs)
Definition: PileupJetIdentifier.h:82
PileupJetIdentifier::ptRMS
const float & ptRMS() const
Definition: PileupJetIdentifier.h:128
StoredPileupJetIdentifier::frac06
const float & frac06() const
Definition: PileupJetIdentifier.h:54
PileupJetIdentifier::secondEta
const float & secondEta() const
Definition: PileupJetIdentifier.h:109
PileupJetIdentifier::PileupJetIdentifier
PileupJetIdentifier()
Definition: PileupJetIdentifier.cc:12
RemoveAddSevLevel.flag
flag
Definition: RemoveAddSevLevel.py:117
StoredPileupJetIdentifier::frac04
const float & frac04() const
Definition: PileupJetIdentifier.h:52
PileupJetIdentifier::ptMean
const float & ptMean() const
Definition: PileupJetIdentifier.h:127
PileupJetIdentifier::leadEmPt
const float & leadEmPt() const
Definition: PileupJetIdentifier.h:114