Skip to content
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

[WIP] Reimplement ATLAS WPWM 7TeV 36PB #2223

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

ecole41
Copy link
Collaborator

@ecole41 ecole41 commented Nov 22, 2024

Functions haves been added to produce the data central, kinematic and uncertainties yaml files for this dataset.

Old vs New Data Report

https://vp.nnpdf.science/6-mHiiJJTcC5Mf86u4NJ2g==/

Compatabiliy Check

[In]:from validphys.api import API
import numpy as np
 
inp1 = {"dataset_input": {"dataset": "ATLASWRAP36PB"}, "theoryid": 40_000_000, "use_cuts": "internal", "t0pdfset": "NNPDF40_nnlo_as_01180", "use_t0": True}
inp2 = {"dataset_input": {"dataset": "ATLASWRAP36PB", "variant": "legacy"}, "theoryid": 40_000_000, "use_cuts": "internal", "t0pdfset": "NNPDF40_nnlo_as_01180", "use_t0": True}

covmat1 = API.covmat_from_systematics(**inp1)
covmat2 = API.covmat_from_systematics(**inp2)
 
t0_covmat1 = API.t0_covmat_from_systematics(**inp1)
t0_covmat2 = API.t0_covmat_from_systematics(**inp2)
 
result = np.all(np.isclose(covmat1, covmat2))
result_2 = np.all(np.isclose(t0_covmat1, t0_covmat2))

print('covmat', result)
print('t0_covmat', result_2)

[Out]:LHAPDF 6.5.4 loading [/Users/ellacole/miniconda3/envs/nnpdf_dev/share/LHAPDF/NNPDF40_nnlo_as_01180/NNPDF40_nnlo_as_01180_0000.dat](https://file+.vscode-resource.vscode-cdn.net/Users/ellacole/miniconda3/envs/nnpdf_dev/share/LHAPDF/NNPDF40_nnlo_as_01180/NNPDF40_nnlo_as_01180_0000.dat)
NNPDF40_nnlo_as_01180 PDF set, member #0, version 1; LHAPDF ID = 331100
covmat True
t0_covmat True

@scarlehoff
Copy link
Member

I think it is better to finish the ones that are already started and then move to the more weird datasets ^^U

When the data don't match, try to take the ratio and check whether the difference is just normalization. Some of the old datasets were normalized for bin size / total cross section / other stuff.

@scarlehoff
Copy link
Member

scarlehoff commented Nov 27, 2024

Hi @ecole41 I've had a look and the tables from https://www.hepdata.net/record/ins928289 match the data up to a factor of 1.0187 for all bins.

I have checked only Table 1 (which is the Z) against https://github.com/NNPDF/nnpdf/blob/master/nnpdf_data/nnpdf_data/commondata/ATLAS_Z0_7TEV_36PB/data_legacy_ETA.yaml
(there's also a factor 1000 of fb vs pb)

In cases like this, when there's one single factor for all bins, your best bet is to look at the old buildmaster and... indeed...

const double lcorr = 1.0187; // correction factor due to luminosity upgrade

theory:
conversion_factor: 1.0
conversion_factor: 1.0187 #is this needed?
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I am not sure if I should include this conversion factor here

Copy link
Collaborator

Choose a reason for hiding this comment

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

looking at commondataparser.py this is valid input! So I would keep it.

@ecole41 ecole41 changed the title [WIP] Reimplement ATLAS WPWM 7TeV 36PB Reimplement ATLAS WPWM 7TeV 36PB Dec 18, 2024
@ecole41 ecole41 changed the title Reimplement ATLAS WPWM 7TeV 36PB [WIP] Reimplement ATLAS WPWM 7TeV 36PB Dec 18, 2024
@jacoterh
Copy link
Collaborator

@ecole41 if you could please redo the report including conversion_factor = 1.0187 it's easier to compare theory and data. Thanks.

@ecole41
Copy link
Collaborator Author

ecole41 commented Dec 18, 2024

@ecole41 if you could please redo the report including conversion_factor = 1.0187 it's easier to compare theory and data. Thanks.

The report was made with the conversion factor in the metadata already, so it the old and new should hopefully match. I will remove the comment now

@@ -10,20 +10,20 @@ arXiv:
iNSPIRE:
url: ''
Copy link
Collaborator

Choose a reason for hiding this comment

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

please add the inspire link too

@@ -10,20 +10,20 @@ arXiv:
iNSPIRE:
url: ''
hepdata:
url: ''
url: 'https://www.hepdata.net/record/ins928289'
version: -1
Copy link
Collaborator

Choose a reason for hiding this comment

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

Version can be set to 1

@jacoterh
Copy link
Collaborator

@ecole41 if you could please redo the report including conversion_factor = 1.0187 it's easier to compare theory and data. Thanks.

The report was made with the conversion factor in the metadata already, so it the old and new should hopefully match. I will remove the comment now

Ah interesting, is there a reason why the theory is consistently higher than the data then? I see it's the same in the old implementation, so it's technically not part of this PR, but I got curious.

@ecole41
Copy link
Collaborator Author

ecole41 commented Dec 19, 2024

@ecole41 if you could please redo the report including conversion_factor = 1.0187 it's easier to compare theory and data. Thanks.

The report was made with the conversion factor in the metadata already, so it the old and new should hopefully match. I will remove the comment now

Ah interesting, is there a reason why the theory is consistently higher than the data then? I see it's the same in the old implementation, so it's technically not part of this PR, but I got curious.

Are we sure that the conversion factor should be included in the metadata? I have already included it when producing the data.yaml file so maybe it isn't needed in the metadata also? Then maybe the theory would be more consistent with the data

@jacoterh
Copy link
Collaborator

onversion factor should be included in the metadata? I have already included it when producing the data.yaml file so maybe it isn't needed in the metadat

Maybe, the best way here is to simply try what the theory vs data comparison looks like without including this factor, i.e. setting it to one.

@ecole41
Copy link
Collaborator Author

ecole41 commented Dec 19, 2024

onversion factor should be included in the metadata? I have already included it when producing the data.yaml file so maybe it isn't needed in the metadat

Maybe, the best way here is to simply try what the theory vs data comparison looks like without including this factor, i.e. setting it to one.

Here is with conversion_factor: 1.0187: https://vp.nnpdf.science/6-mHiiJJTcC5Mf86u4NJ2g==/

Here is with conversion_factor: 1.0: https://vp.nnpdf.science/4JZ3wcPYTDOGHtDyu70pjg==/

There is a difference but I am not sure which one is correct. I would guess to keep the conversion factor equal to 1 as this has already been included in the data.yaml? But that might be wrong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants