You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: PhysicsTools/NanoAOD/python/jetsAK4_CHS_cff.py
+17-3Lines changed: 17 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -171,11 +171,15 @@
171
171
hfcentralEtaStripSize=Var("userInt('hfJetShowerShape:centralEtaStripSize')", int, doc="eta size of the central tower strip in HF (noise discriminating variable) "),
172
172
hfadjacentEtaStripsSize=Var("userInt('hfJetShowerShape:adjacentEtaStripsSize')", int, doc="eta size of the strips next to the central tower strip in HF (noise discriminating variable) "),
173
173
nConstituents=Var("numberOfDaughters()","uint8",doc="Number of particles in the jet"),
174
+
chMultiplicity=Var("chargedMultiplicity()","uint8",doc="Number of charged particles in the jet"),
175
+
neMultiplicity=Var("neutralMultiplicity()","uint8",doc="Number of neutral particles in the jet"),
174
176
rawFactor=Var("1.-jecFactor('Uncorrected')",float,doc="1 - Factor to get back to raw pT",precision=6),
175
177
chHEF=Var("chargedHadronEnergyFraction()", float, doc="charged Hadron Energy Fraction", precision=6),
176
178
neHEF=Var("neutralHadronEnergyFraction()", float, doc="neutral Hadron Energy Fraction", precision=6),
177
179
chEmEF=Var("chargedEmEnergyFraction()", float, doc="charged Electromagnetic Energy Fraction", precision=6),
178
180
neEmEF=Var("neutralEmEnergyFraction()", float, doc="neutral Electromagnetic Energy Fraction", precision=6),
181
+
hfHEF=Var("HFHadronEnergyFraction()",float,doc="hadronic Energy Fraction in HF",precision=6),
182
+
hfEmEF=Var("HFEMEnergyFraction()",float,doc="electromagnetic Energy Fraction in HF",precision=6),
179
183
muEF=Var("muonEnergyFraction()", float, doc="muon Energy Fraction", precision=6),
180
184
chFPV0EF=Var("userFloat('chFPV0EF')", float, doc="charged fromPV==0 Energy Fraction (energy excluded from CHS jets). Previously called betastar.", precision=6),
btagDeepB=Var("?(bDiscriminator('pfDeepCSVJetTags:probb')+bDiscriminator('pfDeepCSVJetTags:probbb'))>=0?bDiscriminator('pfDeepCSVJetTags:probb')+bDiscriminator('pfDeepCSVJetTags:probbb'):-1",float,doc="DeepCSV b+bb tag discriminator",precision=10),
208
212
btagDeepCvL=Var("?bDiscriminator('pfDeepCSVJetTags:probc')>=0?bDiscriminator('pfDeepCSVJetTags:probc')/(bDiscriminator('pfDeepCSVJetTags:probc')+bDiscriminator('pfDeepCSVJetTags:probudsg')):-1", float,doc="DeepCSV c vs udsg discriminator",precision=10),
209
-
btagDeepCvB=Var("?bDiscriminator('pfDeepCSVJetTags:probc')>=0?bDiscriminator('pfDeepCSVJetTags:probc')/(bDiscriminator('pfDeepCSVJetTags:probc')+bDiscriminator('pfDeepCSVJetTags:probb')+bDiscriminator('pfDeepCSVJetTags:probbb')):-1",float,doc="DeepCSV c vs b+bb discriminator",precision=10)
213
+
btagDeepCvB=Var("?bDiscriminator('pfDeepCSVJetTags:probc')>=0?bDiscriminator('pfDeepCSVJetTags:probc')/(bDiscriminator('pfDeepCSVJetTags:probc')+bDiscriminator('pfDeepCSVJetTags:probb')+bDiscriminator('pfDeepCSVJetTags:probbb')):-1",float,doc="DeepCSV c vs b+bb discriminator",precision=10),
214
+
# Remove for V9
215
+
chMultiplicity=None,
216
+
neMultiplicity=None,
217
+
hfHEF=None,
218
+
hfEmEF=None
210
219
)
211
220
212
221
(run3_nanoAOD_122|run3_nanoAOD_124).toModify(
213
-
# New ParticleNet trainings are not available in MiniAOD until Run3 13X
214
222
jetTable.variables,
223
+
# New ParticleNet trainings are not available in MiniAOD until Run3 13X
hfcentralEtaStripSize=Var("userInt('hfcentralEtaStripSize')", int, doc="eta size of the central tower strip in HF (noise discriminating variable)"),
104
122
hfadjacentEtaStripsSize=Var("userInt('hfadjacentEtaStripsSize')", int, doc="eta size of the strips next to the central tower strip in HF (noise discriminating variable)"),
105
123
nConstituents=Var("numberOfDaughters()","uint8",doc="Number of particles in the jet"),
124
+
chMultiplicity=Var("chargedMultiplicity()","uint8",doc="(Puppi-weighted) Number of charged particles in the jet"),
125
+
neMultiplicity=Var("neutralMultiplicity()","uint8",doc="(Puppi-weighted) Number of neutral particles in the jet"),
106
126
rawFactor=Var("1.-jecFactor('Uncorrected')",float,doc="1 - Factor to get back to raw pT",precision=6),
107
127
chHEF=Var("chargedHadronEnergyFraction()", float, doc="charged Hadron Energy Fraction", precision=6),
108
128
neHEF=Var("neutralHadronEnergyFraction()", float, doc="neutral Hadron Energy Fraction", precision=6),
109
129
chEmEF=Var("chargedEmEnergyFraction()", float, doc="charged Electromagnetic Energy Fraction", precision=6),
110
130
neEmEF=Var("neutralEmEnergyFraction()", float, doc="neutral Electromagnetic Energy Fraction", precision=6),
131
+
hfHEF=Var("HFHadronEnergyFraction()",float,doc="hadronic Energy Fraction in HF",precision=6),
132
+
hfEmEF=Var("HFEMEnergyFraction()",float,doc="electromagnetic Energy Fraction in HF",precision=6),
111
133
muEF=Var("muonEnergyFraction()", float, doc="muon Energy Fraction", precision=6),
112
134
)
113
135
)
@@ -121,16 +143,21 @@
121
143
)
122
144
123
145
(run3_nanoAOD_122|run3_nanoAOD_124).toModify(
124
-
# New ParticleNet trainings are not available in MiniAOD until Run3 13X
125
146
jetPuppiTable.variables,
147
+
# New ParticleNet trainings are not available in MiniAOD until Run3 13X
# Restore taggers that were decommisionned for Run-3
168
190
deepTag_TvsQCD=Var("bDiscriminator('pfDeepBoostedDiscriminatorsJetTags:TvsQCD')",float,doc="DeepBoostedJet tagger top vs QCD discriminator",precision=10),
169
191
deepTag_WvsQCD=Var("bDiscriminator('pfDeepBoostedDiscriminatorsJetTags:WvsQCD')",float,doc="DeepBoostedJet tagger W vs QCD discriminator",precision=10),
@@ -186,8 +208,6 @@
186
208
particleNetLegacy_Xcc=Var("bDiscriminator('pfMassDecorrelatedParticleNetJetTags:probXcc')",float,doc="Mass-decorrelated ParticleNet Legacy Run-2 tagger raw X->cc score. For X->cc vs QCD tagging, use Xcc/(Xcc+QCD)",precision=10),
187
209
particleNetLegacy_Xqq=Var("bDiscriminator('pfMassDecorrelatedParticleNetJetTags:probXqq')",float,doc="Mass-decorrelated ParticleNet Legacy Run-2 tagger raw X->qq (uds) score. For X->qq vs QCD tagging, use Xqq/(Xqq+QCD). For W vs QCD tagging, use (Xcc+Xqq)/(Xcc+Xqq+QCD)",precision=10),
188
210
particleNetLegacy_QCD=Var("bDiscriminator('pfMassDecorrelatedParticleNetJetTags:probQCDbb')+bDiscriminator('pfMassDecorrelatedParticleNetJetTags:probQCDcc')+bDiscriminator('pfMassDecorrelatedParticleNetJetTags:probQCDb')+bDiscriminator('pfMassDecorrelatedParticleNetJetTags:probQCDc')+bDiscriminator('pfMassDecorrelatedParticleNetJetTags:probQCDothers')",float,doc="Mass-decorrelated ParticleNet Legacy Run-2 tagger raw QCD score",precision=10),
doc=cms.string("slimmedJetsAK8, i.e. ak8 fat jets for boosted analysis"),
290
+
doc=cms.string("slimmedJetsAK8PFPuppiSoftDropPacked::SubJets, i.e. soft-drop subjets for ak8 fat jets for boosted analysis"),
271
291
variables=cms.PSet(P4Vars,
272
292
btagDeepB=Var("bDiscriminator('pfDeepCSVJetTags:probb')+bDiscriminator('pfDeepCSVJetTags:probbb')",float,doc="DeepCSV b+bb tag discriminator",precision=10),
273
293
rawFactor=Var("1.-jecFactor('Uncorrected')",float,doc="1 - Factor to get back to raw pT",precision=6),
294
+
area=Var("jetArea()", float, doc="jet catchment area, for JECs",precision=10),
0 commit comments