1 import FWCore.ParameterSet.Config
as cms
3 from RecoJets.JetProducers.ak4CaloJets_cfi
import ak4CaloJets
as _ak4CaloJets
6 caloTowerForTrk = calotowermaker.clone(hbheInput=cms.InputTag(
'hbheprereco'))
7 ak4CaloJetsForTrk = _ak4CaloJets.clone(srcPVs = cms.InputTag(
'firstStepPrimaryVerticesUnsorted'), src= cms.InputTag(
'caloTowerForTrk'))
8 from Configuration.Eras.Modifier_pp_on_AA_2018_cff
import pp_on_AA_2018
9 pp_on_AA_2018.toReplaceWith(ak4CaloJetsForTrk, _akPu4CaloJets.clone(srcPVs = cms.InputTag(
'firstStepPrimaryVerticesUnsorted'), src= cms.InputTag(
'caloTowerForTrk')))
10 from Configuration.Eras.Modifier_trackingLowPU_cff
import trackingLowPU
11 trackingLowPU.toModify(ak4CaloJetsForTrk,
12 srcPVs =
"pixelVertices"
15 caloJetsForTrkTask = cms.Task(caloTowerForTrk,ak4CaloJetsForTrk)
16 caloJetsForTrk = cms.Sequence(caloJetsForTrkTask)
18 from Configuration.Eras.Modifier_pf_badHcalMitigation_cff
import pf_badHcalMitigation
19 pf_badHcalMitigation.toModify( caloTowerForTrk, missingHcalRescaleFactorForEcal = 1.0 )
21 from Configuration.Eras.Modifier_phase2_hcal_cff
import phase2_hcal
22 phase2_hcal.toModify( caloTowerForTrk, hbheInput = cms.InputTag(
"hbhereco") )