File indexing completed on 2024-04-06 12:13:55
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("TEST")
0004 process.load("FWCore.Framework.test.cmsExceptionsFatal_cff")
0005
0006 process.load("SimGeneral.HepPDTESSource.pdt_cfi")
0007
0008
0009 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0010 generator = cms.PSet(
0011 initialSeed = cms.untracked.uint32(123456789),
0012 engineName = cms.untracked.string('HepJamesRandom')
0013 )
0014 )
0015
0016
0017
0018
0019 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0020
0021
0022
0023
0024 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
0025
0026 process.source = cms.Source("EmptySource")
0027
0028 from Configuration.Generator.PythiaUESettings_cfi import *
0029
0030
0031 process.generator = cms.EDFilter("Pythia6GeneratorFilter",
0032 pythiaHepMCVerbosity = cms.untracked.bool(True),
0033 maxEventsToPrint = cms.untracked.int32(2),
0034 pythiaPylistVerbosity = cms.untracked.int32(1),
0035 doPDGConvert = cms.bool(True),
0036 comEnergy = cms.double(10000.0),
0037 PythiaParameters = cms.PSet(
0038 pythiaUESettingsBlock,
0039 processParameters = cms.vstring('MSEL=0 ! User defined processes',
0040 'MSUB(11)=1 ! Min bias process',
0041 'MSUB(12)=1 ! Min bias process',
0042 'MSUB(13)=1 ! Min bias process',
0043 'MSUB(28)=1 ! Min bias process',
0044 'MSUB(53)=1 ! Min bias process',
0045 'MSUB(68)=1 ! Min bias process',
0046 'MSUB(92)=1 ! Min bias process, single diffractive',
0047 'MSUB(93)=1 ! Min bias process, single diffractive',
0048 'MSUB(94)=1 ! Min bias process, double diffractive',
0049 'MSUB(95)=1 ! Min bias process'),
0050
0051
0052 parameterSets = cms.vstring(
0053 'pythiaUESettings',
0054 'processParameters')
0055 )
0056 )
0057
0058 process.GEN = cms.OutputModule("PoolOutputModule",
0059 fileName = cms.untracked.string('MinBiasWithPDGConvert.root')
0060 )
0061
0062 process.p = cms.Path(process.generator)
0063 process.outpath = cms.EndPath(process.GEN)
0064
0065 process.schedule = cms.Schedule(process.p, process.outpath)