Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 process = cms.Process("PROD")
0005 
0006 process.options = cms.untracked.PSet(
0007     numberOfStreams = cms.untracked.uint32(1)
0008 )
0009 
0010 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0011 
0012     t1 = cms.PSet(
0013         initialSeed = cms.untracked.uint32(7)
0014     ),
0015     t2 = cms.PSet(
0016         engineName = cms.untracked.string('RanecuEngine'),
0017         initialSeedSet = cms.untracked.vuint32(7, 7)
0018     ),
0019     t3 = cms.PSet(
0020         initialSeed = cms.untracked.uint32(7),
0021         engineName = cms.untracked.string('TRandom3')
0022     ),
0023     t4 = cms.PSet(
0024         engineName = cms.untracked.string('HepJamesRandom'),
0025         initialSeed = cms.untracked.uint32(7)
0026     ),
0027     t6 = cms.PSet(
0028         initialSeed = cms.untracked.uint32(7),
0029         engineName = cms.untracked.string('MixMaxRng')
0030     ),
0031     restoreFileName = cms.untracked.string('StashStateStream.data_2'),
0032     enableChecking = cms.untracked.bool(True)
0033 )
0034 
0035 process.maxEvents = cms.untracked.PSet(
0036     input = cms.untracked.int32(1)
0037 )
0038 
0039 process.source = cms.Source("EmptySource",
0040     firstRun = cms.untracked.uint32(1),
0041     firstLuminosityBlock = cms.untracked.uint32(1),
0042     firstEvent = cms.untracked.uint32(1),
0043     numberEventsInRun = cms.untracked.uint32(100),
0044     numberEventsInLuminosityBlock = cms.untracked.uint32(3)
0045 )
0046 
0047 process.t1 = cms.EDAnalyzer("TestRandomNumberServiceGlobal",
0048                             engineName = cms.untracked.string('HepJamesRandom'),
0049                             seeds = cms.untracked.vuint32(81),
0050                             offset = cms.untracked.uint32(0),
0051                             maxEvents = cms.untracked.uint32(5),
0052                             nStreams = cms.untracked.uint32(1),
0053                             seedByLumi = cms.untracked.vuint32(0, 84, 84, 204, 204),
0054                             multiStreamReplay = cms.untracked.bool(True)
0055 )
0056 process.t2 = cms.EDAnalyzer("TestRandomNumberServiceGlobal",
0057                             engineName = cms.untracked.string('RanecuEngine'),
0058                             seeds = cms.untracked.vuint32(1, 2),
0059                             offset = cms.untracked.uint32(0),
0060                             maxEvents = cms.untracked.uint32(5),
0061                             nStreams = cms.untracked.uint32(1),
0062                             seedByLumi = cms.untracked.vuint32(0, 4, 4, 205, 205),
0063                             multiStreamReplay = cms.untracked.bool(True)
0064 )
0065 process.t3 = cms.EDAnalyzer("TestRandomNumberServiceGlobal",
0066                             engineName = cms.untracked.string('TRandom3'),
0067                             seeds = cms.untracked.vuint32(83),
0068                             offset = cms.untracked.uint32(0),
0069                             maxEvents = cms.untracked.uint32(5),
0070                             nStreams = cms.untracked.uint32(1),
0071                             seedByLumi = cms.untracked.vuint32(0, 86, 86, 206, 206),
0072                             multiStreamReplay = cms.untracked.bool(True)
0073 )
0074 process.t4 = cms.EDAnalyzer("TestRandomNumberServiceGlobal",
0075                             engineName = cms.untracked.string('HepJamesRandom'),
0076                             seeds = cms.untracked.vuint32(84),
0077                             offset = cms.untracked.uint32(0),
0078                             maxEvents = cms.untracked.uint32(5),
0079                             nStreams = cms.untracked.uint32(1),
0080                             seedByLumi = cms.untracked.vuint32(0, 87, 87, 207, 207),
0081                             multiStreamReplay = cms.untracked.bool(True)
0082 )
0083 process.t6 = cms.EDAnalyzer("TestRandomNumberServiceGlobal",
0084                             engineName = cms.untracked.string('MixMaxRng'),
0085                             seeds = cms.untracked.vuint32(85),
0086                             offset = cms.untracked.uint32(0),
0087                             maxEvents = cms.untracked.uint32(5),
0088                             nStreams = cms.untracked.uint32(1),
0089                             seedByLumi = cms.untracked.vuint32(0, 88, 88, 208, 208),
0090                             multiStreamReplay = cms.untracked.bool(True)
0091 )
0092 
0093 process.randomEngineStateProducer = cms.EDProducer("RandomEngineStateProducer")
0094 
0095 process.out = cms.OutputModule("PoolOutputModule",
0096     fileName = cms.untracked.string('testMultiStreamReplay2.root')
0097 )
0098 
0099 process.p = cms.Path(process.t1+process.t2+process.t3+process.t4+process.t6+process.randomEngineStateProducer)
0100 process.o = cms.EndPath(process.out)