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, aMCatNLO, matching native pythia8 FXFX_5f_max1j_max1p
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 from Configuration.Generator.Pythia8aMCatNLOSettings_cfi import *
0010 
0011 #process.source = cms.Source("EmptySource")
0012 process.source = cms.Source("LHESource",
0013     fileNames = cms.untracked.vstring('file:w01j_5f_NLO.lhe')
0014 )
0015 
0016 process.generator = cms.EDFilter("Pythia8HadronizerFilter",
0017   maxEventsToPrint = cms.untracked.int32(1),
0018   pythiaPylistVerbosity = cms.untracked.int32(1),
0019   filterEfficiency = cms.untracked.double(1.0),
0020   pythiaHepMCVerbosity = cms.untracked.bool(False),
0021   comEnergy = cms.double(13000.),
0022   PythiaParameters = cms.PSet(
0023     pythia8CommonSettingsBlock,
0024     pythia8CUEP8M1SettingsBlock,
0025     pythia8aMCatNLOSettingsBlock,
0026     processParameters = cms.vstring(
0027       'JetMatching:setMad = off',
0028       'JetMatching:scheme = 1',
0029       'JetMatching:merge = on',
0030       'JetMatching:jetAlgorithm = 2',
0031       'JetMatching:etaJetMax = 999.',
0032       'JetMatching:coneRadius = 1.',
0033       'JetMatching:slowJetPower = 1',
0034       'JetMatching:qCut = 30.', #this is the actual merging scale
0035       'JetMatching:doFxFx = on',
0036       'JetMatching:qCutME = 10.',#this must match the ptj cut in the lhe generation step
0037       'JetMatching:nQmatch = 5', #4 corresponds to 4-flavour scheme (no matching of b-quarks), 5 for 5-flavour scheme
0038       'TimeShower:nPartonsInBorn = 1', #number of coloured particles (before resonance decays) in highest multiplicity born matrix element
0039       'JetMatching:nJetMax = 1', #number of partons in born matrix element for highest multiplicity
0040     ),
0041     parameterSets = cms.vstring('pythia8CommonSettings',
0042                                 'pythia8CUEP8M1Settings',
0043                                 'pythia8aMCatNLOSettings',
0044                                 'processParameters',
0045     )
0046   )
0047 )
0048 
0049 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0050 process.MessageLogger = cms.Service("MessageLogger",
0051     cerr = cms.untracked.PSet(
0052         enable = cms.untracked.bool(False)
0053     ),
0054     cout = cms.untracked.PSet(
0055         default = cms.untracked.PSet(
0056             limit = cms.untracked.int32(10)
0057         ),
0058         enable = cms.untracked.bool(True)
0059     )
0060 )
0061 
0062 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0063     generator = cms.PSet(
0064         initialSeed = cms.untracked.uint32(123456789),
0065     )
0066 )
0067 
0068 process.maxEvents = cms.untracked.PSet(
0069     input = cms.untracked.int32(10)
0070 )
0071 
0072 process.GEN = cms.OutputModule("PoolOutputModule",
0073     fileName = cms.untracked.string('pythia8ex9.root')
0074 )
0075 
0076 process.p = cms.Path(process.generator)
0077 process.outpath = cms.EndPath(process.GEN)
0078 
0079 process.schedule = cms.Schedule(process.p, process.outpath)