Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:52:56

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 ## VarParsing
0004 import FWCore.ParameterSet.VarParsing as VarParsing
0005 options = VarParsing.VarParsing('analysis')
0006 options.setDefault('maxEvents', 1)
0007 options.parseArguments()
0008 
0009 process = cms.Process('TEST')
0010 
0011 process.options.numberOfThreads = 1
0012 process.options.numberOfStreams = 0
0013 process.options.wantSummary = False
0014 process.maxEvents.input = options.maxEvents
0015 
0016 ## Source
0017 process.source = cms.Source('PoolSource',
0018   fileNames = cms.untracked.vstring(options.inputFiles),
0019   inputCommands = cms.untracked.vstring('drop *')
0020 )