Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #Hadronization of LHE file, Tune CUETP8M1, 13TeV, matching native pythia8 MLM_5f_max1j
0002 
0003 import FWCore.ParameterSet.Config as cms
0004 
0005 process = cms.Process("PROD")
0006 
0007 from Configuration.Generator.Pythia8CommonSettings_cfi import *
0008 from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import *
0009 
0010 #process.source = cms.Source("EmptySource")
0011 process.source = cms.Source("LHESource",
0012     fileNames = cms.untracked.vstring('file:zjj_mg.lhe')
0013 )
0014 
0015 process.generator = cms.EDFilter("Pythia8HadronizerFilter",
0016   maxEventsToPrint = cms.untracked.int32(1),
0017   pythiaPylistVerbosity = cms.untracked.int32(1),
0018   filterEfficiency = cms.untracked.double(1.0),
0019   pythiaHepMCVerbosity = cms.untracked.bool(False),
0020   comEnergy = cms.double(13000.),
0021   PythiaParameters = cms.PSet(
0022     pythia8CommonSettingsBlock,
0023     pythia8CUEP8M1SettingsBlock,
0024     processParameters = cms.vstring(
0025       'JetMatching:setMad = off',
0026       'JetMatching:scheme = 1',
0027       'JetMatching:merge = on',
0028       'JetMatching:jetAlgorithm = 2',
0029       'JetMatching:etaJetMax = 5.',
0030       'JetMatching:coneRadius = 1.',
0031       'JetMatching:slowJetPower = 1',
0032       'JetMatching:qCut = 30.', #this is the actual merging scale
0033       'JetMatching:nQmatch = 5', #4 corresponds to 4-flavour scheme (no matching of b-quarks), 5 for 5-flavour scheme
0034       'JetMatching:nJetMax = 2', #number of partons in born matrix element for highest multiplicity
0035       'JetMatching:doShowerKt = off', #off for MLM matching, turn on for shower-kT matching
0036     ),
0037     parameterSets = cms.vstring('pythia8CommonSettings',
0038                                 'pythia8CUEP8M1Settings',
0039                                 'processParameters',
0040     )
0041   )
0042 )
0043 
0044 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0045 process.MessageLogger = cms.Service("MessageLogger",
0046     cerr = cms.untracked.PSet(
0047         enable = cms.untracked.bool(False)
0048     ),
0049     cout = cms.untracked.PSet(
0050         default = cms.untracked.PSet(
0051             limit = cms.untracked.int32(2)
0052         ),
0053         enable = cms.untracked.bool(True)
0054     )
0055 )
0056 
0057 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0058     generator = cms.PSet(
0059         initialSeed = cms.untracked.uint32(123456789),
0060     )
0061 )
0062 
0063 process.maxEvents = cms.untracked.PSet(
0064     input = cms.untracked.int32(100)
0065 )
0066 
0067 process.GEN = cms.OutputModule("PoolOutputModule",
0068     fileName = cms.untracked.string('pythia8ex10.root')
0069 )
0070 
0071 process.p = cms.Path(process.generator)
0072 process.outpath = cms.EndPath(process.GEN)
0073 
0074 process.schedule = cms.Schedule(process.p, process.outpath)