Skip to content

Commit

Permalink
Merge pull request #13047 from ttrk/CMSSW_7_6_0_pre7_HI_Iso_PR
Browse files Browse the repository at this point in the history
pp RECO with HI photon isolation using "customise" option
  • Loading branch information
cmsbuild committed Jan 29, 2016
2 parents 5bc0097 + de90e22 commit 471f6c6
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 0 deletions.
77 changes: 77 additions & 0 deletions RecoHI/Configuration/python/customise_PPwithHI.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
import FWCore.ParameterSet.Config as cms

# Customize process to run HI-style photon isolation in the pp RECO sequences
def addHIIsolationProducer(process):

process.load('Configuration.EventContent.EventContent_cff')

# extend RecoEgammaFEVT content
process.RecoEgammaFEVT.outputCommands.extend(['keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppGED_*_*',
'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerpp_*_*'
])

# extend RecoEgammaRECO content
process.RECOEventContent.outputCommands.extend(['keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppGED_*_*',
'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerpp_*_*',
'keep recoCaloClusters_islandBasicClusters_*_*'
])

process.FEVTEventContent.outputCommands.extend(['keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppGED_*_*',
'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerpp_*_*',
'keep recoCaloClusters_islandBasicClusters_*_*'
])
process.FEVTSIMEventContent.outputCommands.extend(['keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppGED_*_*',
'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerpp_*_*',
'keep recoCaloClusters_islandBasicClusters_*_*'
])
# extend RecoEgammaRECO content
process.RAWRECOEventContent.outputCommands.extend(['keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppGED_*_*',
'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerpp_*_*',
'keep recoCaloClusters_islandBasicClusters_*_*'
])

process.RECOSIMEventContent.outputCommands.extend(['keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppGED_*_*',
'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerpp_*_*',
'keep recoCaloClusters_islandBasicClusters_*_*'
])

process.RAWRECOSIMHLTEventContent.outputCommands.extend(['keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppGED_*_*',
'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerpp_*_*',
'keep recoCaloClusters_islandBasicClusters_*_*'
])

process.RAWRECODEBUGHLTEventContent.outputCommands.extend(['keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppGED_*_*',
'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerpp_*_*',
'keep recoCaloClusters_islandBasicClusters_*_*'
])

process.FEVTHLTALLEventContent.outputCommands.extend(['keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppGED_*_*',
'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerpp_*_*',
'keep recoCaloClusters_islandBasicClusters_*_*'
])

process.FEVTDEBUGEventContent.outputCommands.extend(['keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppGED_*_*',
'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerpp_*_*',
'keep recoCaloClusters_islandBasicClusters_*_*'
])

# extend RecoEgammaAOD content
process.AODEventContent.outputCommands.extend(['keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppGED_*_*',
'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerpp_*_*'
])

process.AODSIMEventContent.outputCommands.extend(['keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppGED_*_*',
'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerpp_*_*'
])

# add HI Photon isolation sequence to pp RECO
process.load('RecoHI.HiEgammaAlgos.photonIsolationHIProducer_cfi')
process.load('RecoEcal.EgammaClusterProducers.islandBasicClusters_cfi')

process.photonIsolationHISequencePP = cms.Sequence(process.islandBasicClusters
* process.photonIsolationHIProducerpp
* process.photonIsolationHIProducerppGED)

process.reconstruction *= process.photonIsolationHISequencePP

return process
15 changes: 15 additions & 0 deletions RecoHI/HiEgammaAlgos/python/photonIsolationHIProducer_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,18 @@
trackCollection = cms.InputTag("hiGeneralTracks"),
trackQuality = cms.string("highPurity")
)

photonIsolationHIProducerpp = photonIsolationHIProducer.clone(
trackCollection = cms.InputTag("generalTracks")
)

photonIsolationHIProducerppGED = photonIsolationHIProducerpp.clone(
photonProducer=cms.InputTag("gedPhotons")
)

from RecoEcal.EgammaClusterProducers.islandBasicClusters_cfi import *

islandBasicClustersGED = islandBasicClusters.clone()
photonIsolationHISequence = cms.Sequence(islandBasicClusters * photonIsolationHIProducerpp)
photonIsolationHISequenceGED = cms.Sequence(islandBasicClustersGED * photonIsolationHIProducerppGED)

0 comments on commit 471f6c6

Please sign in to comment.