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