Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:21:11

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 
0005 process.options = cms.untracked.PSet(
0006     numberOfStreams = cms.untracked.uint32(1)
0007 )
0008 
0009 process.source = cms.Source("PoolSource",
0010     fileNames = cms.untracked.vstring(
0011         'file:testRandomServiceMerge1.root'
0012     ),
0013     firstRun = cms.untracked.uint32(1),
0014     firstEvent = cms.untracked.uint32(3)
0015 )
0016 
0017 process.out = cms.OutputModule("PoolOutputModule",
0018     fileName = cms.untracked.string('testRandomServiceTest1.root')
0019 )
0020 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0021 
0022     t1 = cms.PSet(
0023         initialSeed = cms.untracked.uint32(7)
0024     ),
0025     t2 = cms.PSet(
0026         engineName = cms.untracked.string('RanecuEngine'),
0027         initialSeedSet = cms.untracked.vuint32(7, 7)
0028     ),
0029     t3 = cms.PSet(
0030         initialSeed = cms.untracked.uint32(7),
0031         engineName = cms.untracked.string('TRandom3')
0032     ),
0033     t4 = cms.PSet(
0034         engineName = cms.untracked.string('HepJamesRandom'),
0035         initialSeed = cms.untracked.uint32(7)
0036     ),
0037     t6 = cms.PSet(
0038         initialSeed = cms.untracked.uint32(7),
0039         engineName = cms.untracked.string('MixMaxRng')
0040     ),
0041     enableChecking = cms.untracked.bool(True),
0042     restoreStateLabel = cms.untracked.string('randomEngineStateProducer')
0043 )
0044 
0045 process.t1 = cms.EDAnalyzer("TestRandomNumberServiceGlobal",
0046                             engineName = cms.untracked.string('HepJamesRandom'),
0047                             seeds = cms.untracked.vuint32(81),
0048                             offset = cms.untracked.uint32(0),
0049                             maxEvents = cms.untracked.uint32(15),
0050                             nStreams = cms.untracked.uint32(1),
0051                             skippedEvents = cms.untracked.vuint32(2),
0052                             seedByLumi = cms.untracked.vuint32(0, 82, 82, 202, 202)
0053 )
0054 process.t2 = cms.EDAnalyzer("TestRandomNumberServiceGlobal",
0055                             engineName = cms.untracked.string('RanecuEngine'),
0056                             seeds = cms.untracked.vuint32(1, 2),
0057                             offset = cms.untracked.uint32(0),
0058                             maxEvents = cms.untracked.uint32(15),
0059                             nStreams = cms.untracked.uint32(1),
0060                             skippedEvents = cms.untracked.vuint32(2),
0061                             seedByLumi = cms.untracked.vuint32(0, 2, 2, 203, 203)
0062 )
0063 process.t3 = cms.EDAnalyzer("TestRandomNumberServiceGlobal",
0064                             engineName = cms.untracked.string('TRandom3'),
0065                             seeds = cms.untracked.vuint32(83),
0066                             offset = cms.untracked.uint32(0),
0067                             maxEvents = cms.untracked.uint32(15),
0068                             nStreams = cms.untracked.uint32(1),
0069                             skippedEvents = cms.untracked.vuint32(2),
0070                             seedByLumi = cms.untracked.vuint32(0, 84, 84, 204, 204)
0071 )
0072 process.t4 = cms.EDAnalyzer("TestRandomNumberServiceGlobal",
0073                             engineName = cms.untracked.string('HepJamesRandom'),
0074                             seeds = cms.untracked.vuint32(84),
0075                             offset = cms.untracked.uint32(0),
0076                             maxEvents = cms.untracked.uint32(15),
0077                             nStreams = cms.untracked.uint32(1),
0078                             skippedEvents = cms.untracked.vuint32(2),
0079                             seedByLumi = cms.untracked.vuint32(0, 85, 85, 205, 205)
0080 )
0081 process.t6 = cms.EDAnalyzer("TestRandomNumberServiceGlobal",
0082                             engineName = cms.untracked.string('MixMaxRng'),
0083                             seeds = cms.untracked.vuint32(85),
0084                             offset = cms.untracked.uint32(0),
0085                             maxEvents = cms.untracked.uint32(15),
0086                             nStreams = cms.untracked.uint32(1),
0087                             skippedEvents = cms.untracked.vuint32(2),
0088                             seedByLumi = cms.untracked.vuint32(0, 86, 86, 206, 206)
0089 )
0090 
0091 process.p = cms.Path(process.t1+process.t2+process.t3+process.t4)
0092 process.o = cms.EndPath(process.out)