ATLAS Offline Software
Pythia8_CKKWL_kTMerge.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 CKKW-L kT merging settings. Please define it in your jobOptions")
5 else:
6  print ("PYTHIA8_nJetMax = %i" % PYTHIA8_nJetMax)
7 
8 try:
9  PYTHIA8_Process
10 except RuntimeError:
11  raise RuntimeError("Variable \"PYTHIA8_Process\" is not defined, this is needed to configure Pythia8 CKKW-L kT merging settings. Please define it in your jobOptions")
12 else:
13  print ("PYTHIA8_Process = %s" % PYTHIA8_Process)
14 
15 try:
16  PYTHIA8_TMS
17 except RuntimeError:
18  raise RuntimeError("Variable \"TMS\" is not defined, this is needed to configure Pythia8 CKKW-L kT merging settings. Please define it in your jobOptions")
19 else:
20  print ("PYTHIA8_TMS = %f" % PYTHIA8_TMS)
21 
22 try:
23  PYTHIA8_Dparameter
24 except RuntimeError:
25  raise RuntimeError("Variable \"Dparameter\" is not defined, this is needed to configure Pythia8 CKKW-L kT merging settings. Please define it in your jobOptions")
26 else:
27  print ("PYTHIA8_Dparameter = %f" % PYTHIA8_Dparameter)
28 
29 try:
30  PYTHIA8_nQuarksMerge
31 except RuntimeError:
32  raise RuntimeError("Variable \"PYTHIA8_nQuarksMerge\" is not defined, this is needed to configure Pythia8 CKKW-L kT merging settings. Please define it in your jobOptions")
33 else:
34  print ("PYTHIA8_nQuarksMerge = %i" % PYTHIA8_nQuarksMerge)
35 
36 genSeq.Pythia8.Commands += ["Merging:doKTMerging = on",
37  "Merging:ktType = 1",
38  "Merging:nJetMax = %i" % PYTHIA8_nJetMax,
39  "Merging:Process = %s" % PYTHIA8_Process,
40  "Merging:TMS = %f" % PYTHIA8_TMS,
41  "Merging:Dparameter = %f" % PYTHIA8_Dparameter,
42  "Merging:nQuarksMerge = %i" % PYTHIA8_nQuarksMerge]
43 
44 if "computeEfficiency" in genSeq.Pythia8.__slots__.keys():
45  genSeq.Pythia8.computeEfficiency = True
46