Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
f205bfe
First commit;
ecole41 Jun 20, 2025
bf1e7d8
data central
ecole41 Jun 23, 2025
68e203d
Added kinematics
ecole41 Jun 25, 2025
d1adbcc
Started uncertainties
ecole41 Jun 25, 2025
43cf998
Artificial uncertainties
ecole41 Jul 9, 2025
d8e6aec
fixes with utila nad metadata
ecole41 Jul 9, 2025
8ef8942
symmetrise errors
ecole41 Jul 10, 2025
0580b11
symmetrise errors
ecole41 Jul 10, 2025
15e98dd
Systematics
ecole41 Jul 10, 2025
dbef8c6
Fixed asymm errors
ecole41 Aug 4, 2025
3f24200
Separated into separate observables
ecole41 Aug 12, 2025
6bde456
Added kinematics labels to metadata
ecole41 Aug 22, 2025
cc395a8
Replaced Hepdata tables and updated metadata.yaml with optimal set of…
enocera Aug 27, 2025
421a5bb
Streamlined data and kinematic file generation
enocera Aug 27, 2025
6019a3a
Deleted redundant files: corrected Hepdata tables; restructured and s…
enocera Aug 27, 2025
109f27a
Corrected metadata syntax
enocera Aug 27, 2025
202b0e2
Corrected number of points
enocera Aug 27, 2025
2330693
First commit;
ecole41 Jun 20, 2025
52ebd23
data central
ecole41 Jun 23, 2025
7f15390
Added kinematics
ecole41 Jun 25, 2025
883bca9
Started uncertainties
ecole41 Jun 25, 2025
eb117c5
Artificial uncertainties
ecole41 Jul 9, 2025
64aba29
fixes with utila nad metadata
ecole41 Jul 9, 2025
5d820f2
symmetrise errors
ecole41 Jul 10, 2025
77b5b84
symmetrise errors
ecole41 Jul 10, 2025
665b6af
Systematics
ecole41 Jul 10, 2025
5430028
Fixed asymm errors
ecole41 Aug 4, 2025
21ff988
Separated into separate observables
ecole41 Aug 12, 2025
70f0be3
Added kinematics labels to metadata
ecole41 Aug 22, 2025
f6e22dd
Replaced Hepdata tables and updated metadata.yaml with optimal set of…
enocera Aug 27, 2025
f40ed74
Streamlined data and kinematic file generation
enocera Aug 27, 2025
2c870b6
Deleted redundant files: corrected Hepdata tables; restructured and s…
enocera Aug 27, 2025
0522fa7
Corrected metadata syntax
enocera Aug 27, 2025
9665cd0
Corrected number of points
enocera Aug 27, 2025
de68a7d
filter cleanup
enocera Aug 28, 2025
18eda5c
Cleanup filter
enocera Aug 28, 2025
3d6dce2
Corrected wrong luminosity label
enocera Oct 27, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions nnpdf_data/nnpdf_data/commondata/ATLAS_WCHARM_13TEV/data.yaml

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@enocera Do we want to have all of the channels ((W−+D+), (W++D−), (W−+D∗+), (W++D∗−)) put together into one dataset like this?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ecole41 Yes we want a single data set with all the channels. Two remarks.

  1. One must be cautious w.r.t. the treatment of correlations: there may be uncertainties that are correlated across all the channels and uncertainties that are not. But this is something that you surely know better than me, because you've gone through the paper. Also, when definining the theory part of the metadata, one should have four entries, with four different names, one for each channel.
  2. I realise that this measurement is only particle level, which may complicate the way in which we will have to make theoretical predictions, but this is something that we can discuss later.

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
data_central:
- 12.27
- 11.57
- 10.41
- 9.09
- 6.85
- 11.87
- 11.55
- 10.09
- 8.6
- 6.25
- 12.18
- 11.77
- 10.61
- 8.85
- 7.22
- 12.52
- 12.14
- 10.29
- 8.38
- 6.55
34 changes: 34 additions & 0 deletions nnpdf_data/nnpdf_data/commondata/ATLAS_WCHARM_13TEV/filter.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
"""
When running `python filter.py` the relevant data yaml
file will be created in the `nnpdf_data/commondata/ATLAS_WPWM_7TEV_46FB` directory.
"""

import yaml
from filter_utils import get_data_values
from nnpdf_data.filter_utils.utils import prettify_float

yaml.add_representer(float, prettify_float)


def filter_ATLAS_WCHARM_13TEV_data_kinematic():
"""
This function writes the systematics to yaml files.
"""

central_values = get_data_values()

# kin = get_kinematics()

data_central_yaml = {"data_central": central_values}

# kinematics_yaml = {"bins": kin}

# write central values and kinematics to yaml file
with open("data.yaml", "w") as file:
yaml.dump(data_central_yaml, file, sort_keys=False)

# with open("kinematics.yaml", "w") as file:
# yaml.dump(kinematics_yaml, file, sort_keys=False)

if __name__ == "__main__":
filter_ATLAS_WCHARM_13TEV_data_kinematic()
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
"""
This module contains helper functions that are used to extract the data values
from the rawdata files.
"""

import yaml
import pandas as pd
import numpy as np


def get_data_values():
"""
returns the central data values in the form of a list.
"""

data_central = []

for i in range(19,23):
hepdata_table = f"rawdata/HEPData-ins2628732-v1-Table_{i}.yaml"

with open(hepdata_table, 'r') as file:
input = yaml.safe_load(file)

values = input['dependent_variables'][0]['values']

for value in values:
# store data central and convert the units and apply the correction factor
data_central.append(value['value'])

return data_central
49 changes: 49 additions & 0 deletions nnpdf_data/nnpdf_data/commondata/ATLAS_WCHARM_13TEV/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
setname: ATLAS_WCHARM_13TEV

nnpdf_metadata:
nnpdf31_process: DY CC
experiment: ATLAS

arXiv:
url: https://arxiv.org/abs/2302.00336
journal: Phys. Rev. D 108 (2023) 032012
iNSPIRE:
url: https://inspirehep.net/literature/2628732
hepdata:
url: https://www.hepdata.net/record/ins2628732
version: 1

version: 1
version_comment: Implementation

implemented_observables:
- observable_name:
observable:
description:
label: ATLAS $W^-+c$ 13 TeV
units: '[pb]'
process_type:
tables: [5,6,9,10,19,20,21,22] # 5/19 (W−+D+), 6/20(W++D−), 9/21(W−+D∗+), 10/22(W++D∗−)
ndata:
plotting:
dataset_label: ATLAS $W^-+c$ 13 TeV
y_label: 'Differential fiducial cross-section times the single-lepton-flavor W boson branching ratio' #In Latex terms?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure how to put this in Latex terms

x_label: $|\eta^\ell|$
plot_x: abs_eta
kinematic_coverage:
kinematics:
variables:
abs_eta:
description:
label:
units: ''
m_W2:
description:
label:
units:
file:
data_uncertainties:
data_central:
variants:
legacy:
data_uncertainties:
Loading