Skip to content

Commit

Permalink
Merge pull request #31510 from abdoulline/slimmedHcalRecHits_MINIAOD_…
Browse files Browse the repository at this point in the history
…106X

10_6_X backport of  "HCAL: slimmed collections... for miniAOD" (PR #31375)
  • Loading branch information
cmsbuild committed Sep 23, 2020
2 parents 704eab8 + aba08fc commit 3f69ddf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Expand Up @@ -37,6 +37,7 @@
'keep EcalRecHitsSorted_reducedEgamma_*_*',
'keep recoGsfTracks_reducedEgamma_*_*',
'keep HBHERecHitsSorted_reducedEgamma_*_*',
'keep *_slimmedHcalRecHits_*_*',
'drop *_*_caloTowers_*',
'drop *_*_pfCandidates_*',
'drop *_*_genJets_*',
Expand Down
2 changes: 2 additions & 0 deletions PhysicsTools/PatAlgos/python/slimming/slimming_cff.py
Expand Up @@ -28,6 +28,7 @@
from RecoEgamma.EgammaPhotonProducers.reducedEgamma_cfi import *
from RecoLuminosity.LumiProducer.bunchSpacingProducer_cfi import bunchSpacingProducer
from HeavyFlavorAnalysis.Onia2MuMu.OniaPhotonConversionProducer_cfi import PhotonCandidates as oniaPhotonCandidates
from RecoLocalCalo.HcalRecProducers.HcalHitSelection_cfi import *

slimmingTask = cms.Task(
packedPFCandidatesTask,
Expand Down Expand Up @@ -57,6 +58,7 @@
slimmedMETs,
metFilterPathsTask,
reducedEgamma,
slimmedHcalRecHits,
bunchSpacingProducer,
oniaPhotonCandidates
)
Expand Down
8 changes: 8 additions & 0 deletions RecoLocalCalo/HcalRecProducers/python/HcalHitSelection_cfi.py
@@ -1,5 +1,6 @@
import FWCore.ParameterSet.Config as cms

from RecoLocalCalo.HcalRecAlgos.hcalRecAlgoESProd_cfi import *
reducedHcalRecHits = cms.EDProducer("HcalHitSelection",
hbheTag = cms.InputTag('hbhereco'),
hfTag = cms.InputTag('hfreco'),
Expand All @@ -11,5 +12,12 @@
)
)

slimmedHcalRecHits = reducedHcalRecHits.clone(
hbheTag = "reducedHcalRecHits:hbhereco",
hfTag = "reducedHcalRecHits:hfreco",
hoTag = "reducedHcalRecHits:horeco",
interestingDetIds = ()
)

from Configuration.Eras.Modifier_pp_on_AA_2018_cff import pp_on_AA_2018
pp_on_AA_2018.toModify(reducedHcalRecHits.interestingDetIds, func = lambda list: list.remove(cms.InputTag("interestingOotEgammaIsoHCALDetId")) )

0 comments on commit 3f69ddf

Please sign in to comment.