Back to home page

Project CMSSW displayed by LXR

 
 

    


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 
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 
0020 _pythia8 = cms.EDFilter("Pythia8GeneratorFilter",
0021     comEnergy = cms.double(7000.),
0022     PythiaParameters = cms.PSet(
0023         pythia8_example02 = cms.vstring('HardQCD:all = on',
0024                                         'PhaseSpace:pTHatMin = 20.'),
0025         parameterSets = cms.vstring('pythia8_example02')
0026     )
0027 )
0028 from GeneratorInterface.Core.ExternalGeneratorFilter import ExternalGeneratorFilter
0029 process.gen2 = ExternalGeneratorFilter(_pythia8)
0030 
0031 process.compare = cms.EDAnalyzer("CompareGeneratorResultsAnalyzer", module1 = cms.untracked.string("gen1"), module2 =cms.untracked.string("gen2"))
0032 
0033 process.p = cms.Path(process.gen1+process.gen2+process.compare)