1 import FWCore.ParameterSet.Config
as cms
5 full_81x_chs = cms.PSet(
6 impactParTkThreshold = cms.double(1.),
7 cutBased = cms.bool(
False),
8 etaBinnedWeights = cms.bool(
True),
9 tmvaMethod = cms.string(
"JetIDMVAHighPt"),
10 version = cms.int32(-1),
11 nEtaBins = cms.int32(4),
12 trainings = cms.VPSet(
14 jEtaMin = cms.double(0.),
15 jEtaMax = cms.double(2.5),
16 tmvaWeights = cms.FileInPath(
"RecoJets/JetProducers/data/pileupJetId_80XvarFix_Eta0to2p5_BDT.weights.xml.gz"),
17 tmvaVariables = cms.vstring(
36 jEtaMin = cms.double(2.5),
37 jEtaMax = cms.double(2.75),
38 tmvaWeights = cms.FileInPath(
"RecoJets/JetProducers/data/pileupJetId_80XvarFix_Eta2p5to2p75_BDT.weights.xml.gz"),
39 tmvaVariables = cms.vstring(
58 jEtaMin = cms.double(2.75),
59 jEtaMax = cms.double(3.),
60 tmvaWeights = cms.FileInPath(
"RecoJets/JetProducers/data/pileupJetId_80XvarFix_Eta2p75to3_BDT.weights.xml.gz"),
61 tmvaVariables = cms.vstring(
80 jEtaMin = cms.double(3.),
81 jEtaMax = cms.double(5.),
82 tmvaWeights = cms.FileInPath(
"RecoJets/JetProducers/data/pileupJetId_80XvarFix_Eta3to5_BDT.weights.xml.gz"),
83 tmvaVariables = cms.vstring(
99 tmvaSpectators = cms.vstring(
103 JetIdParams = full_81x_chs_wp,
104 label = cms.string(
"full")
108 trainingVariables_102X_Eta0To3 = [
125 trainingVariables_102X_Eta3To5 = list(trainingVariables_102X_Eta0To3)
126 trainingVariables_102X_Eta3To5.remove(
'beta')
127 trainingVariables_102X_Eta3To5.remove(
'jetRchg')
128 trainingVariables_102X_Eta3To5.remove(
'nCharged')
131 full_102x_chs = full_81x_chs.clone(
132 JetIdParams = full_102x_chs_wp,
133 trainings = {0: dict(tmvaWeights =
"RecoJets/JetProducers/data/pileupJetId_102X_Eta0p0To2p5_chs_BDT.weights.xml.gz",
134 tmvaVariables = trainingVariables_102X_Eta0To3),
135 1: dict(tmvaWeights =
"RecoJets/JetProducers/data/pileupJetId_102X_Eta2p5To2p75_chs_BDT.weights.xml.gz",
136 tmvaVariables = trainingVariables_102X_Eta0To3),
137 2: dict(tmvaWeights =
"RecoJets/JetProducers/data/pileupJetId_102X_Eta2p75To3p0_chs_BDT.weights.xml.gz",
138 tmvaVariables = trainingVariables_102X_Eta0To3),
139 3: dict(tmvaWeights =
"RecoJets/JetProducers/data/pileupJetId_102X_Eta3p0To5p0_chs_BDT.weights.xml.gz",
140 tmvaVariables = trainingVariables_102X_Eta3To5)
145 full_94x_chs = full_102x_chs.clone(JetIdParams = full_94x_chs_wp)
146 for train
in full_94x_chs.trainings:
147 train.tmvaWeights = train.tmvaWeights.value().
replace(
"102X",
"94X")
150 full_106x_UL17_chs = full_102x_chs.clone(JetIdParams = full_106x_UL17_chs_wp)
151 for train
in full_106x_UL17_chs.trainings:
152 train.tmvaWeights = train.tmvaWeights.value().
replace(
"102X",
"UL17")
155 full_106x_UL18_chs = full_106x_UL17_chs.clone(JetIdParams = full_106x_UL18_chs_wp)
156 for train
in full_106x_UL18_chs.trainings:
157 train.tmvaWeights = train.tmvaWeights.value().
replace(
"UL17",
"UL18")
160 full_106x_UL16_chs = full_106x_UL17_chs.clone(JetIdParams = full_106x_UL16_chs_wp)
161 for train
in full_106x_UL16_chs.trainings:
162 train.tmvaWeights = train.tmvaWeights.value().
replace(
"UL17",
"UL16")
165 full_106x_UL16APV_chs = full_106x_UL17_chs.clone(JetIdParams = full_106x_UL16APV_chs_wp)
166 for train
in full_106x_UL16APV_chs.trainings:
167 train.tmvaWeights = train.tmvaWeights.value().
replace(
"UL17",
"UL16APV")
171 impactParTkThreshold = cms.double(1.),
172 cutBased = cms.bool(
True),
173 JetIdParams = EmptyCutBased_wp,
174 label = cms.string(
"cutbased")
def replace(string, replacements)