4 raise RuntimeError(
"Variable \"PYTHIA8_nJetMax\" is not defined, this is needed to configure Pythia8 MLM matching settings. Please define it in your jobOptions")
6 print(
"PYTHIA8_nJetMax = %i" % PYTHIA8_nJetMax)
11 raise RuntimeError(
"Variable \"qCut\" is not defined, this is needed to configure Pythia8 MLM matching settings. Please define it in your jobOptions")
13 print(
"PYTHIA8_qCut = %f" % PYTHIA8_qCut)
18 raise RuntimeError(
"Variable \"coneRadius\" is not defined, this is needed to configure Pythia8 MLM matching settings. Please define it in your jobOptions")
20 print(
"PYTHIA8_coneRadius = %f" % PYTHIA8_coneRadius)
25 raise RuntimeError(
"Variable \"PYTHIA8_nQmatch\" is not defined, this is needed to configure Pythia8 MLM matching settings. Please define it in your jobOptions")
27 print(
"PYTHIA8_nQmatch = %i" % PYTHIA8_nQmatch)
30 genSeq.Pythia8.Commands += [
"Check:epTolErr = 1e-2"]
32 if "UserHooks" in genSeq.Pythia8.__slots__.keys():
33 genSeq.Pythia8.UserHooks += [
'JetMatchingMadgraph']
35 genSeq.Pythia8.UserHook =
'JetMatchingMadgraph'
37 genSeq.Pythia8.Commands += [
"JetMatching:merge = on",
38 "JetMatching:scheme = 1",
39 "JetMatching:setMad = off",
40 "JetMatching:nQmatch = %i" % PYTHIA8_nQmatch,
41 "JetMatching:qCut = %f" % PYTHIA8_qCut,
42 "JetMatching:eTjetMin = %f" % PYTHIA8_qCut,
43 "JetMatching:coneRadius = %f" % PYTHIA8_coneRadius,
44 "JetMatching:etaJetMax = 1000.0",
45 "JetMatching:nJetMax = %i" % PYTHIA8_nJetMax ]
47 if "computeEfficiency" in genSeq.Pythia8.__slots__.keys():
48 genSeq.Pythia8.computeEfficiency =
True