Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pp RECO with HI photon isolation using "customise" option #12185

Merged
merged 2 commits into from
Nov 5, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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