CMS 3D CMS Logo

FxFxEWK.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 externalLHEProducer = cms.EDProducer("ExternalLHEProducer",
4  args = cms.vstring('/afs/cern.ch/user/c/cvicovil/public/TTWJetsToLNu_5f_NLO_FXFX_slc7_amd64_gcc900_CMSSW_12_0_2_tarball.tar.xz'),
5  nEvents = cms.untracked.uint32(1000),
6  numberOfParameters = cms.uint32(1),
7  outputFile = cms.string('cmsgrid_final.lhe'),
8  scriptName = cms.FileInPath('GeneratorInterface/LHEInterface/data/run_generic_tarball_cvmfs.sh')
9 )
10 
11 # Link to datacards:
12 # https://github.com/cms-sw/genproductions/tree/5fb3762c8be13dabb89a8580863856201d56f49c/bin/MadGraph5_aMCatNLO/cards/production/2017/13TeV/TTWJets/TTWJetsToLNu_5f_NLO_FXFX
13 
18 
19 generator = cms.EDFilter("Pythia8HadronizerFilter",
20  maxEventsToPrint = cms.untracked.int32(1),
21  pythiaPylistVerbosity = cms.untracked.int32(1),
22  filterEfficiency = cms.untracked.double(1.0),
23  pythiaHepMCVerbosity = cms.untracked.bool(False),
24  comEnergy = cms.double(13000.),
25  PythiaParameters = cms.PSet(
26  pythia8CommonSettingsBlock,
27  pythia8CP5SettingsBlock,
28  pythia8aMCatNLOSettingsBlock,
29  pythia8PSweightsSettingsBlock,
30  processParameters = cms.vstring(
31  'JetMatching:setMad = off',
32  'JetMatching:scheme = 1',
33  'JetMatching:doVeto = off', # Turn OFF Pythia JetMatching
34  'JetMatching:merge = on',
35  'JetMatching:jetAlgorithm = 2',
36  'JetMatching:etaJetMax = 1000',
37  'JetMatching:coneRadius = 1.',
38  'JetMatching:slowJetPower = 1',
39  'JetMatching:qCut = 42.', #this is the actual merging scale
40  'JetMatching:doFxFx = on',
41  'JetMatching:qCutME = 20.',#this must match the ptj cut in the lhe generation step
42  'JetMatching:nQmatch = 5', #4 corresponds to 4-flavour scheme (no matching of b-quarks), 5 for 5-flavour scheme
43  'JetMatching:nJetMax = 1', #number of partons in born matrix element for highest multiplicity
44 
45  ),
46  parameterSets = cms.vstring('pythia8CommonSettings',
47  'pythia8CP5Settings',
48  'pythia8aMCatNLOSettings',
49  'pythia8PSweightsSettings',
50  'processParameters',
51  )
52  ),
53  UserCustomization = cms.VPSet(
54  cms.PSet(
55  pluginName = cms.string("JetMatchingEWKFxFx"), # Call the new JetMatching plugin
56  )
57  ),
58 )
59