Skip to content

Commit 46ede64

Browse files
committed
bes3 pip
1 parent 47f6c08 commit 46ede64

48 files changed

Lines changed: 1878 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
data_central:
2+
- 3.038
3+
- 3.24
4+
- 3.084
5+
- 2.713
6+
- 2.286
7+
- 1.862
8+
- 1.53
9+
- 1.238
10+
- 0.955
11+
- 0.767
12+
- 0.601
13+
- 0.396
14+
- 0.26
15+
- 0.157
16+
- 0.057
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from rawdata import dat_2
2+
3+
dat_2()
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
bins:
2+
- ph:
3+
min: 0.2
4+
mid: null
5+
max: 0.25
6+
- ph:
7+
min: 0.25
8+
mid: null
9+
max: 0.3
10+
- ph:
11+
min: 0.3
12+
mid: null
13+
max: 0.35
14+
- ph:
15+
min: 0.35
16+
mid: null
17+
max: 0.4
18+
- ph:
19+
min: 0.4
20+
mid: null
21+
max: 0.45
22+
- ph:
23+
min: 0.45
24+
mid: null
25+
max: 0.5
26+
- ph:
27+
min: 0.5
28+
mid: null
29+
max: 0.55
30+
- ph:
31+
min: 0.55
32+
mid: null
33+
max: 0.6
34+
- ph:
35+
min: 0.6
36+
mid: null
37+
max: 0.65
38+
- ph:
39+
min: 0.65
40+
mid: null
41+
max: 0.7
42+
- ph:
43+
min: 0.7
44+
mid: null
45+
max: 0.75
46+
- ph:
47+
min: 0.75
48+
mid: null
49+
max: 0.8
50+
- ph:
51+
min: 0.8
52+
mid: null
53+
max: 0.85
54+
- ph:
55+
min: 0.85
56+
mid: null
57+
max: 0.9
58+
- ph:
59+
min: 0.9
60+
mid: null
61+
max: 0.95
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
setname: 'BESIII_SIA-PI_2GEV_EE-PIP'
2+
3+
nnpdf_metadata:
4+
nnpdf31_process: "SIA-PI"
5+
experiment: "BESIII"
6+
7+
arXiv:
8+
url: "https://arxiv.org/abs/2502.16084"
9+
iNSPIRE:
10+
url: "https://inspirehep.net/literature/2893764"
11+
# hepdata:
12+
# url: "N/A"
13+
# version: N/A
14+
15+
version: 1
16+
version_comment: "Initial implementation"
17+
18+
implemented_observables:
19+
20+
- observable: {description: "normalized x-sec differential wrt $p_h$", label: '$\frac{1}{\sigma_{tot}}\frac{d\sigma^h}{dp_h}$', units: '$$'}
21+
observable_name: PH
22+
process_type: SIA_PH
23+
ndata: 15
24+
tables: []
25+
kinematics:
26+
variables:
27+
ph: {description: "hadron momentum", label: '$p_h$', units: ''}
28+
file: kinematics.yaml
29+
data_central: data.yaml
30+
data_uncertainties:
31+
- uncertainties.yaml
32+
kinematic_coverage: [ph]
33+
plotting:
34+
dataset_label: 'BESIII SIA 2 GeV PI+ : $\frac{1}{\sigma_{tot}}\frac{d\sigma^h}{dp_h}$'
35+
x_scale: linear
36+
plot_x: ph
37+
y_label: '$\frac{1}{\sigma_{tot}}\frac{d\sigma^h}{dp_h}$'
38+
# theory:
39+
# FK_tables:
40+
# - -
41+
# operation: 'null'
Lines changed: 240 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,240 @@
1+
gev2 = [
2+
(0.20, 0.25, 2.0, 3.038, 0.014, 0.078),
3+
(0.25, 0.30, 2.0, 3.240, 0.014, 0.122),
4+
(0.30, 0.35, 2.0, 3.084, 0.013, 0.132),
5+
(0.35, 0.40, 2.0, 2.713, 0.012, 0.123),
6+
(0.40, 0.45, 2.0, 2.286, 0.011, 0.076),
7+
(0.45, 0.50, 2.0, 1.862, 0.010, 0.037),
8+
(0.50, 0.55, 2.0, 1.530, 0.009, 0.008),
9+
(0.55, 0.60, 2.0, 1.238, 0.008, 0.056),
10+
(0.60, 0.65, 2.0, 0.955, 0.008, 0.097),
11+
(0.65, 0.70, 2.0, 0.767, 0.007, 0.069),
12+
(0.70, 0.75, 2.0, 0.601, 0.006, 0.049),
13+
(0.75, 0.80, 2.0, 0.396, 0.005, 0.034),
14+
(0.80, 0.85, 2.0, 0.260, 0.005, 0.017),
15+
(0.85, 0.90, 2.0, 0.157, 0.004, 0.025),
16+
(0.90, 0.95, 2.0, 0.057, 0.003, 0.017),
17+
]
18+
19+
gev2p2 = [
20+
(0.20, 0.25, 2.2, 3.343, 0.013, 0.061),
21+
(0.25, 0.30, 2.2, 3.482, 0.013, 0.096),
22+
(0.30, 0.35, 2.2, 3.244, 0.012, 0.124),
23+
(0.35, 0.40, 2.2, 2.824, 0.011, 0.108),
24+
(0.40, 0.45, 2.2, 2.384, 0.010, 0.091),
25+
(0.45, 0.50, 2.2, 1.950, 0.009, 0.054),
26+
(0.50, 0.55, 2.2, 1.555, 0.008, 0.034),
27+
(0.55, 0.60, 2.2, 1.242, 0.008, 0.031),
28+
(0.60, 0.65, 2.2, 0.986, 0.007, 0.045),
29+
(0.65, 0.70, 2.2, 0.836, 0.006, 0.020),
30+
(0.70, 0.75, 2.2, 0.669, 0.006, 0.033),
31+
(0.75, 0.80, 2.2, 0.533, 0.005, 0.037),
32+
(0.80, 0.85, 2.2, 0.415, 0.005, 0.035),
33+
(0.85, 0.90, 2.2, 0.265, 0.004, 0.025),
34+
(0.90, 0.95, 2.2, 0.147, 0.003, 0.006),
35+
(0.95, 1.00, 2.2, 0.089, 0.003, 0.017),
36+
(1.00, 1.05, 2.2, 0.031, 0.003, 0.013),
37+
]
38+
39+
gev2p396 = [
40+
(0.20, 0.25, 2.396, 3.287, 0.006, 0.082),
41+
(0.25, 0.30, 2.396, 3.471, 0.006, 0.092),
42+
(0.30, 0.35, 2.396, 3.306, 0.006, 0.080),
43+
(0.35, 0.40, 2.396, 2.972, 0.006, 0.049),
44+
(0.40, 0.45, 2.396, 2.532, 0.005, 0.023),
45+
(0.45, 0.50, 2.396, 2.082, 0.005, 0.020),
46+
(0.50, 0.55, 2.396, 1.674, 0.004, 0.005),
47+
(0.55, 0.60, 2.396, 1.369, 0.004, 0.007),
48+
(0.60, 0.65, 2.396, 1.086, 0.004, 0.012),
49+
(0.65, 0.70, 2.396, 0.847, 0.003, 0.018),
50+
(0.70, 0.75, 2.396, 0.664, 0.003, 0.022),
51+
(0.75, 0.80, 2.396, 0.539, 0.003, 0.024),
52+
(0.80, 0.85, 2.396, 0.472, 0.002, 0.034),
53+
(0.85, 0.90, 2.396, 0.376, 0.002, 0.041),
54+
(0.90, 0.95, 2.396, 0.284, 0.002, 0.032),
55+
(0.95, 1.00, 2.396, 0.182, 0.002, 0.025),
56+
(1.00, 1.05, 2.396, 0.087, 0.001, 0.010),
57+
(1.05, 1.10, 2.396, 0.045, 0.001, 0.005),
58+
(1.10, 1.15, 2.396, 0.015, 0.001, 0.006),
59+
]
60+
61+
gev2p6444 = [
62+
(0.20, 0.25, 2.6444, 3.397, 0.010, 0.128),
63+
(0.25, 0.30, 2.6444, 3.567, 0.010, 0.119),
64+
(0.30, 0.35, 2.6444, 3.367, 0.010, 0.097),
65+
(0.35, 0.40, 2.6444, 3.021, 0.009, 0.065),
66+
(0.40, 0.45, 2.6444, 2.586, 0.008, 0.018),
67+
(0.45, 0.50, 2.6444, 2.178, 0.008, 0.019),
68+
(0.50, 0.55, 2.6444, 1.816, 0.007, 0.024),
69+
(0.55, 0.60, 2.6444, 1.467, 0.006, 0.033),
70+
(0.60, 0.65, 2.6444, 1.190, 0.006, 0.034),
71+
(0.65, 0.70, 2.6444, 0.924, 0.005, 0.038),
72+
(0.70, 0.75, 2.6444, 0.732, 0.005, 0.033),
73+
(0.75, 0.80, 2.6444, 0.585, 0.004, 0.039),
74+
(0.80, 0.85, 2.6444, 0.466, 0.004, 0.042),
75+
(0.85, 0.90, 2.6444, 0.366, 0.003, 0.039),
76+
(0.90, 0.95, 2.6444, 0.310, 0.003, 0.035),
77+
(0.95, 1.00, 2.6444, 0.282, 0.003, 0.035),
78+
(1.00, 1.05, 2.6444, 0.225, 0.003, 0.039),
79+
(1.05, 1.10, 2.6444, 0.154, 0.003, 0.026),
80+
(1.10, 1.15, 2.6444, 0.089, 0.002, 0.016),
81+
(1.15, 1.20, 2.6444, 0.039, 0.002, 0.005),
82+
(1.20, 1.25, 2.6444, 0.017, 0.002, 0.003),
83+
]
84+
85+
gev2p9 = [
86+
(0.20, 0.25, 2.9, 3.470, 0.006, 0.187),
87+
(0.25, 0.30, 2.9, 3.633, 0.006, 0.185),
88+
(0.30, 0.35, 2.9, 3.455, 0.006, 0.139),
89+
(0.35, 0.40, 2.9, 3.128, 0.006, 0.084),
90+
(0.40, 0.45, 2.9, 2.712, 0.005, 0.031),
91+
(0.45, 0.50, 2.9, 2.299, 0.005, 0.011),
92+
(0.50, 0.55, 2.9, 1.906, 0.004, 0.033),
93+
(0.55, 0.60, 2.9, 1.545, 0.004, 0.045),
94+
(0.60, 0.65, 2.9, 1.266, 0.004, 0.051),
95+
(0.65, 0.70, 2.9, 1.014, 0.003, 0.056),
96+
(0.70, 0.75, 2.9, 0.828, 0.003, 0.056),
97+
(0.75, 0.80, 2.9, 0.675, 0.003, 0.054),
98+
(0.80, 0.85, 2.9, 0.551, 0.003, 0.045),
99+
(0.85, 0.90, 2.9, 0.439, 0.002, 0.044),
100+
(0.90, 0.95, 2.9, 0.347, 0.002, 0.044),
101+
(0.95, 1.00, 2.9, 0.279, 0.002, 0.042),
102+
(1.00, 1.05, 2.9, 0.226, 0.002, 0.036),
103+
(1.05, 1.10, 2.9, 0.182, 0.002, 0.031),
104+
(1.10, 1.15, 2.9, 0.165, 0.002, 0.028),
105+
(1.15, 1.20, 2.9, 0.133, 0.002, 0.026),
106+
(1.20, 1.25, 2.9, 0.089, 0.001, 0.020),
107+
(1.25, 1.30, 2.9, 0.043, 0.001, 0.012),
108+
(1.30, 1.35, 2.9, 0.018, 0.001, 0.002),
109+
]
110+
111+
gev3p05 = [
112+
(0.20, 0.25, 3.05, 3.518, 0.018, 0.458),
113+
(0.25, 0.30, 3.05, 3.662, 0.018, 0.459),
114+
(0.30, 0.35, 3.05, 3.500, 0.017, 0.410),
115+
(0.35, 0.40, 3.05, 3.157, 0.016, 0.338),
116+
(0.40, 0.45, 3.05, 2.769, 0.015, 0.295),
117+
(0.45, 0.50, 3.05, 2.324, 0.013, 0.260),
118+
(0.50, 0.55, 3.05, 1.948, 0.012, 0.209),
119+
(0.55, 0.60, 3.05, 1.621, 0.011, 0.164),
120+
(0.60, 0.65, 3.05, 1.319, 0.010, 0.144),
121+
(0.65, 0.70, 3.05, 1.047, 0.009, 0.120),
122+
(0.70, 0.75, 3.05, 0.862, 0.008, 0.103),
123+
(0.75, 0.80, 3.05, 0.706, 0.008, 0.095),
124+
(0.80, 0.85, 3.05, 0.563, 0.007, 0.079),
125+
(0.85, 0.90, 3.05, 0.470, 0.007, 0.068),
126+
(0.90, 0.95, 3.05, 0.379, 0.006, 0.061),
127+
(0.95, 1.00, 3.05, 0.316, 0.006, 0.056),
128+
(1.00, 1.05, 3.05, 0.247, 0.005, 0.053),
129+
(1.05, 1.10, 3.05, 0.186, 0.005, 0.040),
130+
(1.10, 1.15, 3.05, 0.160, 0.005, 0.040),
131+
(1.15, 1.20, 3.05, 0.130, 0.004, 0.029),
132+
(1.20, 1.25, 3.05, 0.120, 0.004, 0.027),
133+
(1.25, 1.30, 3.05, 0.092, 0.004, 0.027),
134+
(1.30, 1.35, 3.05, 0.060, 0.003, 0.021),
135+
(1.35, 1.40, 3.05, 0.027, 0.002, 0.010),
136+
]
137+
138+
gev3p5 = [
139+
(0.20, 0.25, 3.5, 3.680, 0.040, 0.352),
140+
(0.25, 0.30, 3.5, 3.862, 0.040, 0.340),
141+
(0.30, 0.35, 3.5, 3.606, 0.038, 0.273),
142+
(0.35, 0.40, 3.5, 3.319, 0.036, 0.203),
143+
(0.40, 0.45, 3.5, 2.803, 0.032, 0.117),
144+
(0.45, 0.50, 3.5, 2.487, 0.030, 0.045),
145+
(0.50, 0.55, 3.5, 2.014, 0.026, 0.022),
146+
(0.55, 0.60, 3.5, 1.691, 0.024, 0.062),
147+
(0.60, 0.65, 3.5, 1.363, 0.022, 0.077),
148+
(0.65, 0.70, 3.5, 1.131, 0.020, 0.092),
149+
(0.70, 0.75, 3.5, 0.917, 0.018, 0.097),
150+
(0.75, 0.80, 3.5, 0.759, 0.016, 0.100),
151+
(0.80, 0.85, 3.5, 0.599, 0.015, 0.087),
152+
(0.85, 0.90, 3.5, 0.497, 0.014, 0.081),
153+
(0.90, 0.95, 3.5, 0.406, 0.013, 0.068),
154+
(0.95, 1.00, 3.5, 0.328, 0.012, 0.060),
155+
(1.00, 1.05, 3.5, 0.296, 0.012, 0.053),
156+
(1.05, 1.10, 3.5, 0.265, 0.012, 0.046),
157+
(1.10, 1.15, 3.5, 0.205, 0.011, 0.035),
158+
(1.15, 1.20, 3.5, 0.183, 0.010, 0.030),
159+
(1.20, 1.25, 3.5, 0.147, 0.009, 0.028),
160+
(1.25, 1.30, 3.5, 0.131, 0.009, 0.024),
161+
(1.30, 1.35, 3.5, 0.113, 0.009, 0.024),
162+
(1.35, 1.40, 3.5, 0.076, 0.007, 0.016),
163+
(1.40, 1.45, 3.5, 0.069, 0.007, 0.015),
164+
]
165+
166+
gev3p671 = [
167+
(0.20, 0.25, 3.671, 3.792, 0.038, 0.297),
168+
(0.25, 0.30, 3.671, 3.966, 0.038, 0.282),
169+
(0.30, 0.35, 3.671, 3.763, 0.037, 0.231),
170+
(0.35, 0.40, 3.671, 3.376, 0.034, 0.158),
171+
(0.40, 0.45, 3.671, 2.954, 0.032, 0.083),
172+
(0.45, 0.50, 3.671, 2.500, 0.029, 0.033),
173+
(0.50, 0.55, 3.671, 2.055, 0.026, 0.028),
174+
(0.55, 0.60, 3.671, 1.728, 0.024, 0.055),
175+
(0.60, 0.65, 3.671, 1.403, 0.022, 0.066),
176+
(0.65, 0.70, 3.671, 1.147, 0.020, 0.074),
177+
(0.70, 0.75, 3.671, 0.915, 0.018, 0.078),
178+
(0.75, 0.80, 3.671, 0.790, 0.017, 0.082),
179+
(0.80, 0.85, 3.671, 0.637, 0.016, 0.076),
180+
(0.85, 0.90, 3.671, 0.545, 0.015, 0.084),
181+
(0.90, 0.95, 3.671, 0.442, 0.013, 0.070),
182+
(0.95, 1.00, 3.671, 0.379, 0.013, 0.066),
183+
(1.00, 1.05, 3.671, 0.295, 0.012, 0.056),
184+
(1.05, 1.10, 3.671, 0.257, 0.011, 0.051),
185+
(1.10, 1.15, 3.671, 0.204, 0.011, 0.043),
186+
(1.15, 1.20, 3.671, 0.181, 0.010, 0.037),
187+
(1.20, 1.25, 3.671, 0.157, 0.009, 0.033),
188+
(1.25, 1.30, 3.671, 0.130, 0.009, 0.028),
189+
(1.30, 1.35, 3.671, 0.122, 0.008, 0.029),
190+
(1.35, 1.40, 3.671, 0.097, 0.008, 0.025),
191+
(1.40, 1.45, 3.671, 0.072, 0.007, 0.023),
192+
]
193+
194+
import yaml
195+
196+
from nnpdf_data.filter_utils.utils import prettify_float
197+
198+
yaml.add_representer(float, prettify_float)
199+
200+
201+
class magic:
202+
def __init__(self, dataset):
203+
self.data_central = []
204+
self.kin = []
205+
self.error = []
206+
for tpl in dataset:
207+
kin_min, kin_max, q, value, stat, sys = tpl
208+
kin_value = {'ph': {'min': kin_min, 'mid': None, 'max': kin_max}}
209+
data_central_value = value
210+
error_value = {'stat': stat, 'sys': sys}
211+
self.data_central.append(data_central_value)
212+
self.kin.append(kin_value)
213+
self.error.append(error_value)
214+
215+
self.error_definition = {
216+
'stat': {'definition': 'statistical uncertainty', 'treatment': 'ADD', 'type': 'UNCORR'},
217+
'sys': {'definition': 'systematic uncertainty', 'treatment': 'ADD', 'type': 'UNCORR'},
218+
}
219+
220+
self.data_central_yaml = {'data_central': self.data_central}
221+
self.kin_yaml = {'bins': self.kin}
222+
self.uncertainties_yaml = {'definitions': self.error_definition, 'bins': self.error}
223+
224+
def __call__(self):
225+
with open('data.yaml', 'w') as f:
226+
yaml.dump(self.data_central_yaml, f, sort_keys=False)
227+
with open('kinematics.yaml', 'w') as f:
228+
yaml.dump(self.kin_yaml, f, sort_keys=False)
229+
with open('uncertainties.yaml', 'w') as f:
230+
yaml.dump(self.uncertainties_yaml, f, sort_keys=False)
231+
232+
233+
dat_2 = magic(gev2)
234+
dat_2p2 = magic(gev2p2)
235+
dat_2p396 = magic(gev2p396)
236+
dat_2p6444 = magic(gev2p6444)
237+
dat_2p9 = magic(gev2p9)
238+
dat_3p05 = magic(gev3p05)
239+
dat_3p5 = magic(gev3p5)
240+
dat_3p671 = magic(gev3p671)

0 commit comments

Comments
 (0)