Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:10:13

0001 from builtins import range
0002 import FWCore.ParameterSet.Config as cms
0003 process =cms.Process("TEST")
0004 
0005 process.source = cms.Source("EmptySource", numberEventsInRun = cms.untracked.uint32(100),
0006                             firstLuminosityBlock = cms.untracked.uint32(1),
0007                             firstEvent = cms.untracked.uint32(1000),
0008                             firstRun = cms.untracked.uint32(2),
0009                             numberEventsInLuminosityBlock = cms.untracked.uint32(1))
0010 
0011 elements = list()
0012 for i in range(0,10):
0013     elements.append(cms.untracked.PSet(lowX=cms.untracked.double(0),
0014                                        highX=cms.untracked.double(11),
0015                                        nchX=cms.untracked.int32(11),
0016                                        name=cms.untracked.string("Foo"+str(i)),
0017                                        title=cms.untracked.string("Foo"+str(i)),
0018                                        value=cms.untracked.double(i+1)))
0019 
0020 process.filler = cms.EDProducer("DummyFillDQMStore",
0021                                 elements=cms.untracked.VPSet(*elements),
0022                                 fillRuns = cms.untracked.bool(True),
0023                                 fillLumis = cms.untracked.bool(True))
0024 
0025 process.out = cms.OutputModule("DQMRootOutputModule",
0026                                fileName = cms.untracked.string("dqm_file3.root"))
0027 
0028 readRunElements = list()
0029 for i in range(0,10):
0030    readRunElements.append(cms.untracked.PSet(name=cms.untracked.string("Foo"+str(i)),
0031                                              runs  = cms.untracked.vint32(2),
0032                                              lumis = cms.untracked.vint32(0),
0033                                              means = cms.untracked.vdouble(i+1),
0034                                              entries=cms.untracked.vdouble(1)
0035    ))
0036 
0037 readLumiElements=list()
0038 for i in range(0,10):
0039    readLumiElements.append(cms.untracked.PSet(name=cms.untracked.string("Foo"+str(i)),
0040                                              runs  = cms.untracked.vint32([2 for x in range(0,10)]),
0041                                              lumis = cms.untracked.vint32([x+1 for x in range(0,10)]),
0042                                              means = cms.untracked.vdouble([i+1 for x in range(0,10)]),
0043                                              entries=cms.untracked.vdouble([1 for x in range(0,10)])
0044    ))
0045 
0046 process.reader = cms.EDAnalyzer("DummyReadDQMStore",
0047                                runElements = cms.untracked.VPSet(*readRunElements),
0048                                lumiElements = cms.untracked.VPSet(*readLumiElements) )
0049 
0050 process.p = cms.Path(process.filler)
0051 
0052 process.o = cms.EndPath(process.out+process.reader)
0053 
0054 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(10))
0055 
0056 process.add_(cms.Service("DQMStore"))
0057