Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 process.load("FWCore.Framework.test.cmsExceptionsFatal_cff")
0005 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
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 # The following three lines reduce the clutter of repeated printouts
0018 # of the same exception message.
0019 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0020 
0021 process.MessageLogger.cerr.enableStatistics = False
0022 
0023 
0024 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(5))
0025 
0026 process.source = cms.Source("EmptySource")
0027 
0028 from Configuration.Generator.PythiaUESettings_cfi import *
0029 
0030 process.generator = cms.EDFilter("Pythia6GeneratorFilter",
0031     pythiaHepMCVerbosity = cms.untracked.bool(True),
0032     maxEventsToPrint = cms.untracked.int32(0),
0033     pythiaPylistVerbosity = cms.untracked.int32(1),
0034     comEnergy = cms.double(10000.0),
0035     PythiaParameters = cms.PSet(
0036         pythiaUESettingsBlock,
0037         processParameters = cms.vstring('MSEL=1         ! Quarkonia', 
0038         'CKIN(3)=50.',
0039             'MSTP(142)=2      ! turns on the PYEVWT Pt re-weighting routine'),
0040     CSAParameters = cms.vstring('CSAMODE = 7 ! cross-section reweighted quarkonia',
0041                                 'PTPOWER = 5 ! pt^6'),
0042         # This is a vector of ParameterSet names to be read, in this order
0043         parameterSets = cms.vstring('pythiaUESettings', 
0044             'processParameters',
0045         'CSAParameters')
0046     )
0047 )
0048 
0049 process.GEN = cms.OutputModule("PoolOutputModule",
0050     fileName = cms.untracked.string('TestCSAMode.root')
0051 )
0052 
0053 process.p = cms.Path(process.generator)
0054 process.outpath = cms.EndPath(process.GEN)
0055 
0056 process.schedule = cms.Schedule(process.p, process.outpath)