1 import FWCore.ParameterSet.Config
as cms
3 from Configuration.Eras.Modifier_run2_jme_2016_cff
import run2_jme_2016
4 from Configuration.Eras.Modifier_run2_jme_2017_cff
import run2_jme_2017
5 from Configuration.ProcessModifiers.run2_miniAOD_UL_cff
import run2_miniAOD_UL
6 from Configuration.Eras.Modifier_tracker_apv_vfp30_2016_cff
import tracker_apv_vfp30_2016
10 _chsalgos_106X_UL17 = cms.VPSet(full_106x_UL17_chs,cutbased)
11 _chsalgos_106X_UL18 = cms.VPSet(full_106x_UL18_chs,cutbased)
12 _chsalgos_106X_UL16 = cms.VPSet(full_106x_UL16_chs,cutbased)
13 _chsalgos_106X_UL16APV = cms.VPSet(full_106x_UL16APV_chs,cutbased)
15 _stdalgos = _chsalgos_106X_UL18
18 pileupJetId = cms.EDProducer(
'PileupJetIdProducer',
19 produceJetIds = cms.bool(
True),
20 jetids = cms.InputTag(
""),
21 runMvas = cms.bool(
True),
22 jets = cms.InputTag(
"ak4PFJetsCHS"),
23 vertexes = cms.InputTag(
"offlinePrimaryVertices"),
24 algos = cms.VPSet(_stdalgos),
25 rho = cms.InputTag(
"fixedGridRhoFastjetAll"),
26 jec = cms.string(
"AK4PFchs"),
27 applyJec = cms.bool(
True),
28 inputIsCorrected = cms.bool(
False),
29 residualsFromTxt = cms.bool(
False),
30 srcConstituentWeights = cms.InputTag(
""),
35 (run2_miniAOD_UL & run2_jme_2017).toModify(pileupJetId, algos = _chsalgos_106X_UL17)
36 (run2_miniAOD_UL & run2_jme_2016 & ~tracker_apv_vfp30_2016).toModify(pileupJetId, algos = _chsalgos_106X_UL16)
37 (run2_miniAOD_UL & run2_jme_2016 & tracker_apv_vfp30_2016).toModify(pileupJetId, algos = _chsalgos_106X_UL16APV)
40 pileupJetIdCalculator = pileupJetId.clone(
42 algos = cms.VPSet(cutbased),
46 pileupJetIdEvaluator = pileupJetId.clone(
47 produceJetIds =
False,
48 jetids =
"pileupJetIdCalculator",
51 pileUpJetIDTask = cms.Task(pileupJetId,
52 pileupJetIdCalculator,
59 _puppiV18algos_133X_Winter24 = cms.VPSet(full_133x_Winter24_puppi_v18_wp,cutbased)
61 pileupJetIdPuppi = pileupJetId.clone(
62 jets =
"ak4PFJetsPuppi",
64 srcConstituentWeights =
"puppi",
65 algos = cms.VPSet(_puppiV18algos_133X_Winter24),
68 pileUpJetIDPuppiTask = cms.Task(pileupJetIdPuppi)