1 import FWCore.ParameterSet.Config
as cms
2 from Configuration.ProcessModifiers.run2_miniAOD_UL_cff
import run2_miniAOD_UL
3 from Configuration.Eras.Modifier_run2_miniAOD_devel_cff
import run2_miniAOD_devel
4 from Configuration.Eras.Modifier_run2_jme_2017_cff
import run2_jme_2017
5 from Configuration.Eras.Modifier_run2_jme_2016_cff
import run2_jme_2016
6 from Configuration.Eras.Modifier_tracker_apv_vfp30_2016_cff
import tracker_apv_vfp30_2016
10 _stdalgos_5x = cms.VPSet(full_5x,cutbased,PhilV1)
13 _chsalgos_5x = cms.VPSet(full_5x_chs,cutbased)
14 _chsalgos_74x = cms.VPSet(full_74x_chs,cutbased)
15 _chsalgos_76x = cms.VPSet(full_76x_chs,cutbased)
16 _chsalgos_80x = cms.VPSet(full_80x_chs,cutbased)
17 _chsalgos_81x = cms.VPSet(full_81x_chs,cutbased)
18 _chsalgos_94x = cms.VPSet(full_94x_chs,cutbased)
19 _chsalgos_102x = cms.VPSet(full_102x_chs,cutbased)
20 _chsalgos_106X_UL17 = cms.VPSet(full_106x_UL17_chs,cutbased)
21 _chsalgos_106X_UL18 = cms.VPSet(full_106x_UL18_chs,cutbased)
22 _chsalgos_106X_UL16 = cms.VPSet(full_106x_UL16_chs,cutbased)
23 _chsalgos_106X_UL16APV = cms.VPSet(full_106x_UL16APV_chs,cutbased)
25 _stdalgos = _chsalgos_81x
28 pileupJetId = cms.EDProducer(
'PileupJetIdProducer',
29 produceJetIds = cms.bool(
True),
30 jetids = cms.InputTag(
""),
31 runMvas = cms.bool(
True),
32 jets = cms.InputTag(
"ak4PFJetsCHS"),
33 vertexes = cms.InputTag(
"offlinePrimaryVertices"),
34 algos = cms.VPSet(_stdalgos),
35 rho = cms.InputTag(
"fixedGridRhoFastjetAll"),
36 jec = cms.string(
"AK4PFchs"),
37 applyJec = cms.bool(
True),
38 inputIsCorrected = cms.bool(
False),
39 residualsFromTxt = cms.bool(
False),
40 usePuppi = cms.bool(
False),
43 run2_miniAOD_UL.toModify(pileupJetId, algos = _chsalgos_106X_UL17)
44 (run2_miniAOD_devel & (~run2_jme_2016) & (~run2_jme_2017)).toModify(pileupJetId, algos = _chsalgos_106X_UL18)
45 (run2_miniAOD_devel & run2_jme_2016 & ~tracker_apv_vfp30_2016).toModify(pileupJetId, algos = _chsalgos_106X_UL16)
46 (run2_miniAOD_devel & run2_jme_2016 & tracker_apv_vfp30_2016).toModify(pileupJetId, algos = _chsalgos_106X_UL16APV)
49 pileupJetIdCalculator = pileupJetId.clone(
50 runMvas = cms.bool(
False),
51 algos = cms.VPSet(cutbased),
55 pileupJetIdEvaluator = pileupJetId.clone(
56 produceJetIds = cms.bool(
False),
57 jetids = cms.InputTag(
"pileupJetIdCalculator"),
60 pileUpJetIDTask = cms.Task(pileupJetId,
61 pileupJetIdCalculator,