Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-08-10 22:49:47

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # AOD content
0004 RecoEgammaAOD = cms.PSet(
0005     outputCommands = cms.untracked.vstring(
0006         'keep recoGsfElectronCores_gsfElectronCores_*_*', 
0007         'keep recoGsfElectronCores_gedGsfElectronCores_*_*',
0008         'keep recoGsfElectrons_gsfElectrons_*_*', 
0009         'keep recoGsfElectrons_gedGsfElectrons_*_*', 
0010         'keep recoGsfElectronCores_uncleanedOnlyGsfElectronCores_*_*', 
0011         'keep recoGsfElectrons_uncleanedOnlyGsfElectrons_*_*', 
0012         'keep floatedmValueMap_eidRobustLoose_*_*',
0013         'keep floatedmValueMap_eidRobustTight_*_*',
0014         'keep floatedmValueMap_eidRobustHighEnergy_*_*',
0015         'keep floatedmValueMap_eidLoose_*_*',
0016         'keep floatedmValueMap_eidTight_*_*',
0017         'keep *_egmGedGsfElectronPFIsolation_*_*',
0018         'keep recoPhotonCores_gedPhotonCore_*_*',
0019         'keep recoPhotons_gedPhotons_*_*',
0020         'keep *_particleBasedIsolation_*_*',
0021         'keep recoPhotonCores_photonCore_*_*',
0022         'keep recoPhotons_photons_*_*', 
0023         'keep recoPhotonCores_ootPhotonCore_*_*',
0024         'keep recoPhotons_ootPhotons_*_*',
0025         'keep recoConversions_conversions_*_*',
0026         'drop recoConversions_conversions_uncleanedConversions_*',
0027         'keep recoConversions_mustacheConversions_*_*',
0028         'keep *_gsfTracksOpenConversions_*_*',
0029         'keep recoConversions_allConversions_*_*',
0030         'keep recoConversions_allConversionsOldEG_*_*',
0031         'keep recoTracks_ckfOutInTracksFromConversions_*_*', 
0032         'keep recoTracks_ckfInOutTracksFromConversions_*_*',
0033         'keep recoConversions_uncleanedOnlyAllConversions_*_*',
0034         'keep recoTracks_uncleanedOnlyCkfOutInTracksFromConversions_*_*', 
0035         'keep recoTracks_uncleanedOnlyCkfInOutTracksFromConversions_*_*',
0036         'keep *_PhotonIDProd_*_*',
0037         'keep *_PhotonIDProdGED_*_*',
0038         'keep *_hfRecoEcalCandidate_*_*',
0039         'keep *_hfEMClusters_*_*',
0040         'keep *_gedGsfElectronCores_*_*',
0041         'keep *_gedGsfElectrons_*_*',
0042         'keep recoCaloClusters_lowPtGsfElectronSuperClusters_*_*',
0043         'keep recoGsfElectrons_lowPtGsfElectrons_*_*',
0044         'keep recoGsfElectronCores_lowPtGsfElectronCores_*_*',
0045         'keep recoGsfTracks_lowPtGsfEleGsfTracks_*_*',
0046         'keep *_lowPtGsfToTrackLinks_*_*',
0047         'keep recoSuperClusters_lowPtGsfElectronSuperClusters_*_*',
0048         'keep floatedmValueMap_lowPtGsfElectronSeedValueMaps_*_*',
0049         'keep floatedmValueMap_rekeyLowPtGsfElectronSeedValueMaps_*_*',
0050         'keep floatedmValueMap_lowPtGsfElectronID_*_*')
0051 )
0052 # mods for HGCAL
0053 _phase2_hgcal_RecoEgamma_tokeep = [ 'keep *_ecalDrivenGsfElectronCores_*_*',
0054                                     'keep *_ecalDrivenGsfElectrons_*_*',
0055                                     'keep *_ecalDrivenGsfElectronCoresHGC_*_*',
0056                                     'keep *_ecalDrivenGsfElectronsHGC_*_*',
0057                                     'keep *_photonCoreHGC_*_*',
0058                                     'keep *_photonsHGC_*_*']
0059 
0060 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
0061 phase2_hgcal.toModify( RecoEgammaAOD,  
0062     outputCommands = RecoEgammaAOD.outputCommands + _phase2_hgcal_RecoEgamma_tokeep )
0063 
0064 from Configuration.Eras.Modifier_pA_2016_cff import pA_2016
0065 from Configuration.Eras.Modifier_peripheralPbPb_cff import peripheralPbPb
0066 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
0067 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
0068 from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
0069 #HI-specific products needed in pp scenario special configurations
0070 for e in [pA_2016, peripheralPbPb, pp_on_AA, pp_on_XeXe_2017, ppRef_2017]:
0071     e.toModify( RecoEgammaAOD.outputCommands, 
0072                 func=lambda outputCommands: outputCommands.extend(['keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppGED_*_*',
0073                                                                    'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerpp_*_*',
0074                                                                    'keep recoHIPhotonIsolationedmValueMap_photonIsolationHIProducerppIsland_*_*',
0075                                                                    'keep recoPhotonCores_islandPhotonCore_*_*',
0076                                                                    'keep recoPhotons_islandPhotons_*_*'])
0077                )
0078 
0079 # RECO content
0080 RecoEgammaRECO = cms.PSet(
0081     outputCommands = cms.untracked.vstring(
0082         'keep *_gedPhotonCore_*_*',
0083         'keep *_gedPhotons_*_*',
0084         'keep recoPhotons_mustachePhotons_*_*',
0085         'keep recoPhotonCores_mustachePhotonCore_*_*',
0086         'keep recoTrackExtras_ckfOutInTracksFromConversions_*_*', 
0087         'keep recoTrackExtras_ckfInOutTracksFromConversions_*_*', 
0088         'keep TrackingRecHitsOwned_ckfOutInTracksFromConversions_*_*', 
0089         'keep TrackingRecHitsOwned_ckfInOutTracksFromConversions_*_*',
0090         'keep recoTrackExtras_uncleanedOnlyCkfOutInTracksFromConversions_*_*', 
0091         'keep recoTrackExtras_uncleanedOnlyCkfInOutTracksFromConversions_*_*', 
0092         'keep TrackingRecHitsOwned_uncleanedOnlyCkfOutInTracksFromConversions_*_*', 
0093         'keep TrackingRecHitsOwned_uncleanedOnlyCkfInOutTracksFromConversions_*_*')                                                                 
0094 )
0095 RecoEgammaRECO.outputCommands.extend(RecoEgammaAOD.outputCommands)
0096 
0097 # Full Event content 
0098 RecoEgammaFEVT = cms.PSet(
0099     outputCommands = cms.untracked.vstring(
0100         'keep *_gsfElectronCores_*_*', 
0101         'keep *_gsfElectrons_*_*', 
0102         'keep *_uncleanedOnlyGsfElectronCores_*_*', 
0103         'keep *_uncleanedOnlyGsfElectrons_*_*', 
0104         'keep *_eidRobustLoose_*_*',
0105         'keep *_eidRobustTight_*_*',
0106         'keep *_eidRobustHighEnergy_*_*',
0107         'keep *_eidLoose_*_*',
0108         'keep *_eidTight_*_*',
0109         'keep *_egmGedGsfElectronPFPileUpIsolation_*_*',
0110         'keep *_egmGedGsfElectronPFNoPileUpIsolation_*_*',
0111         'keep *_egmGsfElectronIDs_*_*', 
0112         'keep *_egmPhotonIDs_*_*',
0113         'keep *_conversions_*_*',
0114         'drop *_conversions_uncleanedConversions_*',
0115         'keep *_mustacheConversions_*_*',
0116         'keep *_gedPhotonCore_*_*',
0117         'keep *_gedPhotons_*_*',
0118         'keep *_photonCore_*_*',
0119         'keep *_photons_*_*',
0120         'keep *_mustachePhotonCore_*_*',
0121         'keep *_mustachePhotons_*_*',
0122         'keep *_ootPhotonCore_*_*',
0123         'keep *_ootPhotons_*_*',
0124         'keep *_allConversions_*_*',
0125         'keep *_allConversionsOldEG_*_*',
0126         'keep *_ckfOutInTracksFromConversions_*_*', 
0127         'keep *_ckfInOutTracksFromConversions_*_*',
0128         'keep *_uncleanedOnlyAllConversions_*_*',
0129         'keep *_uncleanedOnlyCkfOutInTracksFromConversions_*_*', 
0130         'keep *_uncleanedOnlyCkfInOutTracksFromConversions_*_*')                                                                 
0131 )
0132 RecoEgammaFEVT.outputCommands.extend(RecoEgammaRECO.outputCommands)