CMS 3D CMS Logo

caloJetsForTrk_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from RecoJets.JetProducers.ak4CaloJets_cfi import ak4CaloJets as _ak4CaloJets
4 from RecoHI.HiJetAlgos.HiRecoJets_cff import akPu4CaloJets as _akPu4CaloJets
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"
13 )
14 
15 caloJetsForTrkTask = cms.Task(caloTowerForTrk,ak4CaloJetsForTrk)
16 caloJetsForTrk = cms.Sequence(caloJetsForTrkTask)
17 
18 from Configuration.Eras.Modifier_pf_badHcalMitigation_cff import pf_badHcalMitigation
19 pf_badHcalMitigation.toModify( caloTowerForTrk, missingHcalRescaleFactorForEcal = 1.0 )
20 
21 from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
22 phase2_hcal.toModify( caloTowerForTrk, hbheInput = cms.InputTag("hbhereco") )
23