Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-07-19 00:58:39

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("PROD")
0004 
0005 process.load("Configuration.StandardSequences.SimulationRandomNumberGeneratorSeeds_cff")
0006 
0007 process.source = cms.Source("EmptySource")
0008 
0009 process.generator = cms.EDFilter("Pythia8HepMC3GeneratorFilter",
0010     maxEventsToPrint = cms.untracked.int32(1),
0011     pythiaPylistVerbosity = cms.untracked.int32(1),
0012     filterEfficiency = cms.untracked.double(1.0),
0013     pythiaHepMCVerbosity = cms.untracked.bool(True),
0014     comEnergy = cms.double(7000.),
0015     #PPbarInitialState = cms.PSet(),
0016     #SLHAFileForPythia8 = cms.string('Configuration/Generator/data/CSA07SUSYBSM_LM9p_sftsdkpyt_slha.out'),
0017     #reweightGen = cms.PSet( # flat in pT
0018     #   pTRef = cms.double(15.0),
0019     #   power = cms.double(4.5)
0020     #),
0021     #reweightGenRap = cms.PSet( # flat in eta
0022     #   yLabSigmaFunc = cms.string("15.44/pow(x,0.0253)-12.56"),
0023     #   yLabPower = cms.double(2.),
0024     #   yCMSigmaFunc = cms.string("5.45/pow(x+64.84,0.34)"),
0025     #   yCMPower = cms.double(2.),
0026     #   pTHatMin = cms.double(15.),
0027     #   pTHatMax = cms.double(3000.)
0028     #),
0029     #reweightGenPtHatRap = cms.PSet( # flat in Pt and eta
0030     #   yLabSigmaFunc = cms.string("15.44/pow(x,0.0253)-12.56"),
0031     #   yLabPower = cms.double(2.),
0032     #   yCMSigmaFunc = cms.string("5.45/pow(x+64.84,0.34)"),
0033     #   yCMPower = cms.double(2.),
0034     #   pTHatMin = cms.double(15.),
0035     #   pTHatMax = cms.double(3000.)
0036     #),
0037     PythiaParameters = cms.PSet(
0038         pythia8_example02 = cms.vstring('HardQCD:all = on',
0039                                         'PhaseSpace:pTHatMin = 20.'),
0040         parameterSets = cms.vstring('pythia8_example02')
0041     )
0042 )
0043 
0044 # in order to use lhapdf PDF add a line like this to pythia8_example02:
0045 # 'PDF:pSet = LHAPDF6:CT10'
0046 
0047 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0048 process.MessageLogger = cms.Service("MessageLogger",
0049     cerr = cms.untracked.PSet(
0050         enable = cms.untracked.bool(False)
0051     ),
0052     cout = cms.untracked.PSet(
0053         default = cms.untracked.PSet(
0054             limit = cms.untracked.int32(2)
0055         ),
0056         enable = cms.untracked.bool(True)
0057     )
0058 )
0059 
0060 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0061     generator = cms.PSet(
0062         initialSeed = cms.untracked.uint32(123456789),
0063     )
0064 )
0065 
0066 process.maxEvents = cms.untracked.PSet(
0067     input = cms.untracked.int32(10)
0068 )
0069 
0070 process.GEN = cms.OutputModule("PoolOutputModule",
0071     fileName = cms.untracked.string('pythia8hmc3ex2.root')
0072 )
0073 
0074 process.p = cms.Path(process.generator)
0075 process.outpath = cms.EndPath(process.GEN)
0076 
0077 process.schedule = cms.Schedule(process.p, process.outpath)