ATLAS Offline Software
Loading...
Searching...
No Matches
Pythia8_MLM_ClassicalMatch.py
Go to the documentation of this file.
1try:
2 PYTHIA8_nJetMax
3except RuntimeError:
4 raise RuntimeError("Variable \"PYTHIA8_nJetMax\" is not defined, this is needed to configure Pythia8 MLM matching settings. Please define it in your jobOptions")
5else:
6 print("PYTHIA8_nJetMax = %i" % PYTHIA8_nJetMax)
7
8try:
9 PYTHIA8_qCut
10except RuntimeError:
11 raise RuntimeError("Variable \"qCut\" is not defined, this is needed to configure Pythia8 MLM matching settings. Please define it in your jobOptions")
12else:
13 print("PYTHIA8_qCut = %f" % PYTHIA8_qCut)
14
15try:
16 PYTHIA8_coneRadius
17except RuntimeError:
18 raise RuntimeError("Variable \"coneRadius\" is not defined, this is needed to configure Pythia8 MLM matching settings. Please define it in your jobOptions")
19else:
20 print("PYTHIA8_coneRadius = %f" % PYTHIA8_coneRadius)
21
22try:
23 PYTHIA8_nQmatch
24except RuntimeError:
25 raise RuntimeError("Variable \"PYTHIA8_nQmatch\" is not defined, this is needed to configure Pythia8 MLM matching settings. Please define it in your jobOptions")
26else:
27 print("PYTHIA8_nQmatch = %i" % PYTHIA8_nQmatch)
28
29# decrease relative precision
30genSeq.Pythia8.Commands += ["Check:epTolErr = 1e-2"]
31
32if "UserHooks" in genSeq.Pythia8.__slots__.keys():
33 genSeq.Pythia8.UserHooks += ['JetMatchingMadgraph']
34else:
35 genSeq.Pythia8.UserHook = 'JetMatchingMadgraph'
36
37genSeq.Pythia8.Commands += ["JetMatching:merge = on",
38 "JetMatching:scheme = 1",
39 "JetMatching:setMad = off", # if on, following "qCut" setting can be removed
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 ]
46
47if "computeEfficiency" in genSeq.Pythia8.__slots__.keys():
48 genSeq.Pythia8.computeEfficiency = True
49
void print(char *figname, TCanvas *c1)