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 
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("Pythia8GeneratorFilter",
0010     maxEventsToPrint = cms.untracked.int32(0),
0011     pythiaPylistVerbosity = cms.untracked.int32(1),
0012     filterEfficiency = cms.untracked.double(1.0),
0013     pythiaHepMCVerbosity = cms.untracked.bool(False),
0014     comEnergy = cms.double(13000.),
0015 
0016    #Turning on CMSSW Pythia8Interface resonance scale setting and pythia8 emission veto:
0017 
0018     PythiaParameters = cms.PSet(
0019         pythia8PowhegEmissionVetoSettings = cms.vstring(
0020               'POWHEG:veto = 1',
0021               'POWHEG:pTdef = 1',
0022               'POWHEG:emitted = 0',
0023               'POWHEG:pTemt = 0',
0024               'POWHEG:pThard = 0',
0025               'POWHEG:vetoCount = 100',
0026               'SpaceShower:pTmaxMatch = 2',
0027               'TimeShower:pTmaxMatch = 2',
0028         ),
0029         pythia8_example12 = cms.vstring(
0030               'POWHEG:bb4l = on',
0031               'Beams:frameType = 4',
0032               'Beams:LHEF = powheg-b_bbar_4l.lhe',
0033         ),
0034         parameterSets = cms.vstring('pythia8PowhegEmissionVetoSettings', 'pythia8_example12')
0035     )
0036 
0037 )
0038 
0039 #if emissionVeto is on && MPIveto > 0 add 'MultipartonInteractions:pTmaxMatch = 2'
0040 
0041 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0042 process.MessageLogger = cms.Service("MessageLogger",
0043     cerr = cms.untracked.PSet(
0044         enable = cms.untracked.bool(False)
0045     ),
0046     cout = cms.untracked.PSet(
0047         default = cms.untracked.PSet(
0048             limit = cms.untracked.int32(2)
0049         ),
0050         enable = cms.untracked.bool(True)
0051     )
0052 )
0053 
0054 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0055     generator = cms.PSet(
0056         initialSeed = cms.untracked.uint32(123456789),
0057     )
0058 )
0059 
0060 process.maxEvents = cms.untracked.PSet(
0061     input = cms.untracked.int32(100)
0062 )
0063 
0064 process.GEN = cms.OutputModule("PoolOutputModule",
0065     fileName = cms.untracked.string('pythia8ex12.root')
0066 )
0067 
0068 process.p = cms.Path(process.generator)
0069 process.outpath = cms.EndPath(process.GEN)
0070 
0071 process.schedule = cms.Schedule(process.p, process.outpath)