Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:26:45

0001 import FWCore.ParameterSet.Config as cms
0002 process = cms.Process("test")
0003 
0004 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0005 process.source = cms.Source(
0006     'PoolSource',
0007     #RECO
0008     #fileNames = cms.untracked.vstring('root://eoscms.cern.ch//store/group/phys_jetmet/MetScanners/bobak_pickevents.root')
0009     #fileNames = cms.untracked.vstring('file:/afs/cern.ch/user/m/mzeinali/public/skim_9.root')
0010     #fileNames = cms.untracked.vstring( 'file:lowMet_failBadChargedHadronFilter.root')
0011     #miniAOD
0012     #fileNames = cms.untracked.vstring('root://eoscms.cern.ch//store/group/phys_jetmet/MetScanners/bobak_pickevents_miniAOD.root ')
0013     fileNames = cms.untracked.vstring('root://eoscms.cern.ch//store/mc/RunIISpring16MiniAODv1/SMS-T1tttt_mGluino-1500_mLSP-100_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/MINIAODSIM/PUSpring16_80X_mcRun2_asymptotic_2016_v3-v1/60000/26C76166-0FFE-E511-BA96-0025905D1D60.root')
0014     #fileNames = cms.untracked.vstring( "file:/afs/cern.ch/user/s/schoef/eos/cms/store/mc/RunIISpring16MiniAODv1/SMS-T1tttt_mGluino-1500_mLSP-100_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/MINIAODSIM/PUSpring16_80X_mcRun2_asymptotic_2016_v3-v1/60000/26C76166-0FFE-E511-BA96-0025905D1D60.root")
0015     #fileNames = cms.untracked.vstring( 'file:/data/rschoefbeck/local/SMS-T1tttt_mGluino-1500_mLSP-100_TuneCUETP8M1_13_MINIAODSIM.root')
0016     )
0017 
0018 process.load('Configuration.StandardSequences.Services_cff')
0019 process.load('RecoMET.METFilters.BadChargedCandidateFilter_cfi')
0020 process.load('RecoMET.METFilters.BadChargedCandidateSummer16Filter_cfi')
0021 
0022 ## for miniAOD running
0023 process.BadChargedCandidateFilter.muons = cms.InputTag("slimmedMuons")
0024 process.BadChargedCandidateFilter.PFCandidates = cms.InputTag("packedPFCandidates")
0025 
0026 ## for miniAOD running (ICHEP)
0027 process.BadChargedCandidateSummer16Filter.muons = cms.InputTag("slimmedMuons")
0028 process.BadChargedCandidateSummer16Filter.PFCandidates = cms.InputTag("packedPFCandidates")
0029 
0030 process.out = cms.OutputModule("PoolOutputModule",
0031      fileName = cms.untracked.string('histo.root'),
0032      outputCommands = cms.untracked.vstring('keep *') 
0033 )
0034 #
0035 # RUN!
0036 #
0037 process.run = cms.Path(
0038   process.BadChargedCandidateFilter * process.BadChargedCandidateSummer16Filter 
0039 )
0040 
0041 process.outpath = cms.EndPath(process.out)