Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:24:19

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from RecoLocalCalo.Configuration.ecalLocalReco_EventContent_cff import *
0004 #
0005 # start with HCAL part
0006 #
0007 
0008 #AOD content
0009 RecoLocalCaloAOD = cms.PSet(
0010     outputCommands = cms.untracked.vstring(
0011     'keep *_castorreco_*_*',
0012     'keep *_reducedHcalRecHits_*_*',
0013     'keep HcalUnpackerReport_castorDigis_*_*',
0014     'keep HcalUnpackerReport_hcalDigiAlCaMB_*_*',
0015     'keep HcalUnpackerReport_hcalDigis_*_*')
0016 )
0017 RecoLocalCaloAOD.outputCommands.extend(ecalLocalRecoAOD.outputCommands)
0018 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
0019 from Configuration.Eras.Modifier_phase2_hfnose_cff import phase2_hfnose
0020 from Configuration.Eras.Modifier_pA_2016_cff import pA_2016
0021 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
0022 # don't modify AOD for HGCal yet, need "reduced" rechits collection first (i.e. requires reconstruction)
0023 phase2_hgcal.toModify( RecoLocalCaloAOD, 
0024     outputCommands = RecoLocalCaloAOD.outputCommands + ['keep *_HGCalRecHit_*_*',
0025                                                         'keep recoCaloClusters_hgcalLayerClusters_*_*',
0026                                                         'keep *_hgcalLayerClusters_timeLayerCluster_*',
0027                                                         'keep *_hgcalLayerClusters_InitialLayerClustersMask_*'])
0028 phase2_hfnose.toModify( RecoLocalCaloAOD, 
0029     outputCommands = RecoLocalCaloAOD.outputCommands + ['keep recoCaloClusters_hgcalLayerClustersHFNose_*_*',
0030                                                         'keep *_hgcalLayerClustersHFNose_timeLayerCluster_*',
0031                                                         'keep *_hgcalLayerClustersHFNose_InitialLayerClustersMask_*'])
0032 (pA_2016|pp_on_AA).toModify( RecoLocalCaloAOD.outputCommands,
0033         func=lambda outputCommands: outputCommands.extend(['keep *_zdcreco_*_*',
0034                                                            'keep ZDCDataFramesSorted_hcalDigis_*_*',
0035                                                            'keep ZDCDataFramesSorted_castorDigis_*_*',
0036                                                            'keep QIE10DataFrameHcalDataFrameContainer_hcalDigis_ZDC_*'])
0037         )
0038 from Configuration.ProcessModifiers.egamma_lowPt_exclusive_cff import egamma_lowPt_exclusive
0039 egamma_lowPt_exclusive.toModify( RecoLocalCaloAOD, 
0040     outputCommands = RecoLocalCaloAOD.outputCommands + ['keep *_towerMaker_*_*',
0041                                                         'keep *_zdcreco_*_*',
0042                                                         'keep ZDCDataFramesSorted_hcalDigis_*_*',
0043                                                         'keep ZDCDataFramesSorted_castorDigis_*_*',
0044                                                         'keep QIE10DataFrameHcalDataFrameContainer_hcalDigis_ZDC_*'])
0045 
0046 #RECO content
0047 RecoLocalCaloRECO = cms.PSet(
0048     outputCommands = cms.untracked.vstring('keep *_hbhereco_*_*',
0049                                            'keep *_hbheprereco_*_*',
0050                                            'keep *_hfprereco_*_*',
0051                                            'keep *_hfreco_*_*',
0052                                            'keep *_horeco_*_*',
0053                                            'keep HBHERecHitsSorted_hbherecoMB_*_*',
0054                                            'keep HORecHitsSorted_horecoMB_*_*',
0055                                            'keep HFRecHitsSorted_hfrecoMB_*_*',
0056                                            'keep ZDCDataFramesSorted_hcalDigis_*_*',
0057                                            'keep ZDCDataFramesSorted_castorDigis_*_*',
0058                                            'keep QIE10DataFrameHcalDataFrameContainer_hcalDigis_ZDC_*',
0059                                            'keep ZDCRecHitsSorted_zdcreco_*_*')
0060 )
0061 RecoLocalCaloRECO.outputCommands.extend(RecoLocalCaloAOD.outputCommands)
0062 RecoLocalCaloRECO.outputCommands.extend(ecalLocalRecoRECO.outputCommands)
0063 phase2_hgcal.toModify( RecoLocalCaloRECO, 
0064     outputCommands = RecoLocalCaloRECO.outputCommands + ['keep *_hgcalMultiClusters_*_*',
0065                                                          'keep *_iterHGCalMultiClusters_*_*'])
0066 
0067 #FEVT content
0068 RecoLocalCaloFEVT = cms.PSet(
0069     outputCommands = cms.untracked.vstring('keep HBHERecHitsSorted_hbheprerecoMB_*_*',
0070                                            'keep ZDCDataFramesSorted_*Digis_*_*',
0071                                            'keep ZDCRecHitsSorted_*_*_*',
0072                                            'keep HcalUnpackerReport_*_*_*')
0073 )
0074 RecoLocalCaloFEVT.outputCommands.extend(RecoLocalCaloRECO.outputCommands)
0075 RecoLocalCaloFEVT.outputCommands.extend(ecalLocalRecoFEVT.outputCommands)
0076 phase2_hgcal.toModify( RecoLocalCaloFEVT, 
0077     outputCommands = RecoLocalCaloFEVT.outputCommands + ['keep *_HGCalUncalibRecHit_*_*'])