Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:07:27

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 
0008 process.load("Configuration.StandardSequences.SimulationRandomNumberGeneratorSeeds_cff")
0009 process.RandomNumberGeneratorService.gen1 = process.RandomNumberGeneratorService.generator.clone()
0010 process.RandomNumberGeneratorService.gen2 = process.RandomNumberGeneratorService.generator.clone()
0011 process.gen1 = cms.EDFilter("Pythia8GeneratorFilter",
0012                             comEnergy = cms.double(7000.),
0013                             PythiaParameters = cms.PSet(
0014                                 pythia8_example02 = cms.vstring('HardQCD:all = on',
0015                                                                 'PhaseSpace:pTHatMin = 20.'),
0016                                 parameterSets = cms.vstring('pythia8_example02')
0017                             )
0018                         )
0019 process.gen2 = cms.EDFilter("Pythia8GeneratorFilter",
0020                             comEnergy = cms.double(7000.),
0021                             PythiaParameters = cms.PSet(
0022                                 pythia8_example02 = cms.vstring('HardQCD:all = on',
0023                                                                 'PhaseSpace:pTHatMin = 20.'),
0024                                 parameterSets = cms.vstring('pythia8_example02')
0025                             )
0026                         )
0027 process.compare = cms.EDAnalyzer("CompareGeneratorResultsAnalyzer", module1 = cms.untracked.string("gen1"), module2 =cms.untracked.string("gen2"))
0028 
0029 process.p = cms.Path(process.gen1+process.gen2+process.compare)