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(
7  hbheInput='hbheprereco'
8 )
9 
10 ak4CaloJetsForTrk = _ak4CaloJets.clone(
11  srcPVs = 'firstStepPrimaryVerticesUnsorted',
12  src = 'caloTowerForTrk'
13 )
14 
15 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
16 pp_on_AA.toReplaceWith(ak4CaloJetsForTrk, _akPu4CaloJets.clone(
17  srcPVs = 'firstStepPrimaryVerticesUnsorted',
18  src = 'caloTowerForTrk')
19 )
20 
21 from Configuration.Eras.Modifier_trackingLowPU_cff import trackingLowPU
22 trackingLowPU.toModify(ak4CaloJetsForTrk,
23  srcPVs = "pixelVertices"
24 )
25 
26 caloJetsForTrkTask = cms.Task(caloTowerForTrk,ak4CaloJetsForTrk)
27 caloJetsForTrk = cms.Sequence(caloJetsForTrkTask)
28 
29 from Configuration.Eras.Modifier_pf_badHcalMitigation_cff import pf_badHcalMitigation
30 pf_badHcalMitigation.toModify( caloTowerForTrk, missingHcalRescaleFactorForEcal = 1.0 )
31 
32 from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
33 run3_HB.toModify( caloTowerForTrk, hbheInput = "hbhereco" )
HiRecoJets_cff
calotowermaker_cfi