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