Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-03-14 23:36:18

0001 # Tests concurrent runs along with concurrent IOVs
0002 # Note that 3 concurrent runs implies at least 7
0003 # concurrent IOVs are needed and we configure
0004 # 8 concurrent IOVs so that concurrent runs are
0005 # really the limiting factor for the test.
0006 # Note 7 includes 1 for the first run and then 3
0007 # for each subsequent concurrent run which includes
0008 # an IOV for end run, begin run, and begin lumi necessary
0009 # to get to the next event. In this test every lumi is
0010 # only valid for one transition (see internals of
0011 # RunLumiESSource). This test checks that correct
0012 # EventSetup info is retrieved in all the transitions.
0013 # Manual examination of the times in the log output should
0014 # show 3 events in 3 different runs being processed
0015 # concurrently.
0016 
0017 import FWCore.ParameterSet.Config as cms
0018 
0019 process = cms.Process("READ")
0020 
0021 process.source = cms.Source("PoolSource",
0022     fileNames = cms.untracked.vstring(
0023         'file:testConcurrentIOVsAndRuns.root')
0024 )
0025 
0026 process.options = cms.untracked.PSet(
0027     numberOfThreads = cms.untracked.uint32(8),
0028     numberOfStreams = cms.untracked.uint32(8),
0029     numberOfConcurrentRuns = cms.untracked.uint32(3),
0030     numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(8),
0031     eventSetup = cms.untracked.PSet(
0032         numberOfConcurrentIOVs = cms.untracked.uint32(8)
0033     )
0034 )
0035 
0036 process.runLumiESSource = cms.ESSource("RunLumiESSource")
0037 
0038 process.test = cms.EDAnalyzer("RunLumiESAnalyzer")
0039 
0040 process.busy1 = cms.EDProducer("BusyWaitIntProducer",ivalue = cms.int32(1), iterations = cms.uint32(40*1000*1000))
0041 
0042 process.p1 = cms.Path(process.busy1 * process.test)
0043 
0044 process.out = cms.OutputModule("PoolOutputModule",
0045     fileName = cms.untracked.string('testConcurrentIOVsAndRunsRead.root')
0046 )
0047 
0048 process.e = cms.EndPath(process.out)