File indexing completed on 2024-04-06 12:12:31
0001 import FWCore.ParameterSet.Config as cms
0002 from FWCore.ParameterSet.VarParsing import VarParsing
0003
0004 options = VarParsing()
0005 options.register("maxEvents", 1, VarParsing.multiplicity.singleton, VarParsing.varType.int, "max events to process")
0006 options.register("threads", 1, VarParsing.multiplicity.singleton, VarParsing.varType.int, "number of threads")
0007 options.parseArguments()
0008
0009 print(options)
0010
0011 process = cms.Process("TEST")
0012 process.source = cms.Source("EmptySource")
0013
0014 process.maxEvents.input = options.maxEvents