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("TEST")
0005 
0006 process.options = cms.untracked.PSet(
0007     numberOfStreams = cms.untracked.uint32(3)
0008 )
0009 
0010 process.source = cms.Source("PoolSource",
0011     fileNames = cms.untracked.vstring(
0012         'file:testMultiStream.root'
0013     ),
0014     firstRun = cms.untracked.uint32(1),
0015     firstEvent = cms.untracked.uint32(3)
0016 )
0017 
0018 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0019 
0020     t1 = cms.PSet(
0021         initialSeed = cms.untracked.uint32(7)
0022     ),
0023     t2 = cms.PSet(
0024         engineName = cms.untracked.string('RanecuEngine'),
0025         initialSeedSet = cms.untracked.vuint32(7, 7)
0026     ),
0027     t3 = cms.PSet(
0028         initialSeed = cms.untracked.uint32(7),
0029         engineName = cms.untracked.string('TRandom3')
0030     ),
0031     t4 = cms.PSet(
0032         engineName = cms.untracked.string('HepJamesRandom'),
0033         initialSeed = cms.untracked.uint32(7)
0034     ),
0035     t5 = cms.PSet(
0036         initialSeed = cms.untracked.uint32(7),
0037         engineName = cms.untracked.string('TRandom3')
0038     ),
0039     t6 = cms.PSet(
0040         initialSeed = cms.untracked.uint32(7),
0041         engineName = cms.untracked.string('MixMaxRng')
0042     ),
0043     enableChecking = cms.untracked.bool(True),
0044     verbose = cms.untracked.bool(False),
0045     restoreStateTag = cms.untracked.InputTag('randomEngineStateProducer')
0046 )
0047 
0048 process.t1 = cms.EDAnalyzer("TestRandomNumberServiceGlobal",
0049                             engineName = cms.untracked.string('HepJamesRandom'),
0050                             seeds = cms.untracked.vuint32(81),
0051                             offset = cms.untracked.uint32(0),
0052                             maxEvents = cms.untracked.uint32(5),
0053                             nStreams = cms.untracked.uint32(3),
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(3),
0062                             multiStreamReplay = cms.untracked.bool(True)
0063 )
0064 process.t3 = cms.EDAnalyzer("TestRandomNumberServiceGlobal",
0065                             engineName = cms.untracked.string('TRandom3'),
0066                             seeds = cms.untracked.vuint32(83),
0067                             offset = cms.untracked.uint32(0),
0068                             maxEvents = cms.untracked.uint32(5),
0069                             nStreams = cms.untracked.uint32(3),
0070                             multiStreamReplay = cms.untracked.bool(True)
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(5),
0077                             nStreams = cms.untracked.uint32(3),
0078                             multiStreamReplay = cms.untracked.bool(True)
0079 )
0080 process.t6 = cms.EDAnalyzer("TestRandomNumberServiceGlobal",
0081                             engineName = cms.untracked.string('MixMaxRng'),
0082                             seeds = cms.untracked.vuint32(85),
0083                             offset = cms.untracked.uint32(0),
0084                             maxEvents = cms.untracked.uint32(5),
0085                             nStreams = cms.untracked.uint32(3),
0086                             multiStreamReplay = cms.untracked.bool(True)
0087 )
0088 
0089 process.randomEngineStateProducer2 = cms.EDProducer("RandomEngineStateProducer")
0090 
0091 process.out = cms.OutputModule("PoolOutputModule",
0092     fileName = cms.untracked.string('testMultiStreamReplay1.root')
0093 )
0094 
0095 process.p = cms.Path(process.t1+process.t2+process.t3+process.t4+process.t6+process.randomEngineStateProducer2)
0096 process.o = cms.EndPath(process.out)