Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:24:37

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # AOD content
0004 RecoEcalAOD = cms.PSet(
0005     outputCommands = cms.untracked.vstring(
0006         #selected digis
0007         'keep *_selectDigi_*_*',
0008     # Hits
0009         'keep EcalRecHitsSorted_reducedEcalRecHitsEB_*_*',
0010         'keep EcalRecHitsSorted_reducedEcalRecHitsEE_*_*',
0011         'keep EcalRecHitsSorted_reducedEcalRecHitsES_*_*',
0012     # Barrel clusters (uncleaned only in separate collections)
0013         'keep recoSuperClusters_correctedHybridSuperClusters_*_*',
0014         'keep recoCaloClusters_hybridSuperClusters_*_*',
0015         'keep recoSuperClusters_hybridSuperClusters_uncleanOnlyHybridSuperClusters_*',
0016     # Endcap clusters   
0017     'keep recoCaloClusters_multi5x5SuperClusters_multi5x5EndcapBasicClusters_*',
0018         'keep recoSuperClusters_correctedMulti5x5SuperClustersWithPreshower_*_*',
0019     # Preshower clusters
0020         'keep recoPreshowerClusters_multi5x5SuperClustersWithPreshower_*_*', 
0021         'keep recoPreshowerClusterShapes_multi5x5PreshowerClusterShape_*_*',
0022         # Particle Flow superclusters (only SuperCluster and CaloCluster outputs, not association map from PFClusters)
0023         'keep recoSuperClusters_particleFlowSuperClusterECAL_*_*',
0024         'keep recoCaloClusters_particleFlowSuperClusterECAL_*_*',
0025         'keep recoSuperClusters_particleFlowSuperClusterOOTECAL_*_*',
0026         'keep recoCaloClusters_particleFlowSuperClusterOOTECAL_*_*')
0027 )
0028 _phase2_hgcal_scCommandsAOD = ['keep recoSuperClusters_particleFlowSuperClusterHGCal__*',
0029                                'keep recoCaloClusters_particleFlowSuperClusterHGCal__*']
0030 
0031 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
0032 phase2_hgcal.toModify(RecoEcalAOD,
0033     outputCommands = RecoEcalAOD.outputCommands + _phase2_hgcal_scCommandsAOD)
0034 
0035 from Configuration.Eras.Modifier_pA_2016_cff import pA_2016
0036 from Configuration.Eras.Modifier_peripheralPbPb_cff import peripheralPbPb
0037 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
0038 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
0039 from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
0040 #HI-specific products needed in pp scenario special configurations
0041 for e in [pA_2016, peripheralPbPb, pp_on_AA, pp_on_XeXe_2017, ppRef_2017]:
0042     e.toModify( RecoEcalAOD.outputCommands, 
0043                 func=lambda outputCommands: outputCommands.extend(['keep recoSuperClusters_correctedIslandBarrelSuperClusters_*_*',
0044                                                                    'keep recoSuperClusters_correctedIslandEndcapSuperClusters_*_*'])
0045               )
0046 
0047 # RECO content
0048 RecoEcalRECO = cms.PSet(
0049     outputCommands = cms.untracked.vstring(
0050     # Barrel clusters
0051         'keep *_hybridSuperClusters_*_*',
0052         'keep recoSuperClusters_correctedHybridSuperClusters_*_*',
0053     # Endcap clusters
0054         'keep *_multi5x5SuperClusters_*_*',
0055         'keep recoSuperClusters_multi5x5SuperClustersWithPreshower_*_*',
0056         # Particle Flow superclusters
0057         'keep *_particleFlowSuperClusterECAL_*_*',
0058         'keep *_particleFlowSuperClusterOOTECAL_*_*',
0059     # DROP statements 
0060         'drop recoClusterShapes_*_*_*', 
0061         'drop recoBasicClustersToOnerecoClusterShapesAssociation_*_*_*',
0062         'drop recoBasicClusters_multi5x5BasicClusters_multi5x5BarrelBasicClusters_*',
0063         'drop recoSuperClusters_multi5x5SuperClusters_multi5x5BarrelSuperClusters_*')
0064 )
0065 RecoEcalRECO.outputCommands.extend(RecoEcalAOD.outputCommands)
0066 _phase2_hgcal_scCommands = ['keep *_particleFlowSuperClusterHGCal_*_*']
0067 phase2_hgcal.toModify(RecoEcalRECO,
0068     outputCommands = RecoEcalRECO.outputCommands + _phase2_hgcal_scCommands)
0069 
0070 for e in [pA_2016, peripheralPbPb, pp_on_AA, pp_on_XeXe_2017, ppRef_2017]:
0071     e.toModify( RecoEcalRECO.outputCommands,
0072                 func=lambda outputCommands: outputCommands.extend(['keep recoCaloClusters_islandBasicClusters_*_*'])
0073               )
0074 
0075 # Full Event content 
0076 RecoEcalFEVT = cms.PSet(
0077     outputCommands = cms.untracked.vstring(
0078     # Hits
0079     'keep *_reducedEcalRecHitsEB_*_*',
0080         'keep *_reducedEcalRecHitsEE_*_*',
0081         'keep *_reducedEcalRecHitsES_*_*', 
0082         'keep *_interestingEcalDetId*_*_*', 
0083         'keep *_ecalWeightUncalibRecHit_*_*', 
0084         'keep *_ecalPreshowerRecHit_*_*', 
0085     # Barrel clusters
0086         'keep *_correctedHybridSuperClusters_*_*',
0087     # Endcap clusters
0088         'keep *_multi5x5*_*_*')
0089 )
0090 RecoEcalFEVT.outputCommands.extend(RecoEcalRECO.outputCommands)