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.source = cms.Source("EmptySource",
0006     firstRun = cms.untracked.uint32(1),
0007     firstLuminosityBlock = cms.untracked.uint32(2),
0008     firstEvent = cms.untracked.uint32(15),
0009     numberEventsInRun = cms.untracked.uint32(100),
0010     numberEventsInLuminosityBlock = cms.untracked.uint32(100)
0011 )
0012 
0013 process.maxEvents = cms.untracked.PSet(
0014     input = cms.untracked.int32(1)
0015 )
0016 
0017 process.out = cms.OutputModule("PoolOutputModule",
0018     fileName = cms.untracked.string('testRandomServiceTest2.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     t5 = cms.PSet(
0038         initialSeed = cms.untracked.uint32(7),
0039         engineName = cms.untracked.string('TRandom3')
0040     ),
0041     enableChecking = cms.untracked.bool(True),
0042     restoreFileName = cms.untracked.string('StashState3.data')
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(2),
0049                             maxEvents = cms.untracked.uint32(15),
0050                             nStreams = cms.untracked.uint32(1),
0051                             skippedEvents = cms.untracked.vuint32(4),
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(2),
0058                             maxEvents = cms.untracked.uint32(15),
0059                             nStreams = cms.untracked.uint32(1),
0060                             skippedEvents = cms.untracked.vuint32(4),
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(2),
0067                             maxEvents = cms.untracked.uint32(15),
0068                             nStreams = cms.untracked.uint32(1),
0069                             skippedEvents = cms.untracked.vuint32(4),
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(2),
0076                             maxEvents = cms.untracked.uint32(15),
0077                             nStreams = cms.untracked.uint32(1),
0078                             skippedEvents = cms.untracked.vuint32(4),
0079                             seedByLumi = cms.untracked.vuint32(0, 85, 85, 205, 205)
0080 )
0081 
0082 process.p = cms.Path(process.t1+process.t2+process.t3+process.t4)
0083 process.o = cms.EndPath(process.out)