CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
customise_PPwithHI.py
Go to the documentation of this file.
2 
3 # Customize process to run HI-style photon isolation in the pp RECO sequences
4 def addHIIsolationProducer(process):
5 
6  process.load('Configuration.EventContent.EventContent_cff')
7 
8  # extend RecoEgammaFEVT content
9  process.RecoEgammaFEVT.outputCommands.extend(['keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppGED_*_*',
10  'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerpp_*_*'
11  ])
12 
13  # extend RecoEgammaRECO content
14  process.RECOEventContent.outputCommands.extend(['keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppGED_*_*',
15  'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerpp_*_*',
16  'keep recoCaloClusters_islandBasicClusters_*_*'
17  ])
18 
19  process.FEVTEventContent.outputCommands.extend(['keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppGED_*_*',
20  'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerpp_*_*',
21  'keep recoCaloClusters_islandBasicClusters_*_*'
22  ])
23  process.FEVTSIMEventContent.outputCommands.extend(['keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppGED_*_*',
24  'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerpp_*_*',
25  'keep recoCaloClusters_islandBasicClusters_*_*'
26  ])
27  # extend RecoEgammaRECO content
28  process.RAWRECOEventContent.outputCommands.extend(['keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppGED_*_*',
29  'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerpp_*_*',
30  'keep recoCaloClusters_islandBasicClusters_*_*'
31  ])
32 
33  process.RECOSIMEventContent.outputCommands.extend(['keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppGED_*_*',
34  'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerpp_*_*',
35  'keep recoCaloClusters_islandBasicClusters_*_*'
36  ])
37 
38  process.RAWRECOSIMHLTEventContent.outputCommands.extend(['keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppGED_*_*',
39  'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerpp_*_*',
40  'keep recoCaloClusters_islandBasicClusters_*_*'
41  ])
42 
43  process.RAWRECODEBUGHLTEventContent.outputCommands.extend(['keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppGED_*_*',
44  'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerpp_*_*',
45  'keep recoCaloClusters_islandBasicClusters_*_*'
46  ])
47 
48  process.FEVTHLTALLEventContent.outputCommands.extend(['keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppGED_*_*',
49  'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerpp_*_*',
50  'keep recoCaloClusters_islandBasicClusters_*_*'
51  ])
52 
53  process.FEVTDEBUGEventContent.outputCommands.extend(['keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppGED_*_*',
54  'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerpp_*_*',
55  'keep recoCaloClusters_islandBasicClusters_*_*'
56  ])
57 
58  # extend RecoEgammaAOD content
59  process.AODEventContent.outputCommands.extend(['keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppGED_*_*',
60  'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerpp_*_*'
61  ])
62 
63  process.AODSIMEventContent.outputCommands.extend(['keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppGED_*_*',
64  'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerpp_*_*'
65  ])
66 
67  # add HI Photon isolation sequence to pp RECO
68  process.load('RecoHI.HiEgammaAlgos.photonIsolationHIProducer_cfi')
69  process.load('RecoEcal.EgammaClusterProducers.islandBasicClusters_cfi')
70 
71  process.photonIsolationHISequencePP = cms.Sequence(process.islandBasicClusters
72  * process.photonIsolationHIProducerpp
73  * process.photonIsolationHIProducerppGED)
74 
75  process.reconstruction *= process.photonIsolationHISequencePP
76 
77  return process