File indexing completed on 2024-04-06 12:13:58
0001 import FWCore.ParameterSet.Config as cms
0002 process = cms.Process("TEST")
0003
0004 process.source =cms.Source("EmptySource")
0005
0006 process.maxEvents.input = 10
0007 process.options.numberOfStreams = 2
0008 process.options.numberOfThreads = 2
0009 process.options.numberOfConcurrentLuminosityBlocks = 1
0010
0011 process.load("Configuration.StandardSequences.SimulationRandomNumberGeneratorSeeds_cff")
0012 process.RandomNumberGeneratorService.gen1 = process.RandomNumberGeneratorService.generator.clone()
0013 process.RandomNumberGeneratorService.gen2 = process.RandomNumberGeneratorService.generator.clone()
0014 process.gen1 = cms.EDFilter("Pythia8GeneratorFilter",
0015 comEnergy = cms.double(7000.),
0016 PythiaParameters = cms.PSet(
0017 pythia8_example02 = cms.vstring('HardQCD:all = on',
0018 'PhaseSpace:pTHatMin = 20.'),
0019 parameterSets = cms.vstring('pythia8_example02')
0020 )
0021 )
0022
0023 _pythia8 = cms.EDFilter("Pythia8GeneratorFilter",
0024 comEnergy = cms.double(7000.),
0025 PythiaParameters = cms.PSet(
0026 pythia8_example02 = cms.vstring('HardQCD:all = on',
0027 'PhaseSpace:pTHatMin = 20.'),
0028 parameterSets = cms.vstring('pythia8_example02')
0029 )
0030 )
0031 from GeneratorInterface.Core.ExternalGeneratorFilter import ExternalGeneratorFilter
0032 process.gen2 = ExternalGeneratorFilter(_pythia8)
0033
0034 process.sleeper = cms.EDProducer("timestudy::SleepingProducer", ivalue = cms.int32(1), consumes = cms.VInputTag(), eventTimes=cms.vdouble(1.))
0035
0036 process.compare = cms.EDAnalyzer("CompareGeneratorResultsAnalyzer",
0037 module1 = cms.untracked.string("gen1"),
0038 module2 =cms.untracked.string("gen2"),
0039 allowXSecDifferences = cms.untracked.bool(True))
0040
0041 process.p = cms.Path(process.sleeper+process.gen1+process.gen2+process.compare)