Skip to content

Commit

Permalink
Merge pull request #12185 from ttrk/CMSSW_7_5_4_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 Nov 5, 2015
2 parents 8660fe9 + cef7230 commit 4df4154
Show file tree
Hide file tree
Showing 3 changed files with 95 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)

3 changes: 3 additions & 0 deletions SLHCUpgradeSimulations/Configuration/python/postLS1Customs.py
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,9 @@ def customise_Reco(process):
process.particleFlowClusterHO.pfClusterBuilder.positionCalc.logWeightDenominator = cms.double(0.05)
process.particleFlowClusterHO.pfClusterBuilder.allCellsPositionCalc.logWeightDenominator = cms.double(0.05)

from RecoHI.Configuration.customise_PPwithHI import addHIIsolationProducer
process = addHIIsolationProducer(process)

return process


Expand Down

0 comments on commit 4df4154

Please sign in to comment.