1 import FWCore.ParameterSet.Config
as cms
8 RecoLocalCaloFEVT = cms.PSet(
9 outputCommands = cms.untracked.vstring(
'keep *_hbhereco_*_*',
10 'keep *_hbheprereco_*_*',
11 'keep *_hfprereco_*_*',
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_*_*_*' 27 RecoLocalCaloRECO = cms.PSet(
28 outputCommands = cms.untracked.vstring(
'keep *_hbhereco_*_*',
29 'keep *_hbheprereco_*_*',
30 'keep *_hfprereco_*_*',
33 'keep HBHERecHitsSorted_hbherecoMB_*_*',
34 'keep HORecHitsSorted_horecoMB_*_*',
35 'keep HFRecHitsSorted_hfrecoMB_*_*',
37 'keep ZDCDataFramesSorted_hcalDigis_*_*',
38 'keep ZDCDataFramesSorted_castorDigis_*_*',
39 'keep QIE10DataFrameHcalDataFrameContainer_hcalDigis_ZDC_*',
40 'keep ZDCRecHitsSorted_zdcreco_*_*',
41 'keep *_reducedHcalRecHits_*_*',
42 'keep *_castorreco_*_*',
44 'keep HcalUnpackerReport_castorDigis_*_*',
45 'keep HcalUnpackerReport_hcalDigiAlCaMB_*_*',
46 'keep HcalUnpackerReport_hcalDigis_*_*' 50 RecoLocalCaloAOD = cms.PSet(
51 outputCommands = cms.untracked.vstring(
52 'keep *_castorreco_*_*',
53 'keep *_reducedHcalRecHits_*_*',
55 'keep HcalUnpackerReport_castorDigis_*_*',
56 'keep HcalUnpackerReport_hcalDigiAlCaMB_*_*',
57 'keep HcalUnpackerReport_hcalDigis_*_*' 60 RecoLocalCaloFEVT.outputCommands.extend(ecalLocalRecoFEVT.outputCommands)
61 RecoLocalCaloRECO.outputCommands.extend(ecalLocalRecoRECO.outputCommands)
62 RecoLocalCaloAOD.outputCommands.extend(ecalLocalRecoAOD.outputCommands)
66 era.toModify( o, outputCommands = o.outputCommands + commands )
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_*_*' 76 phase2_hgcal.toModify( RecoLocalCaloRECO, outputCommands = RecoLocalCaloRECO.outputCommands + [
'keep *_HGCalRecHit_*_*',
'keep *_hgcalLayerClusters_*_*'] )
78 phase2_hgcal.toModify( RecoLocalCaloAOD, outputCommands = RecoLocalCaloAOD.outputCommands + [
'keep *_HGCalRecHit_*_*',
'keep *_hgcalLayerClusters_*_*'] )
80 from Configuration.Eras.Modifier_pA_2016_cff
import pA_2016
81 pA_2016.toModify( RecoLocalCaloAOD.outputCommands,
82 func=
lambda outputCommands: outputCommands.extend([
'keep *_zdcreco_*_*',
83 'keep ZDCDataFramesSorted_hcalDigis_*_*',
84 'keep ZDCDataFramesSorted_castorDigis_*_*',
85 'keep QIE10DataFrameHcalDataFrameContainer_hcalDigis_ZDC_*' def _updateOutput(era, outputPSets, commands)