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 
8 #AOD content
9 RecoLocalCaloAOD = cms.PSet(
10  outputCommands = cms.untracked.vstring(
11  'keep *_castorreco_*_*',
12  'keep *_reducedHcalRecHits_*_*',
13  'keep HcalUnpackerReport_castorDigis_*_*',
14  'keep HcalUnpackerReport_hcalDigiAlCaMB_*_*',
15  'keep HcalUnpackerReport_hcalDigis_*_*')
16 )
17 RecoLocalCaloAOD.outputCommands.extend(ecalLocalRecoAOD.outputCommands)
18 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
19 from Configuration.Eras.Modifier_phase2_hfnose_cff import phase2_hfnose
20 from Configuration.Eras.Modifier_pA_2016_cff import pA_2016
21 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
22 # don't modify AOD for HGCal yet, need "reduced" rechits collection first (i.e. requires reconstruction)
23 phase2_hgcal.toModify( RecoLocalCaloAOD,
24  outputCommands = RecoLocalCaloAOD.outputCommands + ['keep *_HGCalRecHit_*_*',
25  'keep recoCaloClusters_hgcalMergeLayerClusters_*_*',
26  'keep *_hgcalMergeLayerClusters_timeLayerCluster_*',
27  'keep *_hgcalMergeLayerClusters_InitialLayerClustersMask_*'])
28 phase2_hfnose.toModify( RecoLocalCaloAOD,
29  outputCommands = RecoLocalCaloAOD.outputCommands + ['keep recoCaloClusters_hgcalLayerClustersHFNose_*_*',
30  'keep *_hgcalLayerClustersHFNose_timeLayerCluster_*',
31  'keep *_hgcalLayerClustersHFNose_InitialLayerClustersMask_*'])
32 (pA_2016|pp_on_AA).toModify( RecoLocalCaloAOD.outputCommands,
33  func=lambda outputCommands: outputCommands.extend(['keep *_zdcreco_*_*',
34  'keep ZDCDataFramesSorted_hcalDigis_*_*',
35  'keep ZDCDataFramesSorted_castorDigis_*_*',
36  'keep QIE10DataFrameHcalDataFrameContainer_hcalDigis_ZDC_*'])
37  )
38 from Configuration.ProcessModifiers.egamma_lowPt_exclusive_cff import egamma_lowPt_exclusive
39 egamma_lowPt_exclusive.toModify( RecoLocalCaloAOD,
40  outputCommands = RecoLocalCaloAOD.outputCommands + ['keep *_towerMaker_*_*',
41  'keep *_zdcreco_*_*',
42  'keep ZDCDataFramesSorted_hcalDigis_*_*',
43  'keep ZDCDataFramesSorted_castorDigis_*_*',
44  'keep QIE10DataFrameHcalDataFrameContainer_hcalDigis_ZDC_*'])
45 
46 #RECO content
47 RecoLocalCaloRECO = cms.PSet(
48  outputCommands = cms.untracked.vstring('keep *_hbhereco_*_*',
49  'keep *_hbheprereco_*_*',
50  'keep *_hfprereco_*_*',
51  'keep *_hfreco_*_*',
52  'keep *_horeco_*_*',
53  'keep HBHERecHitsSorted_hbherecoMB_*_*',
54  'keep HORecHitsSorted_horecoMB_*_*',
55  'keep HFRecHitsSorted_hfrecoMB_*_*',
56  'keep ZDCDataFramesSorted_hcalDigis_*_*',
57  'keep ZDCDataFramesSorted_castorDigis_*_*',
58  'keep QIE10DataFrameHcalDataFrameContainer_hcalDigis_ZDC_*',
59  'keep ZDCRecHitsSorted_zdcreco_*_*')
60 )
61 RecoLocalCaloRECO.outputCommands.extend(RecoLocalCaloAOD.outputCommands)
62 RecoLocalCaloRECO.outputCommands.extend(ecalLocalRecoRECO.outputCommands)
63 phase2_hgcal.toModify( RecoLocalCaloRECO,
64  outputCommands = RecoLocalCaloRECO.outputCommands + ['keep *_hgcalMultiClusters_*_*',
65  'keep *_iterHGCalMultiClusters_*_*'])
66 
67 #FEVT content
68 RecoLocalCaloFEVT = cms.PSet(
69  outputCommands = cms.untracked.vstring('keep HBHERecHitsSorted_hbheprerecoMB_*_*',
70  'keep ZDCDataFramesSorted_*Digis_*_*',
71  'keep ZDCRecHitsSorted_*_*_*',
72  'keep HcalUnpackerReport_*_*_*')
73 )
74 RecoLocalCaloFEVT.outputCommands.extend(RecoLocalCaloRECO.outputCommands)
75 RecoLocalCaloFEVT.outputCommands.extend(ecalLocalRecoFEVT.outputCommands)
76 phase2_hgcal.toModify( RecoLocalCaloFEVT,
77  outputCommands = RecoLocalCaloFEVT.outputCommands + ['keep *_HGCalUncalibRecHit_*_*'])