-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12185 from ttrk/CMSSW_7_5_4_HI_Iso_PR
pp RECO with HI photon isolation using "customise" option
- Loading branch information
Showing
3 changed files
with
95 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters