CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
customise_PPwithHI Namespace Reference

Functions

def addHIIsolationProducer
 

Function Documentation

def customise_PPwithHI.addHIIsolationProducer (   process)

Definition at line 4 of file customise_PPwithHI.py.

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