Skip to content

Commit fbed391

Browse files
committed
Set up Pileup Jet ID for AK4 Puppi(V18) jets. BDT trained using 13_3_X Winter24 JMENanoV14 DYto2L sample.
1 parent 393dfc8 commit fbed391

File tree

3 files changed

+60
-0
lines changed

3 files changed

+60
-0
lines changed

RecoJets/JetProducers/python/PileupJetIDCutParams_cfi.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,36 @@
106106
###########################################################
107107
full_106x_UL16APV_chs_wp = full_106x_UL16_chs_wp.clone()
108108

109+
###########################################################
110+
## Working points for the 133X trainig for AK4 Puppi jets
111+
###########################################################
112+
full_133x_Winter24_puppiv18_wp = cms.PSet(
113+
# 4 Eta Categories 0-2.5 2.5-2.75 2.75-3.0 3.0-5.0
114+
# 5 Pt Categories 0-10, 10-20, 20-30, 30-40, 40-50
115+
116+
#Tight Id
117+
Pt010_Tight = cms.vdouble(-1.00, -1.00, -1.00, -1.00),
118+
Pt1020_Tight = cms.vdouble(0.038, 0.219, -0.220, -0.254),
119+
Pt2030_Tight = cms.vdouble(0.033, 0.060, -0.154, -0.154),
120+
Pt3040_Tight = cms.vdouble(0.056, 0.103, -0.159, -0.109),
121+
Pt4050_Tight = cms.vdouble(0.043, 0.127, -0.067, -0.059),
122+
123+
#Medium Id
124+
Pt010_Medium = cms.vdouble(-1.00, - 1.00, -1.00, -1.00),
125+
Pt1020_Medium = cms.vdouble(-0.200, -0.068, -0.158, -0.384),
126+
Pt2030_Medium = cms.vdouble(-0.109, -0.179, -0.293, -0.322),
127+
Pt3040_Medium = cms.vdouble(-0.043, -0.124, -0.259, -0.286),
128+
Pt4050_Medium = cms.vdouble(-0.034, -0.071, -0.198, -0.235),
129+
130+
#Loose Id
131+
Pt010_Loose = cms.vdouble( -1.00, -1.00, -1.00, -1.00),
132+
Pt1020_Loose = cms.vdouble(-0.723, -0.392, -0.277, -0.516),
133+
Pt2030_Loose = cms.vdouble(-0.548, -0.347, -0.313, -0.489),
134+
Pt3040_Loose = cms.vdouble(-0.413, -0.289, -0.322, -0.438),
135+
Pt4050_Loose = cms.vdouble(-0.279, -0.219, -0.279, -0.384),
136+
)
137+
138+
109139
#########################################################
110140
## Empty cutbased WP for compatibility
111141
###########################################################

RecoJets/JetProducers/python/PileupJetIDParams_cfi.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,21 @@
166166
for train in full_106x_UL16APV_chs.trainings:
167167
train.tmvaWeights = train.tmvaWeights.value().replace("UL17", "UL16APV")
168168

169+
####################################################################################################################
170+
full_133x_Winter24_puppi_v18_wp = full_106x_UL17_chs.clone(
171+
JetIdParams = full_133x_Winter24_puppiv18_wp,
172+
trainings = {0: dict(tmvaWeights = "RecoJets/JetProducers/data/pileupJetId_133X_Winter24_Eta0p0To2p5_puppiV18_BDT.weights.xml.gz",
173+
tmvaVariables = trainingVariables_102X_Eta0To3),
174+
1: dict(tmvaWeights = "RecoJets/JetProducers/data/pileupJetId_133X_Winter24_Eta2p5To2p75_puppiV18_BDT.weights.xml.gz",
175+
tmvaVariables = trainingVariables_102X_Eta0To3),
176+
2: dict(tmvaWeights = "RecoJets/JetProducers/data/pileupJetId_133X_Winter24_Eta2p75To3p0_puppiV18_BDT.weights.xml.gz",
177+
tmvaVariables = trainingVariables_102X_Eta0To3),
178+
3: dict(tmvaWeights = "RecoJets/JetProducers/data/pileupJetId_133X_Winter24_Eta3p0To5p0_puppiV18_BDT.weights.xml.gz",
179+
tmvaVariables = trainingVariables_102X_Eta3To5)
180+
}
181+
)
182+
183+
169184
####################################################################################################################
170185
cutbased = cms.PSet(
171186
impactParTkThreshold = cms.double(1.),

RecoJets/JetProducers/python/PileupJetID_cfi.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,18 @@
5252
pileupJetIdCalculator,
5353
pileupJetIdEvaluator
5454
)
55+
56+
#
57+
#
58+
#
59+
_puppiV18algos_133X_Winter24 = cms.VPSet(full_133x_Winter24_puppi_v18_wp,cutbased)
60+
61+
pileupJetIdPuppi = pileupJetId.clone(
62+
jets = "ak4PFJetsPuppi",
63+
jec = "AK4PFPuppi",
64+
srcConstituentWeights = "puppi",
65+
algos = cms.VPSet(_puppiV18algos_133X_Winter24),
66+
)
67+
68+
pileUpJetIDPuppiTask = cms.Task(pileupJetIdPuppi)
69+

0 commit comments

Comments
 (0)