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