CMS 3D CMS Logo

RecoLocalCalo_EventContent_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 #
5 # start with HCAL part
6 #
7 #FEVT
8 RecoLocalCaloFEVT = cms.PSet(
9  outputCommands = cms.untracked.vstring('keep *_hbhereco_*_*',
10  'keep *_hbheprereco_*_*',
11  'keep *_hfprereco_*_*',
12  'keep *_hfreco_*_*',
13  'keep *_horeco_*_*',
14  'keep HBHERecHitsSorted_hbherecoMB_*_*',
15  'keep HBHERecHitsSorted_hbheprerecoMB_*_*',
16  'keep HORecHitsSorted_horecoMB_*_*',
17  'keep HFRecHitsSorted_hfrecoMB_*_*',
18  'keep ZDCDataFramesSorted_*Digis_*_*',
19  'keep ZDCRecHitsSorted_*_*_*',
20  'keep QIE10DataFrameHcalDataFrameContainer_hcalDigis_ZDC_*',
21  'keep *_reducedHcalRecHits_*_*',
22  'keep *_castorreco_*_*',
23  'keep HcalUnpackerReport_*_*_*'
24  )
25 )
26 #RECO content
27 RecoLocalCaloRECO = cms.PSet(
28  outputCommands = cms.untracked.vstring('keep *_hbhereco_*_*',
29  'keep *_hbheprereco_*_*',
30  'keep *_hfprereco_*_*',
31  'keep *_hfreco_*_*',
32  'keep *_horeco_*_*',
33  'keep HBHERecHitsSorted_hbherecoMB_*_*',
34  'keep HORecHitsSorted_horecoMB_*_*',
35  'keep HFRecHitsSorted_hfrecoMB_*_*',
36  #'keep ZDCDataFramesSorted_*Digis_*_*',
37  'keep ZDCDataFramesSorted_hcalDigis_*_*',
38  'keep ZDCDataFramesSorted_castorDigis_*_*',
39  'keep QIE10DataFrameHcalDataFrameContainer_hcalDigis_ZDC_*',
40  'keep ZDCRecHitsSorted_zdcreco_*_*',
41  'keep *_reducedHcalRecHits_*_*',
42  'keep *_castorreco_*_*',
43  #'keep HcalUnpackerReport_*_*_*'
44  'keep HcalUnpackerReport_castorDigis_*_*',
45  'keep HcalUnpackerReport_hcalDigiAlCaMB_*_*',
46  'keep HcalUnpackerReport_hcalDigis_*_*'
47  )
48 )
49 #AOD content
50 RecoLocalCaloAOD = cms.PSet(
51  outputCommands = cms.untracked.vstring(
52  'keep *_castorreco_*_*',
53  'keep *_reducedHcalRecHits_*_*',
54  #'keep HcalUnpackerReport_*_*_*'
55  'keep HcalUnpackerReport_castorDigis_*_*',
56  'keep HcalUnpackerReport_hcalDigiAlCaMB_*_*',
57  'keep HcalUnpackerReport_hcalDigis_*_*'
58  )
59 )
60 RecoLocalCaloFEVT.outputCommands.extend(ecalLocalRecoFEVT.outputCommands)
61 RecoLocalCaloRECO.outputCommands.extend(ecalLocalRecoRECO.outputCommands)
62 RecoLocalCaloAOD.outputCommands.extend(ecalLocalRecoAOD.outputCommands)
63 
64 def _updateOutput( era, outputPSets, commands):
65  for o in outputPSets:
66  era.toModify( o, outputCommands = o.outputCommands + commands )
67 
68 # mods for HGCAL
69 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
70 phase2_hgcal.toModify( RecoLocalCaloFEVT, outputCommands = RecoLocalCaloFEVT.outputCommands + [
71  'keep *_HGCalRecHit_*_*',
72  'keep *_HGCalUncalibRecHit_*_*',
73  'keep *_hgcalLayerClusters_*_*',
74  'keep *_hgcalMultiClusters_*_*'
75  ]
76 )
77 phase2_hgcal.toModify( RecoLocalCaloRECO, outputCommands = RecoLocalCaloRECO.outputCommands + ['keep *_HGCalRecHit_*_*','keep *_hgcalLayerClusters_*_*', 'keep *_hgcalMultiClusters_*_*'] )
78 # don't modify AOD for HGCal yet, need "reduced" rechits collection first (i.e. requires reconstruction)
79 phase2_hgcal.toModify( RecoLocalCaloAOD, outputCommands = RecoLocalCaloAOD.outputCommands + ['keep *_HGCalRecHit_*_*','keep *_hgcalLayerClusters_*_*'] )
80 
81 from Configuration.Eras.Modifier_pA_2016_cff import pA_2016
82 from Configuration.Eras.Modifier_pp_on_AA_2018_cff import pp_on_AA_2018
83 (pA_2016|pp_on_AA_2018).toModify( RecoLocalCaloAOD.outputCommands,
84  func=lambda outputCommands: outputCommands.extend(['keep *_zdcreco_*_*',
85  'keep ZDCDataFramesSorted_hcalDigis_*_*',
86  'keep ZDCDataFramesSorted_castorDigis_*_*',
87  'keep QIE10DataFrameHcalDataFrameContainer_hcalDigis_ZDC_*'
88  ])
89  )
def _updateOutput(era, outputPSets, commands)