Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:28:24

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 
0005 process.source = cms.Source("EmptySource",
0006     firstRun = cms.untracked.uint32(1),
0007     firstLuminosityBlock = cms.untracked.uint32(1),
0008     firstEvent = cms.untracked.uint32(1),
0009     numberEventsInLuminosityBlock = cms.untracked.uint32(1),
0010     numberEventsInRun = cms.untracked.uint32(100)
0011 )
0012 
0013 # set to 6 output events. Actual number could be
0014 # anywhere from 6 to 9 because after 6 events written
0015 # it will finish the other events already running concurrently.
0016 # In this config there are 3 other streams possible.
0017 process.maxEvents = cms.untracked.PSet(
0018   input = cms.untracked.int32(20),
0019   output = cms.untracked.int32(6)
0020 )
0021 
0022 process.options = cms.untracked.PSet(
0023     numberOfThreads = cms.untracked.uint32(4),
0024     numberOfStreams = cms.untracked.uint32(4),
0025     numberOfConcurrentRuns = cms.untracked.uint32(1),
0026     numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(4)
0027 )
0028 
0029 process.busy1 = cms.EDProducer("BusyWaitIntProducer",
0030                                ivalue = cms.int32(1),
0031                                iterations = cms.uint32(10*1000*1000),
0032                                lumiNumberToThrow = cms.uint32(0)
0033 )
0034 
0035 process.p1 = cms.Path(process.busy1)
0036 process.out = cms.OutputModule("PoolOutputModule",
0037     fileName = cms.untracked.string('testMaxEventsOutput.root')
0038 )
0039 
0040 process.e = cms.EndPath(process.out)
0041