From 24e165d450b074760b2b8cd275143008818b943e Mon Sep 17 00:00:00 2001 From: achiefa Date: Mon, 9 Dec 2024 19:02:03 +0000 Subject: [PATCH] Correct bug in filter --- .../commondata/CMS_WCHARM_13TEV/filter_utils.py | 2 +- .../uncertainties_WPWM-TOT-UNNORM.yaml | 15 ++++++++++----- .../uncertainties_WPWM-TOT-UNNORM_sys_10.yaml | 15 ++++++++++----- 3 files changed, 21 insertions(+), 11 deletions(-) diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_WCHARM_13TEV/filter_utils.py b/nnpdf_data/nnpdf_data/commondata/CMS_WCHARM_13TEV/filter_utils.py index 4d249e661d..74a9af15e1 100644 --- a/nnpdf_data/nnpdf_data/commondata/CMS_WCHARM_13TEV/filter_utils.py +++ b/nnpdf_data/nnpdf_data/commondata/CMS_WCHARM_13TEV/filter_utils.py @@ -268,7 +268,7 @@ def generate_data(self, variant='default', save_to_yaml=False, path='./'): unc_dict = {STAT_LABEL: stat_unc[data_idx]} # Lumi uncertainty - unc_dict = {'corr_lumi_unc': central_data[data_idx] * CMSLUMI13 * 0.01} + unc_dict['corr_lumi_unc'] = central_data[data_idx] * CMSLUMI13 * 0.01 # Add systematic uncertainties unc_dict = unc_dict | tmp diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_WCHARM_13TEV/uncertainties_WPWM-TOT-UNNORM.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_WCHARM_13TEV/uncertainties_WPWM-TOT-UNNORM.yaml index 7437071f34..755b916c68 100644 --- a/nnpdf_data/nnpdf_data/commondata/CMS_WCHARM_13TEV/uncertainties_WPWM-TOT-UNNORM.yaml +++ b/nnpdf_data/nnpdf_data/commondata/CMS_WCHARM_13TEV/uncertainties_WPWM-TOT-UNNORM.yaml @@ -56,7 +56,8 @@ definitions: treatment: MULT type: CORR bins: -- corr_lumi_unc: 1.42174837e+04 +- stat_uncorr_unc: 37170.0 + corr_lumi_unc: 1.42174837e+04 track_sys_unc: 2.3 brch_sys_unc: 2.4 muons_sys_unc: 1.2 @@ -69,7 +70,8 @@ bins: pdf_sys_unc: 1.2 frag_sys_unc: 3.58434094e+00 mc_sys_unc: 3.45651559e+00 -- corr_lumi_unc: 1.16728088e+04 +- stat_uncorr_unc: 28410.0 + corr_lumi_unc: 1.16728088e+04 track_sys_unc: 2.3 brch_sys_unc: 2.4 muons_sys_unc: 1.2 @@ -82,7 +84,8 @@ bins: pdf_sys_unc: 1.3 frag_sys_unc: 2.83548938e+00 mc_sys_unc: 8.20167666e+00 -- corr_lumi_unc: 1.19827362e+04 +- stat_uncorr_unc: 30210.0 + corr_lumi_unc: 1.19827362e+04 track_sys_unc: 2.3 brch_sys_unc: 2.4 muons_sys_unc: 1.2 @@ -95,7 +98,8 @@ bins: pdf_sys_unc: 0.9 frag_sys_unc: 6.48922183e+00 mc_sys_unc: 1.06492958e+01 -- corr_lumi_unc: 9.87899375e+03 +- stat_uncorr_unc: 27450.0 + corr_lumi_unc: 9.87899375e+03 track_sys_unc: 2.3 brch_sys_unc: 2.4 muons_sys_unc: 1.2 @@ -108,7 +112,8 @@ bins: pdf_sys_unc: 1.4 frag_sys_unc: 3.15713478e+00 mc_sys_unc: 7.39104188e+00 -- corr_lumi_unc: 7070.6 +- stat_uncorr_unc: 24680.0 + corr_lumi_unc: 7070.6 track_sys_unc: 2.3 brch_sys_unc: 2.4 muons_sys_unc: 1.2 diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_WCHARM_13TEV/uncertainties_WPWM-TOT-UNNORM_sys_10.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_WCHARM_13TEV/uncertainties_WPWM-TOT-UNNORM_sys_10.yaml index 82f36ed94b..74dd7ceabc 100644 --- a/nnpdf_data/nnpdf_data/commondata/CMS_WCHARM_13TEV/uncertainties_WPWM-TOT-UNNORM_sys_10.yaml +++ b/nnpdf_data/nnpdf_data/commondata/CMS_WCHARM_13TEV/uncertainties_WPWM-TOT-UNNORM_sys_10.yaml @@ -60,7 +60,8 @@ definitions: treatment: MULT type: UNCORR bins: -- corr_lumi_unc: 1.42174837e+04 +- stat_uncorr_unc: 37170.0 + corr_lumi_unc: 1.42174837e+04 track_sys_unc: 2.3 brch_sys_unc: 2.4 muons_sys_unc: 1.2 @@ -74,7 +75,8 @@ bins: frag_sys_unc: 3.58434094e+00 mc_sys_unc: 3.45651559e+00 uncorr_mc_unc: 5.68699350e+03 -- corr_lumi_unc: 1.16728088e+04 +- stat_uncorr_unc: 28410.0 + corr_lumi_unc: 1.16728088e+04 track_sys_unc: 2.3 brch_sys_unc: 2.4 muons_sys_unc: 1.2 @@ -88,7 +90,8 @@ bins: frag_sys_unc: 2.83548938e+00 mc_sys_unc: 8.20167666e+00 uncorr_mc_unc: 4.66912350e+03 -- corr_lumi_unc: 1.19827362e+04 +- stat_uncorr_unc: 30210.0 + corr_lumi_unc: 1.19827362e+04 track_sys_unc: 2.3 brch_sys_unc: 2.4 muons_sys_unc: 1.2 @@ -102,7 +105,8 @@ bins: frag_sys_unc: 6.48922183e+00 mc_sys_unc: 1.06492958e+01 uncorr_mc_unc: 4.79309450e+03 -- corr_lumi_unc: 9.87899375e+03 +- stat_uncorr_unc: 27450.0 + corr_lumi_unc: 9.87899375e+03 track_sys_unc: 2.3 brch_sys_unc: 2.4 muons_sys_unc: 1.2 @@ -116,7 +120,8 @@ bins: frag_sys_unc: 3.15713478e+00 mc_sys_unc: 7.39104188e+00 uncorr_mc_unc: 3.95159750e+03 -- corr_lumi_unc: 7070.6 +- stat_uncorr_unc: 24680.0 + corr_lumi_unc: 7070.6 track_sys_unc: 2.3 brch_sys_unc: 2.4 muons_sys_unc: 1.2