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(1),
0008 numberEventsInLuminosityBlock = cms.untracked.uint32(1))
0009
0010 elements = list()
0011 extensions = ["","2D"]
0012 for t in [0,1]:
0013 for i in range(0,10):
0014 elements.append(cms.untracked.PSet(type = cms.untracked.uint32(t+1),
0015 lowX=cms.untracked.double(0),
0016 highX=cms.untracked.double(10),
0017 nchX=cms.untracked.int32(10),
0018 lowY=cms.untracked.double(0),
0019 highY=cms.untracked.double(10),
0020 nchY=cms.untracked.int32(2),
0021 name=cms.untracked.string("Foo"+extensions[t]+str(i)),
0022 title=cms.untracked.string("Foo"+str(i)),
0023 value=cms.untracked.double(i)))
0024
0025 process.filler = cms.EDProducer("DummyFillDQMStore",
0026 elements=cms.untracked.VPSet(*elements),
0027 fillRuns = cms.untracked.bool(True),
0028 fillLumis = cms.untracked.bool(True))
0029
0030 process.out = cms.OutputModule("DQMRootOutputModule",
0031 fileName = cms.untracked.string("dqm_file_multi_types.root"))
0032
0033 process.p = cms.Path(process.filler)
0034
0035 process.o = cms.EndPath(process.out)
0036
0037 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(10))
0038
0039 process.add_(cms.Service("DQMStore"))
0040