-
Notifications
You must be signed in to change notification settings - Fork 14
ATLAS_WCHARM_13TEV #2337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ecole41
wants to merge
37
commits into
master
Choose a base branch
from
implement_ATLAS_WCHARM_13TEV
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
ATLAS_WCHARM_13TEV #2337
Changes from 2 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
f205bfe
First commit;
ecole41 bf1e7d8
data central
ecole41 68e203d
Added kinematics
ecole41 d1adbcc
Started uncertainties
ecole41 43cf998
Artificial uncertainties
ecole41 d8e6aec
fixes with utila nad metadata
ecole41 8ef8942
symmetrise errors
ecole41 0580b11
symmetrise errors
ecole41 15e98dd
Systematics
ecole41 dbef8c6
Fixed asymm errors
ecole41 3f24200
Separated into separate observables
ecole41 6bde456
Added kinematics labels to metadata
ecole41 cc395a8
Replaced Hepdata tables and updated metadata.yaml with optimal set of…
enocera 421a5bb
Streamlined data and kinematic file generation
enocera 6019a3a
Deleted redundant files: corrected Hepdata tables; restructured and s…
enocera 109f27a
Corrected metadata syntax
enocera 202b0e2
Corrected number of points
enocera 2330693
First commit;
ecole41 52ebd23
data central
ecole41 7f15390
Added kinematics
ecole41 883bca9
Started uncertainties
ecole41 eb117c5
Artificial uncertainties
ecole41 64aba29
fixes with utila nad metadata
ecole41 5d820f2
symmetrise errors
ecole41 77b5b84
symmetrise errors
ecole41 665b6af
Systematics
ecole41 5430028
Fixed asymm errors
ecole41 21ff988
Separated into separate observables
ecole41 70f0be3
Added kinematics labels to metadata
ecole41 f6e22dd
Replaced Hepdata tables and updated metadata.yaml with optimal set of…
enocera f40ed74
Streamlined data and kinematic file generation
enocera 2c870b6
Deleted redundant files: corrected Hepdata tables; restructured and s…
enocera 0522fa7
Corrected metadata syntax
enocera 9665cd0
Corrected number of points
enocera de68a7d
filter cleanup
enocera 18eda5c
Cleanup filter
enocera 3d6dce2
Corrected wrong luminosity label
enocera File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
nnpdf_data/nnpdf_data/commondata/ATLAS_WCHARM_13TEV/data.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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
34
nnpdf_data/nnpdf_data/commondata/ATLAS_WCHARM_13TEV/filter.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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() |
30 changes: 30 additions & 0 deletions
30
nnpdf_data/nnpdf_data/commondata/ATLAS_WCHARM_13TEV/filter_utils.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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
49
nnpdf_data/nnpdf_data/commondata/ATLAS_WCHARM_13TEV/metadata.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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? | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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: | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.