Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-05 04:09:57

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(3),
0008     numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(1)
0009 )
0010 
0011 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0012 
0013     saveFileName = cms.untracked.string('StashStateStream.data'),
0014 
0015     t1 = cms.PSet(
0016         initialSeed = cms.untracked.uint32(81)
0017     ),
0018     t2 = cms.PSet(
0019         engineName = cms.untracked.string('RanecuEngine'),
0020         initialSeedSet = cms.untracked.vuint32(1, 2)
0021     ),
0022     t3 = cms.PSet(
0023         initialSeed = cms.untracked.uint32(83),
0024         engineName = cms.untracked.string('TRandom3')
0025     ),
0026     t4 = cms.PSet(
0027         engineName = cms.untracked.string('HepJamesRandom'),
0028         initialSeed = cms.untracked.uint32(84)
0029     ),
0030     t6 = cms.PSet(
0031         initialSeed = cms.untracked.uint32(85),
0032         engineName = cms.untracked.string('MixMaxRng')
0033     ),
0034     enableChecking = cms.untracked.bool(True),
0035     verbose = cms.untracked.bool(True)
0036 )
0037 
0038 process.maxEvents = cms.untracked.PSet(
0039     input = cms.untracked.int32(5)
0040 )
0041 
0042 process.source = cms.Source("EmptySource",
0043     firstRun = cms.untracked.uint32(1),
0044     firstLuminosityBlock = cms.untracked.uint32(1),
0045     firstEvent = cms.untracked.uint32(1),
0046     numberEventsInRun = cms.untracked.uint32(100),
0047     numberEventsInLuminosityBlock = cms.untracked.uint32(3)
0048 )
0049 
0050 process.t1 = cms.EDAnalyzer("TestRandomNumberServiceGlobal",
0051                             engineName = cms.untracked.string('HepJamesRandom'),
0052                             seeds = cms.untracked.vuint32(81),
0053                             offset = cms.untracked.uint32(0),
0054                             maxEvents = cms.untracked.uint32(5),
0055                             nStreams = cms.untracked.uint32(3)
0056 )
0057 process.t2 = cms.EDAnalyzer("TestRandomNumberServiceGlobal",
0058                             engineName = cms.untracked.string('RanecuEngine'),
0059                             seeds = cms.untracked.vuint32(1, 2),
0060                             offset = cms.untracked.uint32(0),
0061                             maxEvents = cms.untracked.uint32(5),
0062                             nStreams = cms.untracked.uint32(3)
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 )
0071 process.t4 = cms.EDAnalyzer("TestRandomNumberServiceGlobal",
0072                             engineName = cms.untracked.string('HepJamesRandom'),
0073                             seeds = cms.untracked.vuint32(84),
0074                             offset = cms.untracked.uint32(0),
0075                             maxEvents = cms.untracked.uint32(5),
0076                             nStreams = cms.untracked.uint32(3)
0077 )
0078 process.t6 = cms.EDAnalyzer("TestRandomNumberServiceGlobal",
0079                             engineName = cms.untracked.string('MixMaxRng'),
0080                             seeds = cms.untracked.vuint32(85),
0081                             offset = cms.untracked.uint32(0),
0082                             maxEvents = cms.untracked.uint32(5),
0083                             nStreams = cms.untracked.uint32(3)
0084 )
0085 
0086 process.randomEngineStateProducer = cms.EDProducer("RandomEngineStateProducer")
0087 
0088 process.out = cms.OutputModule("PoolOutputModule",
0089     fileName = cms.untracked.string('testMultiStream.root')
0090 )
0091 
0092 process.p = cms.Path(process.t1+process.t2+process.t3+process.t4+process.t6+process.randomEngineStateProducer)
0093 process.o = cms.EndPath(process.out)