import FWCore.ParameterSet.Config as cms

OutALCARECOEcalTrg_noDrop = cms.PSet(
    # put this if you have a filter
    SelectEvents = cms.untracked.PSet(
        SelectEvents = cms.vstring('pathALCARECOEcalTrg'),
    ),
    outputCommands = cms.untracked.vstring( 
        'keep CaloTowersSorted_towerMaker_*_*',
        'keep EBDigiCollection_ecalDigis_ebDigis_*',
        'keep EEDigiCollection_ecalDigis_eeDigis_*',
        'keep ESDCCHeaderBlocksSorted_ecalPreshowerDigis_*_*',
        'keep ESDigiCollection_ecalPreshowerDigis_*_*',
        'keep ESKCHIPBlocksSorted_ecalPreshowerDigis_*_*',
        'keep EcalRecHitsSorted_ecalPreshowerRecHit_EcalRecHitsES_*',
        'keep EcalRecHitsSorted_ecalRecHit_EcalRecHitsEB_*',
        'keep EcalRecHitsSorted_ecalRecHit_EcalRecHitsEE_*',
        'keep EcalRecHitsSorted_reducedEcalRecHitsEB_*_*',
        'keep EcalRecHitsSorted_reducedEcalRecHitsEE_*_*',
        'keep EcalRecHitsSorted_reducedEcalRecHitsES_*_*',
        'keep EcalTriggerPrimitiveDigisSorted_ecalDigis_EcalTriggerPrimitives_*',
        'keep EcalUncalibratedRecHitsSorted_ecalMultiFitUncalibRecHit_EcalUncalibRecHitsEB_*',
        'keep EcalUncalibratedRecHitsSorted_ecalMultiFitUncalibRecHit_EcalUncalibRecHitsEE_*',
        'keep FEDRawDataCollection_rawDataCollector_*_*',
        'keep L1GlobalTriggerReadoutRecord_gtDigis_*_*',
        'keep L1MuGMTCands_gtDigis_*_*',
        'keep L1MuGMTReadoutCollection_gtDigis_*_*',
        'keep L1MuRegionalCands_gtDigis_CSC_*',
        'keep L1MuRegionalCands_gtDigis_DT_*',
        'keep L1MuRegionalCands_gtDigis_RPCb_*',
        'keep L1MuRegionalCands_gtDigis_RPCf_*',
        'keep TrackingRecHitsOwned_electronGsfTracks_*_*',
        'keep TrackingRecHitsOwned_generalTracks_*_*',
        'keep TrajectorysToOnerecoGsfTracksAssociation_electronGsfTracks_*_*',
        'keep edmTriggerResults_TriggerResults_*_*',
        'keep floatedmValueMap_offlinePrimaryVerticesWithBS_*_*',
        'keep floats_generalTracks_MVAValues_*',
        'keep intedmValueMap_offlinePrimaryVerticesWithBS_*_*',
        'keep recoBeamSpot_offlineBeamSpot_*_*',
        'keep recoCaloClusters_cleanedHybridSuperClusters_hybridBarrelBasicClusters_*',
        'keep recoCaloClusters_hfEMClusters_*_*',
        'keep recoCaloClusters_hybridSuperClusters_hybridBarrelBasicClusters_*',
        'keep recoCaloClusters_hybridSuperClusters_uncleanOnlyHybridBarrelBasicClusters_*',
        'keep recoCaloClusters_multi5x5BasicClustersCleaned_multi5x5BarrelBasicClusters_*',
        'keep recoCaloClusters_multi5x5BasicClustersCleaned_multi5x5EndcapBasicClusters_*',
        'keep recoCaloClusters_multi5x5BasicClustersUncleaned_multi5x5BarrelBasicClusters_*',
        'keep recoCaloClusters_multi5x5BasicClustersUncleaned_multi5x5EndcapBasicClusters_*',
        'keep recoCaloClusters_multi5x5SuperClusters_multi5x5EndcapBasicClusters_*',
        'keep recoCaloClusters_multi5x5SuperClusters_uncleanOnlyMulti5x5EndcapBasicClusters_*',
        'keep recoCaloClusters_particleFlowEGamma_EBEEClusters_*',
        'keep recoCaloClusters_particleFlowEGamma_ESClusters_*',
        'keep recoCaloClusters_particleFlowSuperClusterECAL_particleFlowBasicClusterECALBarrel_*',
        'keep recoCaloClusters_particleFlowSuperClusterECAL_particleFlowBasicClusterECALEndcap_*',
        'keep recoCaloClusters_particleFlowSuperClusterECAL_particleFlowBasicClusterECALPreshower_*',
        'keep recoCaloClusters_uncleanedHybridSuperClusters_hybridBarrelBasicClusters_*',
        'keep recoElectronSeeds_electronMergedSeeds_*_*',
        'keep recoGsfElectronCores_gedGsfElectronCores_*_*',
        'keep recoGsfElectrons_gedGsfElectrons_*_*',
        'keep recoGsfTrackExtras_electronGsfTracks_*_*',
        'keep recoGsfTracks_electronGsfTracks_*_*',
        'keep recoSuperClusters_cleanedHybridSuperClusters_*_*',
        'keep recoSuperClusters_correctedHybridSuperClusters_*_*',
        'keep recoSuperClusters_correctedMulti5x5SuperClustersWithPreshower_*_*',
        'keep recoSuperClusters_hfEMClusters_*_*',
        'keep recoSuperClusters_hybridSuperClusters_*_*',
        'keep recoSuperClusters_hybridSuperClusters_uncleanOnlyHybridSuperClusters_*',
        'keep recoSuperClusters_multi5x5SuperClustersCleaned_multi5x5BarrelSuperClusters_*',
        'keep recoSuperClusters_multi5x5SuperClustersCleaned_multi5x5EndcapSuperClusters_*',
        'keep recoSuperClusters_multi5x5SuperClustersUncleaned_multi5x5BarrelSuperClusters_*',
        'keep recoSuperClusters_multi5x5SuperClustersUncleaned_multi5x5EndcapSuperClusters_*',
        'keep recoSuperClusters_multi5x5SuperClustersWithPreshower_*_*',
        'keep recoSuperClusters_multi5x5SuperClusters_multi5x5EndcapSuperClusters_*',
        'keep recoSuperClusters_multi5x5SuperClusters_uncleanOnlyMulti5x5EndcapSuperClusters_*',
        'keep recoSuperClusters_particleFlowEGamma_*_*',
        'keep recoSuperClusters_particleFlowSuperClusterECAL_particleFlowSuperClusterECALBarrel_*',
        'keep recoSuperClusters_particleFlowSuperClusterECAL_particleFlowSuperClusterECALEndcapWithPreshower_*',
        'keep recoSuperClusters_uncleanedHybridSuperClusters_*_*',
        'keep recoSuperClusters_uncleanedOnlyCorrectedHybridSuperClusters_*_*',
        'keep recoSuperClusters_uncleanedOnlyCorrectedMulti5x5SuperClustersWithPreshower_*_*',
        'keep recoSuperClusters_uncleanedOnlyMulti5x5SuperClustersWithPreshower_*_*',
        'keep recoTrackExtras_electronGsfTracks_*_*',
        'keep recoTrackExtras_generalTracks_*_*',
        'keep recoTracks_generalTracks_*_*',
        'keep recoVertexs_offlinePrimaryVerticesWithBS_*_*',
        'keep recoVertexsedmAssociation_offlinePrimaryVerticesWithBS_*_*',
        'keep uchars_generalTracks_QualityMasks_*',
        )
    )

import copy
OutALCARECOEcalTrg=copy.deepcopy(OutALCARECOEcalTrg_noDrop)
OutALCARECOEcalTrg.outputCommands.insert(0, "drop *")



