ATLAS Offline Software
Pythia8_HF_weights.py
Go to the documentation of this file.
1 # Warnings:
2 # please look at Pythia8_ShowerWeights.py for relevant warnings
3 #
4 # Pythia8 reweighting for (a subset of) hadronization parameters are only available in release 3.11 and later.
5 # For the time being, following from rFactb, all other parameters are varied by 10%: must be fixed from validation studies
6 
7 if "ShowerWeightNames" in genSeq.Pythia8.__slots__.keys():
8  print ("Initalizing Shower HF Weights from Pythia8_HF_Weights.py")
9  print ("Please notice that this functionality is present from 8.311 onward, but no checks are implemented in this respect.")
10  genSeq.Pythia8.Commands += [
11  'UncertaintyBands:doVariations = on',
12  #'StringFlav:mesonCvector = 1.3,' #no parameter for having such variation
13  'VariationFrag:List = {\
14  frag:aLund=0.61 frag:aLund=0.61,\
15  frag:aLund=0.75 frag:aLund=0.75,\
16  frag:bLund=0.88 frag:bLund=0.88,\
17  frag:bLund=1.1 frag:bLund=1.1,\
18  frag:rFactC=1.9 frag:rFactC=1.9,\
19  frag:rFactC=1.7 frag:rFactC=1.7,\
20  frag:rFactC=2.1 frag:rFactC=2.1,\
21  frag:rFactB=1.05 frag:rFactB=1.05,\
22  frag:rFactB=1.01 frag:rFactB=1.01,\
23  frag:rFactB=1.03 frag:rFactB=1.03,\
24  frag:rFactB=1.07 frag:rFactB=1.07,\
25  frag:rFactB=1.09 frag:rFactB=1.09,\
26  frag:sigma=0.302 frag:ptSigma=0.302,\
27  frag:sigma=0.368 frag:ptSigma=0.368,\
28  frag:xi=0.073 frag:xi=0.073,\
29  frag:xi=0.089 frag:xi=0.089,\
30  frag:rho=0.197 frag:rho=0.197,\
31  frag:rho=0.237 frag:rho=0.237,\
32  frag:x=0.815 frag:x=0.815,\
33  frag:x=1.015 frag:x=1.015,\
34  frag:y=0.0255 frag:y=0.0255,\
35  frag:y=0.0295 frag:y=0.0295\
36  }']
37 
38  genSeq.Pythia8.ShowerWeightNames += [
39  #"StringFlav:mesonCvector", # no parameter for having such variation
40  "frag:aLund=0.61",
41  "frag:aLund=0.75",
42  "frag:bLund=0.88",
43  "frag:bLund=1.1",
44  "frag:rFactC=1.9",
45  "frag:rFactC=1.7",
46  "frag:rFactC=2.1",
47  "frag:rFactB=1.05",
48  "frag:rFactB=1.01",
49  "frag:rFactB=1.03",
50  "frag:rFactB=1.07",
51  "frag:rFactB=1.09",
52  "frag:sigma=0.302",
53  "frag:sigma=0.368",
54  "frag:xi=0.073",
55  "frag:xi=0.089",
56  "frag:rho=0.197",
57  "frag:rho=0.237",
58  "frag:x=0.815",
59  "frag:x=1.015",
60  "frag:y=0.0255",
61  "frag:y=0.0295"
62  ]
63 
64