ATLAS Offline Software
Loading...
Searching...
No Matches
Pythia8_Base_Fragment.py
Go to the documentation of this file.
2from Pythia8_i.Pythia8_iConf import Pythia8_i
3genSeq += Pythia8_i("Pythia8")
4evgenConfig.generators += ["Pythia8"]
5
6if evgenConfig.PDGparams:
7
8 genSeq.Pythia8.Commands += [
9 "Main:timesAllowErrors = 500",
10 "ParticleDecays:limitTau0 = on",
11 "ParticleDecays:tau0Max = 10.0"]
12
13
14 from EvgenProdTools.offline_dict import parameters
15
16
17 particle_params = parameters.get("particles")
18 if particle_params:
19 for key, value in particle_params.items():
20
21 if int(key) in range(6,26):
22 genSeq.Pythia8.Commands += [
23 "{:d}:m0 = {}".format(int(key), value['mass']),
24 "{:d}:mWidth = {}".format(int(key), value['width'])
25 ]
26 else:
27 print ("Could not retrieve standard ATLAS particle parameters")
28
29
30 ew_params = parameters.get("EW_parameters")
31 if ew_params:
32
33 for key,value in ew_params.items():
34 if key[1] in ('sin2thetaW', 'sin2thetaWbar'):
35 genSeq.Pythia8.Commands += [
36 'StandardModel:{} = {}'.format(key[1], value)
37 ]
38 else:
39 print ("Could not retrieve standard ATLAS EW parameters")
40else:
41
42 genSeq.Pythia8.Commands += [
43 "Main:timesAllowErrors = 500",
44 "6:m0 = 172.5",
45 "23:m0 = 91.1876",
46 "23:mWidth = 2.4952",
47 "24:m0 = 80.399",
48 "24:mWidth = 2.085",
49 "StandardModel:sin2thetaW = 0.23113",
50 "StandardModel:sin2thetaWbar = 0.23146",
51 "ParticleDecays:limitTau0 = on",
52 "ParticleDecays:tau0Max = 10.0"]
53
54
56from MCJobOptionUtils.JOsupport import check_reset_proc_number
57check_reset_proc_number(opts)
58
59
62
63if "PYTHIA8VER" in os.environ:
64 verph8str = str(os.environ['PYTHIA8VER'])[:3]
65 verph8 = int(verph8str)
66 if verph8 > 314:
67 genSeq.Pythia8.Commands += ["TimeShower:recoilStrategyRF=1"]
68
69