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("PROD")
0004 
0005 process.options = cms.untracked.PSet(
0006     numberOfStreams = cms.untracked.uint32(1)
0007 )
0008 
0009 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0010 
0011     t1 = cms.PSet(
0012         initialSeed = cms.untracked.uint32(81)
0013     ),
0014     t2 = cms.PSet(
0015         engineName = cms.untracked.string('RanecuEngine'),
0016         initialSeedSet = cms.untracked.vuint32(1, 2)
0017     ),
0018     t3 = cms.PSet(
0019         initialSeed = cms.untracked.uint32(83),
0020         engineName = cms.untracked.string('TRandom3')
0021     ),
0022     t4 = cms.PSet(
0023         engineName = cms.untracked.string('HepJamesRandom'),
0024         initialSeed = cms.untracked.uint32(84)
0025     ),
0026     t6 = cms.PSet(
0027         initialSeed = cms.untracked.uint32(85),
0028         engineName = cms.untracked.string('MixMaxRng')
0029     ),
0030     saveFileName = cms.untracked.string('StashState3.data'),
0031     enableChecking = cms.untracked.bool(True),
0032     eventSeedOffset = cms.untracked.uint32(2)
0033 )
0034 
0035 process.maxEvents = cms.untracked.PSet(
0036     input = cms.untracked.int32(5)
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(11),
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(2),
0051                             maxEvents = cms.untracked.uint32(5),
0052                             nStreams = cms.untracked.uint32(1)
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(5),
0059                             nStreams = cms.untracked.uint32(1)
0060 )
0061 process.t3 = cms.EDAnalyzer("TestRandomNumberServiceGlobal",
0062                             engineName = cms.untracked.string('TRandom3'),
0063                             seeds = cms.untracked.vuint32(83),
0064                             offset = cms.untracked.uint32(2),
0065                             maxEvents = cms.untracked.uint32(5),
0066                             nStreams = cms.untracked.uint32(1)
0067 )
0068 process.t4 = cms.EDAnalyzer("TestRandomNumberServiceGlobal",
0069                             engineName = cms.untracked.string('HepJamesRandom'),
0070                             seeds = cms.untracked.vuint32(84),
0071                             offset = cms.untracked.uint32(2),
0072                             maxEvents = cms.untracked.uint32(5),
0073                             nStreams = cms.untracked.uint32(1)
0074 )
0075 process.t6 = cms.EDAnalyzer("TestRandomNumberServiceGlobal",
0076                             engineName = cms.untracked.string('MixMaxRng'),
0077                             seeds = cms.untracked.vuint32(85),
0078                             offset = cms.untracked.uint32(2),
0079                             maxEvents = cms.untracked.uint32(5),
0080                             nStreams = cms.untracked.uint32(1)
0081 )
0082 
0083 process.randomEngineStateProducer = cms.EDProducer("RandomEngineStateProducer")
0084 
0085 process.out = cms.OutputModule("PoolOutputModule",
0086     fileName = cms.untracked.string('testRandomService3.root')
0087 )
0088 
0089 process.p = cms.Path(process.t1+process.t2+process.t3+process.t4+process.t6+process.randomEngineStateProducer)
0090 process.o = cms.EndPath(process.out)