Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-05-10 05:40:48

0001 # Auto generated configuration file
0002 # using: 
0003 # Revision: 1.19 
0004 # Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v 
0005 # with command line options: skims -s SKIM:EXOHighMET --dasoption=-limit 3 --dasquery=file dataset=/MET/Run2018A-12Nov2019_UL2018-v3/AOD -n 10000 --conditions 102X_dataRun2_v14 --python_filename=test_EXOHighMET_SKIM_METPD.py --processName=SKIMEXOHighMET --no_exec
0006 import FWCore.ParameterSet.Config as cms
0007 import FWCore.ParameterSet.VarParsing as VarParsing
0008 
0009 options = VarParsing.VarParsing('analysis')
0010 options.register('runOnData', True, VarParsing.VarParsing.multiplicity.singleton, VarParsing.VarParsing.varType.bool, 'Run on MET data or QCD MC')
0011 options.parseArguments()
0012 
0013 process = cms.Process('SKIMEXOHighMET')
0014 
0015 # import of standard configurations
0016 process.load('Configuration.StandardSequences.Services_cff')
0017 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0018 process.load('FWCore.MessageService.MessageLogger_cfi')
0019 process.load('Configuration.EventContent.EventContent_cff')
0020 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0021 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0022 process.load('Configuration.StandardSequences.MagneticField_cff')
0023 process.load('Configuration.StandardSequences.Skims_cff')
0024 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0025 
0026 process.maxEvents = cms.untracked.PSet(
0027     input = cms.untracked.int32(10000),
0028     output = cms.optional.untracked.allowed(cms.int32,cms.PSet)
0029 )
0030 
0031 # Input source
0032 if options.runOnData is True:
0033     fileList = ['/store/data/Run2018A/MET/AOD/12Nov2019_UL2018-v3/120000/008A1B54-2CF6-D64B-8CCE-DBD79983CF0B.root']
0034 else:
0035     fileList = [
0036         '/store/relval/CMSSW_12_3_0_pre6/RelValQCD_Pt_1800_2400_14/GEN-SIM-RECO/123X_mcRun3_2021_realistic_v11-v2/10000/649f3446-1698-4910-b879-9a6d94d62a9b.root',
0037         '/store/relval/CMSSW_12_3_0_pre6/RelValQCD_Pt_1800_2400_14/GEN-SIM-RECO/123X_mcRun3_2021_realistic_v11-v2/10000/aa515779-dad9-4994-b7d2-d672a7c8938a.root',
0038         '/store/relval/CMSSW_12_3_0_pre6/RelValQCD_Pt_1800_2400_14/GEN-SIM-RECO/123X_mcRun3_2021_realistic_v11-v2/10000/b7315dce-732e-4ec7-b137-ee3bafff1cd6.root',
0039         '/store/relval/CMSSW_12_3_0_pre6/RelValQCD_Pt_1800_2400_14/GEN-SIM-RECO/123X_mcRun3_2021_realistic_v11-v2/10000/df8bd2c1-1e45-479d-9287-2d40fecc25d8.root'
0040     ]
0041     
0042 process.source = cms.Source("PoolSource",
0043     fileNames = cms.untracked.vstring(fileList),
0044     secondaryFileNames = cms.untracked.vstring()
0045 )
0046 
0047 process.options = cms.untracked.PSet(
0048     FailPath = cms.untracked.vstring(),
0049     IgnoreCompletely = cms.untracked.vstring(),
0050     Rethrow = cms.untracked.vstring(),
0051     SkipEvent = cms.untracked.vstring(),
0052     accelerators = cms.untracked.vstring('*'),
0053     allowUnscheduled = cms.obsolete.untracked.bool,
0054     canDeleteEarly = cms.untracked.vstring(),
0055     deleteNonConsumedUnscheduledModules = cms.untracked.bool(True),
0056     dumpOptions = cms.untracked.bool(False),
0057     emptyRunLumiMode = cms.obsolete.untracked.string,
0058     eventSetup = cms.untracked.PSet(
0059         forceNumberOfConcurrentIOVs = cms.untracked.PSet(
0060             allowAnyLabel_=cms.required.untracked.uint32
0061         ),
0062         numberOfConcurrentIOVs = cms.untracked.uint32(0)
0063     ),
0064     fileMode = cms.untracked.string('FULLMERGE'),
0065     forceEventSetupCacheClearOnNewRun = cms.untracked.bool(False),
0066     makeTriggerResults = cms.obsolete.untracked.bool,
0067     numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(0),
0068     numberOfConcurrentRuns = cms.untracked.uint32(1),
0069     numberOfStreams = cms.untracked.uint32(0),
0070     numberOfThreads = cms.untracked.uint32(1),
0071     printDependencies = cms.untracked.bool(False),
0072     sizeOfStackForThreadsInKB = cms.optional.untracked.uint32,
0073     throwIfIllegalParameter = cms.untracked.bool(True),
0074     wantSummary = cms.untracked.bool(False)
0075 )
0076 
0077 # Production Info
0078 process.configurationMetadata = cms.untracked.PSet(
0079     annotation = cms.untracked.string('skims nevts:10000'),
0080     name = cms.untracked.string('Applications'),
0081     version = cms.untracked.string('$Revision: 1.19 $')
0082 )
0083 
0084 # Output definition
0085 
0086 process.RECOSIMoutput = cms.OutputModule("PoolOutputModule",
0087     dataset = cms.untracked.PSet(
0088         dataTier = cms.untracked.string(''),
0089         filterName = cms.untracked.string('')
0090     ),
0091     fileName = cms.untracked.string('skims_SKIM.root'),
0092     outputCommands = process.RECOSIMEventContent.outputCommands,
0093     splitLevel = cms.untracked.int32(0)
0094 )
0095 
0096 # Additional output definition
0097 process.SKIMStreamEXOHighMET = cms.OutputModule("PoolOutputModule",
0098     SelectEvents = cms.untracked.PSet(
0099         SelectEvents = cms.vstring('EXOHighMETPath')
0100     ),
0101     dataset = cms.untracked.PSet(
0102         dataTier = cms.untracked.string('RAW-RECO'),
0103         filterName = cms.untracked.string('EXOHighMET')
0104     ),
0105     eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
0106     fileName = cms.untracked.string('EXOHighMET.root'),
0107     outputCommands = cms.untracked.vstring( (
0108         'drop *',
0109         'drop *',
0110         'keep  FEDRawDataCollection_rawDataCollector_*_*',
0111         'keep  FEDRawDataCollection_source_*_*',
0112         'keep  FEDRawDataCollection_rawDataCollector_*_*',
0113         'keep  FEDRawDataCollection_source_*_*',
0114         'drop *_hlt*_*_*',
0115         'keep FEDRawDataCollection_rawDataCollector_*_*',
0116         'keep FEDRawDataCollection_source_*_*',
0117         'keep GlobalObjectMapRecord_hltGtStage2ObjectMap_*_*',
0118         'keep edmTriggerResults_*_*_*',
0119         'keep triggerTriggerEvent_*_*_*',
0120         'keep *_hltFEDSelectorL1_*_*',
0121         'keep *_hltScoutingEgammaPacker_*_*',
0122         'keep *_hltScoutingMuonPacker_*_*',
0123         'keep *_hltScoutingPFPacker_*_*',
0124         'keep *_hltScoutingPrimaryVertexPacker_*_*',
0125         'keep *_hltScoutingTrackPacker_*_*',
0126         'keep edmTriggerResults_*_*_*',
0127         'keep DetIdedmEDCollection_siStripDigis_*_*',
0128         'keep DetIdedmEDCollection_siPixelDigis_*_*',
0129         'keep PixelFEDChanneledmNewDetSetVector_siPixelDigis_*_*',
0130         'keep *_siPixelClusters_*_*',
0131         'keep *_siStripClusters_*_*',
0132         'keep ClusterSummary_clusterSummaryProducer_*_*',
0133         'keep *_dt1DRecHits_*_*',
0134         'keep *_dt1DCosmicRecHits_*_*',
0135         'keep *_csc2DRecHits_*_*',
0136         'keep *_dt4DSegments_*_*',
0137         'keep *_dt4DCosmicSegments_*_*',
0138         'keep *_cscSegments_*_*',
0139         'keep *_rpcRecHits_*_*',
0140         'keep *_hbhereco_*_*',
0141         'keep *_hbheprereco_*_*',
0142         'keep *_hfprereco_*_*',
0143         'keep *_hfreco_*_*',
0144         'keep *_horeco_*_*',
0145         'keep HBHERecHitsSorted_hbherecoMB_*_*',
0146         'keep HORecHitsSorted_horecoMB_*_*',
0147         'keep HFRecHitsSorted_hfrecoMB_*_*',
0148         'keep ZDCDataFramesSorted_hcalDigis_*_*',
0149         'keep ZDCDataFramesSorted_castorDigis_*_*',
0150         'keep QIE10DataFrameHcalDataFrameContainer_hcalDigis_ZDC_*',
0151         'keep ZDCRecHitsSorted_zdcreco_*_*',
0152         'keep *_castorreco_*_*',
0153         'keep *_reducedHcalRecHits_*_*',
0154         'keep HcalUnpackerReport_castorDigis_*_*',
0155         'keep HcalUnpackerReport_hcalDigiAlCaMB_*_*',
0156         'keep HcalUnpackerReport_hcalDigis_*_*',
0157         'keep *_ecalPreshowerRecHit_*_*',
0158         'keep *_ecalRecHit_*_*',
0159         'keep *_ecalCompactTrigPrim_*_*',
0160         'keep *_ecalTPSkim_*_*',
0161         'keep EBSrFlagsSorted_ecalDigis__*',
0162         'keep EESrFlagsSorted_ecalDigis__*',
0163         'keep *_hybridSuperClusters_*_*',
0164         'keep recoSuperClusters_correctedHybridSuperClusters_*_*',
0165         'keep *_multi5x5SuperClusters_*_*',
0166         'keep recoSuperClusters_multi5x5SuperClustersWithPreshower_*_*',
0167         'keep *_particleFlowSuperClusterECAL_*_*',
0168         'keep *_particleFlowSuperClusterOOTECAL_*_*',
0169         'drop recoClusterShapes_*_*_*',
0170         'drop recoBasicClustersToOnerecoClusterShapesAssociation_*_*_*',
0171         'drop recoBasicClusters_multi5x5BasicClusters_multi5x5BarrelBasicClusters_*',
0172         'drop recoSuperClusters_multi5x5SuperClusters_multi5x5BarrelSuperClusters_*',
0173         'keep *_selectDigi_*_*',
0174         'keep EcalRecHitsSorted_reducedEcalRecHitsEB_*_*',
0175         'keep EcalRecHitsSorted_reducedEcalRecHitsEE_*_*',
0176         'keep EcalRecHitsSorted_reducedEcalRecHitsES_*_*',
0177         'keep recoSuperClusters_correctedHybridSuperClusters_*_*',
0178         'keep recoCaloClusters_hybridSuperClusters_*_*',
0179         'keep recoSuperClusters_hybridSuperClusters_uncleanOnlyHybridSuperClusters_*',
0180         'keep recoCaloClusters_multi5x5SuperClusters_multi5x5EndcapBasicClusters_*',
0181         'keep recoSuperClusters_correctedMulti5x5SuperClustersWithPreshower_*_*',
0182         'keep recoPreshowerClusters_multi5x5SuperClustersWithPreshower_*_*',
0183         'keep recoPreshowerClusterShapes_multi5x5PreshowerClusterShape_*_*',
0184         'keep recoSuperClusters_particleFlowSuperClusterECAL_*_*',
0185         'keep recoCaloClusters_particleFlowSuperClusterECAL_*_*',
0186         'keep recoSuperClusters_particleFlowSuperClusterOOTECAL_*_*',
0187         'keep recoCaloClusters_particleFlowSuperClusterOOTECAL_*_*',
0188         'keep *_CkfElectronCandidates_*_*',
0189         'keep *_GsfGlobalElectronTest_*_*',
0190         'keep *_electronMergedSeeds_*_*',
0191         'keep recoGsfTrackExtras_electronGsfTracks_*_*',
0192         'keep recoTrackExtras_electronGsfTracks_*_*',
0193         'keep TrackingRecHitsOwned_electronGsfTracks_*_*',
0194         'keep recoTracks_GsfGlobalElectronTest_*_*',
0195         'keep recoGsfTracks_electronGsfTracks_*_*',
0196         'keep recoTrackExtras_generalTracks_*_*',
0197         'keep TrackingRecHitsOwned_generalTracks_*_*',
0198         'keep TrackingRecHitsOwned_extraFromSeeds_*_*',
0199         'keep uints_extraFromSeeds_*_*',
0200         'keep recoTrackExtras_beamhaloTracks_*_*',
0201         'keep TrackingRecHitsOwned_beamhaloTracks_*_*',
0202         'keep recoTrackExtras_conversionStepTracks_*_*',
0203         'keep TrackingRecHitsOwned_conversionStepTracks_*_*',
0204         'keep *_ctfPixelLess_*_*',
0205         'keep *_dedxTruncated40_*_*',
0206         'keep recoTracks_generalTracks_*_*',
0207         'keep recoTracks_conversionStepTracks_*_*',
0208         'keep recoTracks_beamhaloTracks_*_*',
0209         'keep recoTracks_ctfPixelLess_*_*',
0210         'keep *_dedxHarmonic2_*_*',
0211         'keep *_dedxPixelHarmonic2_*_*',
0212         'keep *_dedxHitInfo_*_*',
0213         'keep *_trackExtrapolator_*_*',
0214         'keep *_generalTracks_MVAValues_*',
0215         'keep *_generalTracks_MVAVals_*',
0216         'keep *_ak4CaloJets_*_*',
0217         'keep *_ak4PFJets_*_*',
0218         'keep *_ak4TrackJets_*_*',
0219         'keep recoRecoChargedRefCandidates_trackRefsForJets_*_*',
0220         'keep *_towerMaker_*_*',
0221         'keep *_ak4JetTracksAssociatorAtCaloFace_*_*',
0222         'keep *_ak5CastorJets_*_*',
0223         'keep *_ak7CastorJets_*_*',
0224         'keep recoCaloJets_ak4CaloJets_*_*',
0225         'keep *_ak4CaloJets_rho_*',
0226         'keep *_ak4CaloJets_sigma_*',
0227         'keep *_ak4PFJetsCHS_*_*',
0228         'keep floatedmValueMap_puppi_*_*',
0229         'keep *_ak4PFJetsPuppi_*_*',
0230         'keep *_ak8PFJetsPuppi_*_*',
0231         'keep *_ak8PFJetsPuppiSoftDrop_*_*',
0232         'keep recoPFJets_ak4PFJets_*_*',
0233         'keep *_ak4PFJets_rho_*',
0234         'keep *_ak4PFJets_sigma_*',
0235         'keep *_JetPlusTrackZSPCorJetAntiKt4_*_*',
0236         'keep *_caloTowers_*_*',
0237         'keep *_CastorTowerReco_*_*',
0238         'keep *_ak4JetTracksAssociatorAtVertex_*_*',
0239         'keep *_ak4JetTracksAssociatorAtVertexPF_*_*',
0240         'keep *_ak4JetTracksAssociatorExplicit_*_*',
0241         'keep *_ak4JetExtender_*_*',
0242         'keep *_ak4JetID_*_*',
0243         'keep recoBasicJets_ak5CastorJets_*_*',
0244         'keep *_ak5CastorJets_rho_*',
0245         'keep *_ak5CastorJets_sigma_*',
0246         'keep *_ak5CastorJetID_*_*',
0247         'keep recoBasicJets_ak7CastorJets_*_*',
0248         'keep *_ak7CastorJets_rho_*',
0249         'keep *_ak7CastorJets_sigma_*',
0250         'keep *_ak7CastorJetID_*_*',
0251         'keep *_fixedGridRhoAll_*_*',
0252         'keep *_fixedGridRhoFastjetAll_*_*',
0253         'keep *_fixedGridRhoFastjetAllTmp_*_*',
0254         'keep *_fixedGridRhoFastjetCentral_*_*',
0255         'keep *_fixedGridRhoFastjetAllCalo_*_*',
0256         'keep *_fixedGridRhoFastjetCentralCalo_*_*',
0257         'keep *_fixedGridRhoFastjetCentralChargedPileUp_*_*',
0258         'keep *_fixedGridRhoFastjetCentralNeutral_*_*',
0259         'keep *_ak8PFJetsPuppiSoftDropMass_*_*',
0260         'keep recoHcalNoiseRBXs_hcalnoise_*_*',
0261         'keep recoEcalHaloData_EcalHaloData_*_*',
0262         'keep recoHcalHaloData_HcalHaloData_*_*',
0263         'keep recoCaloMETs_caloMet_*_*',
0264         'keep recoCaloMETs_caloMetBE_*_*',
0265         'keep recoCaloMETs_caloMetBEFO_*_*',
0266         'keep recoCaloMETs_caloMetM_*_*',
0267         'keep recoPFMETs_pfMet_*_*',
0268         'keep recoPFMETs_pfChMet_*_*',
0269         'keep floatedmValueMap_puppiNoLep_*_*',
0270         'keep recoPFMETs_pfMetPuppi_*_*',
0271         'keep recoMuonMETCorrectionDataedmValueMap_muonMETValueMapProducer_*_*',
0272         'keep HcalNoiseSummary_hcalnoise_*_*',
0273         'keep recoGlobalHaloData_GlobalHaloData_*_*',
0274         'keep recoCSCHaloData_CSCHaloData_*_*',
0275         'keep recoBeamHaloSummary_BeamHaloSummary_*_*',
0276         'keep *_MuonSeed_*_*',
0277         'keep *_ancientMuonSeed_*_*',
0278         'keep *_displacedMuonSeeds_*_*',
0279         'keep TrackingRecHitsOwned_globalMuons_*_*',
0280         'keep TrackingRecHitsOwned_tevMuons_*_*',
0281         'keep *_CosmicMuonSeed_*_*',
0282         'keep recoTrackExtras_cosmicMuons_*_*',
0283         'keep TrackingRecHitsOwned_cosmicMuons_*_*',
0284         'keep recoTrackExtras_cosmicMuons1Leg_*_*',
0285         'keep TrackingRecHitsOwned_cosmicMuons1Leg_*_*',
0286         'keep recoTracks_cosmicsVetoTracks_*_*',
0287         'keep recoMuons_muons_*_*',
0288         'keep booledmValueMap_muons_*_*',
0289         'keep doubleedmValueMap_muons_muPFMean*_*',
0290         'keep doubleedmValueMap_muons_muPFSum*_*',
0291         'keep *_muons_muonShowerInformation_*',
0292         'keep recoMuonTimeExtraedmValueMap_muons_*_*',
0293         'keep recoMuonCosmicCompatibilityedmValueMap_muons_*_*',
0294         'keep uintedmValueMap_muons_*_*',
0295         'keep *_particleFlow_muons_*',
0296         'keep recoTracks_standAloneMuons_*_*',
0297         'keep recoTrackExtras_standAloneMuons_*_*',
0298         'keep TrackingRecHitsOwned_standAloneMuons_*_*',
0299         'keep recoTracks_globalMuons_*_*',
0300         'keep recoTrackExtras_globalMuons_*_*',
0301         'keep recoTracks_tevMuons_*_*',
0302         'keep recoTrackExtras_tevMuons_*_*',
0303         'keep recoTracks_generalTracks_*_*',
0304         'keep recoTracks_displacedTracks_*_*',
0305         'keep recoTracksToOnerecoTracksAssociation_tevMuons_*_*',
0306         'keep recoTracks_displacedGlobalMuons_*_*',
0307         'keep recoTrackExtras_displacedGlobalMuons_*_*',
0308         'keep TrackingRecHitsOwned_displacedGlobalMuons_*_*',
0309         'keep recoTracks_cosmicMuons_*_*',
0310         'keep recoMuons_muonsFromCosmics_*_*',
0311         'keep recoTracks_cosmicMuons1Leg_*_*',
0312         'keep recoMuons_muonsFromCosmics1Leg_*_*',
0313         'keep recoTracks_refittedStandAloneMuons_*_*',
0314         'keep recoTrackExtras_refittedStandAloneMuons_*_*',
0315         'keep TrackingRecHitsOwned_refittedStandAloneMuons_*_*',
0316         'keep recoTracks_displacedStandAloneMuons__*',
0317         'keep recoTrackExtras_displacedStandAloneMuons_*_*',
0318         'keep TrackingRecHitsOwned_displacedStandAloneMuons_*_*',
0319         'keep *_muonReducedTrackExtras_*_*',
0320         'keep *_muIsoDepositTk_*_*',
0321         'keep *_muIsoDepositCalByAssociatorTowers_*_*',
0322         'keep *_muIsoDepositCalByAssociatorHits_*_*',
0323         'keep *_muIsoDepositJets_*_*',
0324         'keep *_muGlobalIsoDepositCtfTk_*_*',
0325         'keep *_muGlobalIsoDepositCalByAssociatorTowers_*_*',
0326         'keep *_muGlobalIsoDepositCalByAssociatorHits_*_*',
0327         'keep *_muGlobalIsoDepositJets_*_*',
0328         'keep *_softPFMuonsTagInfos_*_*',
0329         'keep *_softPFElectronsTagInfos_*_*',
0330         'keep *_pfImpactParameterTagInfos_*_*',
0331         'keep *_pfSecondaryVertexTagInfos_*_*',
0332         'keep *_pfInclusiveSecondaryVertexFinderTagInfos_*_*',
0333         'keep *_pfGhostTrackVertexTagInfos_*_*',
0334         'keep *_pfInclusiveSecondaryVertexFinderCvsLTagInfos_*_*',
0335         'keep *_softPFElectronBJetTags_*_*',
0336         'keep *_softPFMuonBJetTags_*_*',
0337         'keep *_pfTrackCountingHighEffBJetTags_*_*',
0338         'keep *_pfJetProbabilityBJetTags_*_*',
0339         'keep *_pfJetBProbabilityBJetTags_*_*',
0340         'keep *_pfSimpleSecondaryVertexHighEffBJetTags_*_*',
0341         'keep *_pfSimpleInclusiveSecondaryVertexHighEffBJetTags_*_*',
0342         'keep *_pfCombinedSecondaryVertexV2BJetTags_*_*',
0343         'keep *_pfCombinedInclusiveSecondaryVertexV2BJetTags_*_*',
0344         'keep *_pfGhostTrackBJetTags_*_*',
0345         'keep *_pfCombinedMVAV2BJetTags_*_*',
0346         'keep *_inclusiveCandidateSecondaryVertices_*_*',
0347         'keep *_inclusiveCandidateSecondaryVerticesCvsL_*_*',
0348         'keep *_pfCombinedCvsLJetTags_*_*',
0349         'keep *_pfCombinedCvsBJetTags_*_*',
0350         'keep *_pfChargeBJetTags_*_*',
0351         'keep *_pfDeepCSVJetTags_*_*',
0352         'keep *_pfDeepCMVAJetTags_*_*',
0353         'keep *_pixelClusterTagInfos_*_*',
0354         'keep recoRecoTauPiZeros_hpsPFTauProducer_pizeros_*',
0355         'keep recoPFTaus_hpsPFTauProducer_*_*',
0356         'keep *_hpsPFTauBasicDiscriminators_*_*',
0357         'keep *_hpsPFTauBasicDiscriminatorsdR03_*_*',
0358         'keep *_hpsPFTauDiscriminationByDeadECALElectronRejection_*_*',
0359         'keep *_hpsPFTauDiscriminationByDecayModeFinding_*_*',
0360         'keep *_hpsPFTauDiscriminationByDecayModeFindingNewDMs_*_*',
0361         'keep *_hpsPFTauDiscriminationByDecayModeFindingOldDMs_*_*',
0362         'keep *_hpsPFTauDiscriminationByMuonRejection3_*_*',
0363         'keep *_hpsPFTauTransverseImpactParameters_*_*',
0364         'keep  *_offlinePrimaryVertices__*',
0365         'keep *_offlinePrimaryVerticesWithBS_*_*',
0366         'keep *_offlinePrimaryVerticesFromCosmicTracks_*_*',
0367         'keep *_nuclearInteractionMaker_*_*',
0368         'keep *_generalV0Candidates_*_*',
0369         'keep *_inclusiveSecondaryVertices_*_*',
0370         'keep *_gedPhotonCore_*_*',
0371         'keep *_gedPhotons_*_*',
0372         'keep recoPhotons_mustachePhotons_*_*',
0373         'keep recoPhotonCores_mustachePhotonCore_*_*',
0374         'keep recoTrackExtras_ckfOutInTracksFromConversions_*_*',
0375         'keep recoTrackExtras_ckfInOutTracksFromConversions_*_*',
0376         'keep TrackingRecHitsOwned_ckfOutInTracksFromConversions_*_*',
0377         'keep TrackingRecHitsOwned_ckfInOutTracksFromConversions_*_*',
0378         'keep recoTrackExtras_uncleanedOnlyCkfOutInTracksFromConversions_*_*',
0379         'keep recoTrackExtras_uncleanedOnlyCkfInOutTracksFromConversions_*_*',
0380         'keep TrackingRecHitsOwned_uncleanedOnlyCkfOutInTracksFromConversions_*_*',
0381         'keep TrackingRecHitsOwned_uncleanedOnlyCkfInOutTracksFromConversions_*_*',
0382         'keep recoGsfElectronCores_gsfElectronCores_*_*',
0383         'keep recoGsfElectronCores_gedGsfElectronCores_*_*',
0384         'keep recoGsfElectrons_gsfElectrons_*_*',
0385         'keep recoGsfElectrons_gedGsfElectrons_*_*',
0386         'keep recoGsfElectronCores_uncleanedOnlyGsfElectronCores_*_*',
0387         'keep recoGsfElectrons_uncleanedOnlyGsfElectrons_*_*',
0388         'keep floatedmValueMap_eidRobustLoose_*_*',
0389         'keep floatedmValueMap_eidRobustTight_*_*',
0390         'keep floatedmValueMap_eidRobustHighEnergy_*_*',
0391         'keep floatedmValueMap_eidLoose_*_*',
0392         'keep floatedmValueMap_eidTight_*_*',
0393         'keep *_egmGedGsfElectronPFIsolation_*_*',
0394         'keep recoPhotonCores_gedPhotonCore_*_*',
0395         'keep recoPhotons_gedPhotons_*_*',
0396         'keep *_particleBasedIsolation_*_*',
0397         'keep recoPhotonCores_photonCore_*_*',
0398         'keep recoPhotons_photons_*_*',
0399         'keep recoPhotonCores_ootPhotonCore_*_*',
0400         'keep recoPhotons_ootPhotons_*_*',
0401         'keep recoConversions_conversions_*_*',
0402         'drop recoConversions_conversions_uncleanedConversions_*',
0403         'keep recoConversions_mustacheConversions_*_*',
0404         'keep *_gsfTracksOpenConversions_*_*',
0405         'keep recoConversions_allConversions_*_*',
0406         'keep recoConversions_allConversionsOldEG_*_*',
0407         'keep recoTracks_ckfOutInTracksFromConversions_*_*',
0408         'keep recoTracks_ckfInOutTracksFromConversions_*_*',
0409         'keep recoConversions_uncleanedOnlyAllConversions_*_*',
0410         'keep recoTracks_uncleanedOnlyCkfOutInTracksFromConversions_*_*',
0411         'keep recoTracks_uncleanedOnlyCkfInOutTracksFromConversions_*_*',
0412         'keep *_PhotonIDProd_*_*',
0413         'keep *_PhotonIDProdGED_*_*',
0414         'keep *_hfRecoEcalCandidate_*_*',
0415         'keep *_hfEMClusters_*_*',
0416         'keep *_gedGsfElectronCores_*_*',
0417         'keep *_gedGsfElectrons_*_*',
0418         'keep recoCaloClusters_lowPtGsfElectronSuperClusters_*_*',
0419         'keep recoGsfElectrons_lowPtGsfElectrons_*_*',
0420         'keep recoGsfElectronCores_lowPtGsfElectronCores_*_*',
0421         'keep recoGsfTracks_lowPtGsfEleGsfTracks_*_*',
0422         'keep *_lowPtGsfToTrackLinks_*_*',
0423         'keep recoSuperClusters_lowPtGsfElectronSuperClusters_*_*',
0424         'keep floatedmValueMap_lowPtGsfElectronSeedValueMaps_*_*',
0425         'keep floatedmValueMap_rekeyLowPtGsfElectronSeedValueMaps_*_*',
0426         'keep floatedmValueMap_lowPtGsfElectronID_*_*',
0427         'keep *_pixelTracks_*_*',
0428         'keep *_pixelVertices_*_*',
0429         'keep recoPFClusters_particleFlowClusterECAL_*_*',
0430         'keep recoPFClusters_particleFlowClusterHCAL_*_*',
0431         'keep recoPFClusters_particleFlowClusterHO_*_*',
0432         'keep recoPFClusters_particleFlowClusterHF_*_*',
0433         'keep recoPFClusters_particleFlowClusterPS_*_*',
0434         'keep recoPFBlocks_particleFlowBlock_*_*',
0435         'keep recoPFCandidates_particleFlowEGamma_*_*',
0436         'keep recoPFCandidates_particleFlowTmp_electrons_*',
0437         'keep recoPFDisplacedVertexs_particleFlowDisplacedVertex_*_*',
0438         'keep *_pfElectronTranslator_*_*',
0439         'keep *_pfPhotonTranslator_*_*',
0440         'keep *_trackerDrivenElectronSeeds_preid_*',
0441         'keep recoPFRecHits_particleFlowRecHitECAL_Cleaned_*',
0442         'keep recoPFRecHits_particleFlowRecHitHBHE_Cleaned_*',
0443         'keep recoPFRecHits_particleFlowRecHitHF_Cleaned_*',
0444         'keep recoPFRecHits_particleFlowRecHitHO_Cleaned_*',
0445         'keep recoPFRecHits_particleFlowRecHitPS_Cleaned_*',
0446         'keep recoCaloClusters_particleFlowEGamma_*_*',
0447         'keep recoSuperClusters_particleFlowEGamma_*_*',
0448         'keep recoCaloClusters_particleFlowSuperClusterECAL_*_*',
0449         'keep recoSuperClusters_particleFlowSuperClusterECAL_*_*',
0450         'keep recoConversions_particleFlowEGamma_*_*',
0451         'keep recoPFCandidates_particleFlow_*_*',
0452         'keep recoPFCandidates_particleFlowTmp_AddedMuonsAndHadrons_*',
0453         'keep recoPFCandidates_particleFlowTmp_CleanedCosmicsMuons_*',
0454         'keep recoPFCandidates_particleFlowTmp_CleanedFakeMuons_*',
0455         'keep recoPFCandidates_particleFlowTmp_CleanedHF_*',
0456         'keep recoPFCandidates_particleFlowTmp_CleanedPunchThroughMuons_*',
0457         'keep recoPFCandidates_particleFlowTmp_CleanedPunchThroughNeutralHadrons_*',
0458         'keep recoPFCandidates_particleFlowTmp_CleanedTrackerAndGlobalMuons_*',
0459         'keep *_particleFlow_electrons_*',
0460         'keep *_particleFlow_photons_*',
0461         'keep *_particleFlow_muons_*',
0462         'keep recoCaloClusters_pfElectronTranslator_*_*',
0463         'keep recoPreshowerClusters_pfElectronTranslator_*_*',
0464         'keep recoSuperClusters_pfElectronTranslator_*_*',
0465         'keep recoCaloClusters_pfPhotonTranslator_*_*',
0466         'keep recoPreshowerClusters_pfPhotonTranslator_*_*',
0467         'keep recoSuperClusters_pfPhotonTranslator_*_*',
0468         'keep recoPhotons_pfPhotonTranslator_*_*',
0469         'keep recoPhotonCores_pfPhotonTranslator_*_*',
0470         'keep recoConversions_pfPhotonTranslator_*_*',
0471         'keep *_particleFlowPtrs_*_*',
0472         'keep *_particleFlowTmpPtrs_*_*',
0473         'keep *_chargedHadronPFTrackIsolation_*_*',
0474         'keep *_offlineBeamSpot_*_*',
0475         'keep L1GlobalTriggerReadoutRecord_gtDigis_*_*',
0476         'keep *_l1GtRecord_*_*',
0477         'keep *_l1GtTriggerMenuLite_*_*',
0478         'keep *_conditionsInEdm_*_*',
0479         'keep *_l1extraParticles_*_*',
0480         'keep *_l1L1GtObjectMap_*_*',
0481         'keep L1MuGMTReadoutCollection_gtDigis_*_*',
0482         'keep L1GctEmCand*_gctDigis_*_*',
0483         'keep L1GctJetCand*_gctDigis_*_*',
0484         'keep L1GctEtHad*_gctDigis_*_*',
0485         'keep L1GctEtMiss*_gctDigis_*_*',
0486         'keep L1GctEtTotal*_gctDigis_*_*',
0487         'keep L1GctHtMiss*_gctDigis_*_*',
0488         'keep L1GctJetCounts*_gctDigis_*_*',
0489         'keep L1GctHFRingEtSums*_gctDigis_*_*',
0490         'keep L1GctHFBitCounts*_gctDigis_*_*',
0491         'keep LumiDetails_lumiProducer_*_*',
0492         'keep LumiSummary_lumiProducer_*_*',
0493         'drop *_hlt*_*_*',
0494         'keep GlobalObjectMapRecord_hltGtStage2ObjectMap_*_*',
0495         'keep edmTriggerResults_*_*_*',
0496         'keep triggerTriggerEvent_*_*_*',
0497         'keep *_hltFEDSelectorL1_*_*',
0498         'keep *_hltScoutingEgammaPacker_*_*',
0499         'keep *_hltScoutingMuonPacker_*_*',
0500         'keep *_hltScoutingPFPacker_*_*',
0501         'keep *_hltScoutingPrimaryVertexPacker_*_*',
0502         'keep *_hltScoutingTrackPacker_*_*',
0503         'keep edmTriggerResults_*_*_*',
0504         'keep DcsStatuss_hltScalersRawToDigi_*_*',
0505         'keep L1AcceptBunchCrossings_scalersRawToDigi_*_*',
0506         'keep L1TriggerScalerss_scalersRawToDigi_*_*',
0507         'keep Level1TriggerScalerss_scalersRawToDigi_*_*',
0508         'keep LumiScalerss_scalersRawToDigi_*_*',
0509         'keep BeamSpotOnlines_scalersRawToDigi_*_*',
0510         'keep DcsStatuss_scalersRawToDigi_*_*',
0511         'keep CTPPSRecord_onlineMetaDataDigis_*_*',
0512         'keep DCSRecord_onlineMetaDataDigis_*_*',
0513         'keep OnlineLuminosityRecord_onlineMetaDataDigis_*_*',
0514         'keep recoBeamSpot_onlineMetaDataDigis_*_*',
0515         'keep *_tcdsDigis_*_*',
0516         'keep *_logErrorHarvester_*_*',
0517         'drop *_MEtoEDMConverter_*_*',
0518         'drop *_*_*_SKIM'
0519      ) )
0520 )
0521 
0522 # Other statements
0523 from Configuration.AlCa.GlobalTag import GlobalTag
0524 gt = '102X_dataRun2_v14' if options.runOnData else '120X_mcRun3_2021_realistic_v6'
0525 process.GlobalTag = GlobalTag(process.GlobalTag, gt, '')
0526 
0527 # Path and EndPath definitions
0528 process.RECOSIMoutput_step = cms.EndPath(process.RECOSIMoutput)
0529 process.SKIMStreamEXOHighMETOutPath = cms.EndPath(process.SKIMStreamEXOHighMET)
0530 
0531 # Schedule definition
0532 process.schedule = cms.Schedule(process.EXOHighMETPath,process.RECOSIMoutput_step,process.SKIMStreamEXOHighMETOutPath)
0533 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0534 associatePatAlgosToolsTask(process)
0535 
0536 
0537 
0538 # Customisation from command line
0539 
0540 #Have logErrorHarvester wait for the same EDProducers to finish as those providing data for the OutputModule
0541 from FWCore.Modules.logErrorHarvester_cff import customiseLogErrorHarvesterUsingOutputCommands
0542 process = customiseLogErrorHarvesterUsingOutputCommands(process)
0543 
0544 # Add early deletion of temporary data products to reduce peak memory need
0545 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0546 process = customiseEarlyDelete(process)
0547 # End adding early deletion