From f3da67893ce76d90b73255a5b7286fa659f7f8e0 Mon Sep 17 00:00:00 2001 From: Eva Groenendijk Date: Tue, 29 Jul 2025 14:13:26 +0200 Subject: [PATCH 1/7] Add raw data --- .../CMS_DY_13TEV_DIELECTRON/metadata.yaml | 56 ++++++ .../HEPData-ins2038801-v1-Table_2.yaml | 175 ++++++++++++++++++ .../HEPData-ins2038801-v1-Table_4.yaml | 124 +++++++++++++ .../CMS_DY_13TEV_DIMUON/metadata.yaml | 56 ++++++ .../HEPData-ins2038801-v1-Table_2.yaml | 175 ++++++++++++++++++ .../HEPData-ins2038801-v1-Table_4.yaml | 124 +++++++++++++ 6 files changed, 710 insertions(+) create mode 100644 nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIELECTRON/metadata.yaml create mode 100644 nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIELECTRON/rawdata/HEPData-ins2038801-v1-Table_2.yaml create mode 100644 nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIELECTRON/rawdata/HEPData-ins2038801-v1-Table_4.yaml create mode 100644 nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIMUON/metadata.yaml create mode 100644 nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIMUON/rawdata/HEPData-ins2038801-v1-Table_2.yaml create mode 100644 nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIMUON/rawdata/HEPData-ins2038801-v1-Table_4.yaml diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIELECTRON/metadata.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIELECTRON/metadata.yaml new file mode 100644 index 0000000000..3c0239da69 --- /dev/null +++ b/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIELECTRON/metadata.yaml @@ -0,0 +1,56 @@ +setname: CMS_DY_13TEV_DIELECTRON +version: 1 +version_comment: +arXiv: + url: +iNSPIRE: + url: +hepdata: + url: https://www.hepdata.net/record/ins2038801 + version: 1 +nnpdf_metadata: + nnpdf31_process: "DY NC" + experiment: CMS +implemented_observables: +- observable_name: ASY_FB + observable: + description: Measurement of the forward backward asymmetry in electron pair production at sqrt(s) = 13 TeV + label: + units: '[fb]' + process_type: + tables: + - 2 + npoints: + - + ndata: + plotting: + dataset_label: CMS FB asymmetry + plot_x: M + y_label: $A_{FB}^{\mu\mu}$ + kinematic_coverage: + - m_mumu + - sqrts + kinematics: + variables: + m_ee: + description: dilepton mass + label: $M$ + units: $GeV$ + sqrts: + description: Center of Mass Energy + label: $\sqrt{s}$ + units: $GeV$ + file: kinematics.yaml + data_central: data.yaml + data_uncertainties: + - uncertainties.yaml + theory: + FK_tables: + - - + - - + operation: ASY + conversion_factor: 1.0 + variants: + legacy: + data_uncertainties: + - uncertainties_legacy_ASY.yaml diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIELECTRON/rawdata/HEPData-ins2038801-v1-Table_2.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIELECTRON/rawdata/HEPData-ins2038801-v1-Table_2.yaml new file mode 100644 index 0000000000..0cb594d16f --- /dev/null +++ b/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIELECTRON/rawdata/HEPData-ins2038801-v1-Table_2.yaml @@ -0,0 +1,175 @@ +dependent_variables: +- header: + name: AFB (mumu) + values: + - errors: + - label: Statistical + symerror: 0.012 + - label: Systematic + symerror: 0.011 + value: 0.61 + - errors: + - label: Statistical + symerror: 0.012 + - label: Systematic + symerror: 0.01 + value: 0.592 + - errors: + - label: Statistical + symerror: 0.014 + - label: Systematic + symerror: 0.009 + value: 0.558 + - errors: + - label: Statistical + symerror: 0.014 + - label: Systematic + symerror: 0.009 + value: 0.598 + - errors: + - label: Statistical + symerror: 0.027 + - label: Systematic + symerror: 0.008 + value: 0.61 + - errors: + - label: Statistical + symerror: 0.042 + - label: Systematic + symerror: 0.009 + value: 0.617 + - errors: + - label: Statistical + symerror: 0.07 + - label: Systematic + symerror: 0.011 + value: 0.595 + - errors: + - label: Statistical + symerror: 0.006 + - label: Systematic + symerror: 0.007 + value: 0.589 +- header: + name: AFB (ee) + values: + - errors: + - label: Statistical + symerror: 0.015 + - label: Systematic + symerror: 0.012 + value: 0.654 + - errors: + - label: Statistical + symerror: 0.015 + - label: Systematic + symerror: 0.011 + value: 0.635 + - errors: + - label: Statistical + symerror: 0.018 + - label: Systematic + symerror: 0.01 + value: 0.61 + - errors: + - label: Statistical + symerror: 0.018 + - label: Systematic + symerror: 0.009 + value: 0.583 + - errors: + - label: Statistical + symerror: 0.033 + - label: Systematic + symerror: 0.009 + value: 0.624 + - errors: + - label: Statistical + symerror: 0.048 + - label: Systematic + symerror: 0.008 + value: 0.563 + - errors: + - label: Statistical + symerror: 0.076 + - label: Systematic + symerror: 0.014 + value: 0.694 + - errors: + - label: Statistical + symerror: 0.008 + - label: Systematic + symerror: 0.007 + value: 0.615 +- header: + name: AFB (combined) + values: + - errors: + - label: Statistical + symerror: 0.009 + - label: Systematic + symerror: 0.011 + value: 0.628 + - errors: + - label: Statistical + symerror: 0.009 + - label: Systematic + symerror: 0.01 + value: 0.608 + - errors: + - label: Statistical + symerror: 0.011 + - label: Systematic + symerror: 0.009 + value: 0.578 + - errors: + - label: Statistical + symerror: 0.011 + - label: Systematic + symerror: 0.008 + value: 0.592 + - errors: + - label: Statistical + symerror: 0.021 + - label: Systematic + symerror: 0.008 + value: 0.616 + - errors: + - label: Statistical + symerror: 0.032 + - label: Systematic + symerror: 0.008 + value: 0.594 + - errors: + - label: Statistical + symerror: 0.052 + - label: Systematic + symerror: 0.011 + value: 0.638 + - errors: + - label: Statistical + symerror: 0.005 + - label: Systematic + symerror: 0.007 + value: 0.599 +independent_variables: +- header: + name: Mass Bins + units: GeV + values: + - high: 200.0 + low: 170.0 + - high: 250.0 + low: 200.0 + - high: 320.0 + low: 250.0 + - high: 510.0 + low: 320.0 + - high: 700.0 + low: 510.0 + - high: 1000.0 + low: 700.0 + - high: 13000.0 + low: 1000.0 + - high: 13000.0 + low: 170.0 diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIELECTRON/rawdata/HEPData-ins2038801-v1-Table_4.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIELECTRON/rawdata/HEPData-ins2038801-v1-Table_4.yaml new file mode 100644 index 0000000000..a60591223a --- /dev/null +++ b/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIELECTRON/rawdata/HEPData-ins2038801-v1-Table_4.yaml @@ -0,0 +1,124 @@ +dependent_variables: +- header: + name: Delta AFB + values: + - errors: + - label: Statistical + symerror: 0.019 + - label: Systematic + symerror: 0.009 + value: -0.045 + - errors: + - label: Statistical + symerror: 0.019 + - label: Systematic + symerror: 0.006 + value: -0.042 + - errors: + - label: Statistical + symerror: 0.023 + - label: Systematic + symerror: 0.006 + value: -0.052 + - errors: + - label: Statistical + symerror: 0.023 + - label: Systematic + symerror: 0.008 + value: 0.015 + - errors: + - label: Statistical + symerror: 0.043 + - label: Systematic + symerror: 0.007 + value: -0.013 + - errors: + - label: Statistical + symerror: 0.064 + - label: Systematic + symerror: 0.008 + value: 0.055 + - errors: + - label: Statistical + symerror: 0.104 + - label: Systematic + symerror: 0.014 + value: -0.099 + - errors: + - label: Statistical + symerror: 0.01 + - label: Systematic + symerror: 0.004 + value: -0.026 +- header: + name: Delta A0 + values: + - errors: + - label: Statistical + symerror: 0.016 + - label: Systematic + symerror: 0.032 + value: 0.018 + - errors: + - label: Statistical + symerror: 0.019 + - label: Systematic + symerror: 0.048 + value: -0.027 + - errors: + - label: Statistical + symerror: 0.026 + - label: Systematic + symerror: 0.045 + value: -0.092 + - errors: + - label: Statistical + symerror: 0.032 + - label: Systematic + symerror: 0.045 + value: -0.046 + - errors: + - label: Statistical + symerror: 0.075 + - label: Systematic + symerror: 0.053 + value: -0.184 + - errors: + - label: Statistical + symerror: 0.128 + - label: Systematic + symerror: 0.068 + value: -0.034 + - errors: + - label: Statistical + symerror: 0.214 + - label: Systematic + symerror: 0.111 + value: -0.09 + - errors: + - label: Statistical + symerror: 0.011 + - label: Systematic + symerror: 0.018 + value: -0.018 +independent_variables: +- header: + name: Mass Bins + units: GeV + values: + - high: 200.0 + low: 170.0 + - high: 250.0 + low: 200.0 + - high: 320.0 + low: 250.0 + - high: 510.0 + low: 320.0 + - high: 700.0 + low: 510.0 + - high: 1000.0 + low: 700.0 + - high: 13000.0 + low: 1000.0 + - high: 13000.0 + low: 170.0 diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIMUON/metadata.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIMUON/metadata.yaml new file mode 100644 index 0000000000..19cb322eae --- /dev/null +++ b/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIMUON/metadata.yaml @@ -0,0 +1,56 @@ +setname: CMS_DY_13TEV_DIMUON +version: 1 +version_comment: +arXiv: + url: +iNSPIRE: + url: +hepdata: + url: https://www.hepdata.net/record/ins2038801 + version: 1 +nnpdf_metadata: + nnpdf31_process: "DY NC" + experiment: CMS +implemented_observables: +- observable_name: ASY_FB + observable: + description: Measurement of the forward backward asymmetry in muon pair production at sqrt(s) = 13 TeV + label: + units: '[fb]' + process_type: + tables: + - 2 + npoints: + - + ndata: + plotting: + dataset_label: CMS FB asymmetry + plot_x: M + y_label: $A_{FB}^{\mu\mu}$ + kinematic_coverage: + - m_mumu + - sqrts + kinematics: + variables: + m_mumu: + description: dilepton mass + label: $M$ + units: $GeV$ + sqrts: + description: Center of Mass Energy + label: $\sqrt{s}$ + units: $GeV$ + file: kinematics.yaml + data_central: data.yaml + data_uncertainties: + - uncertainties.yaml + theory: + FK_tables: + - - + - - + operation: ASY + conversion_factor: 1.0 + variants: + legacy: + data_uncertainties: + - uncertainties_legacy_ASY.yaml diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIMUON/rawdata/HEPData-ins2038801-v1-Table_2.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIMUON/rawdata/HEPData-ins2038801-v1-Table_2.yaml new file mode 100644 index 0000000000..0cb594d16f --- /dev/null +++ b/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIMUON/rawdata/HEPData-ins2038801-v1-Table_2.yaml @@ -0,0 +1,175 @@ +dependent_variables: +- header: + name: AFB (mumu) + values: + - errors: + - label: Statistical + symerror: 0.012 + - label: Systematic + symerror: 0.011 + value: 0.61 + - errors: + - label: Statistical + symerror: 0.012 + - label: Systematic + symerror: 0.01 + value: 0.592 + - errors: + - label: Statistical + symerror: 0.014 + - label: Systematic + symerror: 0.009 + value: 0.558 + - errors: + - label: Statistical + symerror: 0.014 + - label: Systematic + symerror: 0.009 + value: 0.598 + - errors: + - label: Statistical + symerror: 0.027 + - label: Systematic + symerror: 0.008 + value: 0.61 + - errors: + - label: Statistical + symerror: 0.042 + - label: Systematic + symerror: 0.009 + value: 0.617 + - errors: + - label: Statistical + symerror: 0.07 + - label: Systematic + symerror: 0.011 + value: 0.595 + - errors: + - label: Statistical + symerror: 0.006 + - label: Systematic + symerror: 0.007 + value: 0.589 +- header: + name: AFB (ee) + values: + - errors: + - label: Statistical + symerror: 0.015 + - label: Systematic + symerror: 0.012 + value: 0.654 + - errors: + - label: Statistical + symerror: 0.015 + - label: Systematic + symerror: 0.011 + value: 0.635 + - errors: + - label: Statistical + symerror: 0.018 + - label: Systematic + symerror: 0.01 + value: 0.61 + - errors: + - label: Statistical + symerror: 0.018 + - label: Systematic + symerror: 0.009 + value: 0.583 + - errors: + - label: Statistical + symerror: 0.033 + - label: Systematic + symerror: 0.009 + value: 0.624 + - errors: + - label: Statistical + symerror: 0.048 + - label: Systematic + symerror: 0.008 + value: 0.563 + - errors: + - label: Statistical + symerror: 0.076 + - label: Systematic + symerror: 0.014 + value: 0.694 + - errors: + - label: Statistical + symerror: 0.008 + - label: Systematic + symerror: 0.007 + value: 0.615 +- header: + name: AFB (combined) + values: + - errors: + - label: Statistical + symerror: 0.009 + - label: Systematic + symerror: 0.011 + value: 0.628 + - errors: + - label: Statistical + symerror: 0.009 + - label: Systematic + symerror: 0.01 + value: 0.608 + - errors: + - label: Statistical + symerror: 0.011 + - label: Systematic + symerror: 0.009 + value: 0.578 + - errors: + - label: Statistical + symerror: 0.011 + - label: Systematic + symerror: 0.008 + value: 0.592 + - errors: + - label: Statistical + symerror: 0.021 + - label: Systematic + symerror: 0.008 + value: 0.616 + - errors: + - label: Statistical + symerror: 0.032 + - label: Systematic + symerror: 0.008 + value: 0.594 + - errors: + - label: Statistical + symerror: 0.052 + - label: Systematic + symerror: 0.011 + value: 0.638 + - errors: + - label: Statistical + symerror: 0.005 + - label: Systematic + symerror: 0.007 + value: 0.599 +independent_variables: +- header: + name: Mass Bins + units: GeV + values: + - high: 200.0 + low: 170.0 + - high: 250.0 + low: 200.0 + - high: 320.0 + low: 250.0 + - high: 510.0 + low: 320.0 + - high: 700.0 + low: 510.0 + - high: 1000.0 + low: 700.0 + - high: 13000.0 + low: 1000.0 + - high: 13000.0 + low: 170.0 diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIMUON/rawdata/HEPData-ins2038801-v1-Table_4.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIMUON/rawdata/HEPData-ins2038801-v1-Table_4.yaml new file mode 100644 index 0000000000..a60591223a --- /dev/null +++ b/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIMUON/rawdata/HEPData-ins2038801-v1-Table_4.yaml @@ -0,0 +1,124 @@ +dependent_variables: +- header: + name: Delta AFB + values: + - errors: + - label: Statistical + symerror: 0.019 + - label: Systematic + symerror: 0.009 + value: -0.045 + - errors: + - label: Statistical + symerror: 0.019 + - label: Systematic + symerror: 0.006 + value: -0.042 + - errors: + - label: Statistical + symerror: 0.023 + - label: Systematic + symerror: 0.006 + value: -0.052 + - errors: + - label: Statistical + symerror: 0.023 + - label: Systematic + symerror: 0.008 + value: 0.015 + - errors: + - label: Statistical + symerror: 0.043 + - label: Systematic + symerror: 0.007 + value: -0.013 + - errors: + - label: Statistical + symerror: 0.064 + - label: Systematic + symerror: 0.008 + value: 0.055 + - errors: + - label: Statistical + symerror: 0.104 + - label: Systematic + symerror: 0.014 + value: -0.099 + - errors: + - label: Statistical + symerror: 0.01 + - label: Systematic + symerror: 0.004 + value: -0.026 +- header: + name: Delta A0 + values: + - errors: + - label: Statistical + symerror: 0.016 + - label: Systematic + symerror: 0.032 + value: 0.018 + - errors: + - label: Statistical + symerror: 0.019 + - label: Systematic + symerror: 0.048 + value: -0.027 + - errors: + - label: Statistical + symerror: 0.026 + - label: Systematic + symerror: 0.045 + value: -0.092 + - errors: + - label: Statistical + symerror: 0.032 + - label: Systematic + symerror: 0.045 + value: -0.046 + - errors: + - label: Statistical + symerror: 0.075 + - label: Systematic + symerror: 0.053 + value: -0.184 + - errors: + - label: Statistical + symerror: 0.128 + - label: Systematic + symerror: 0.068 + value: -0.034 + - errors: + - label: Statistical + symerror: 0.214 + - label: Systematic + symerror: 0.111 + value: -0.09 + - errors: + - label: Statistical + symerror: 0.011 + - label: Systematic + symerror: 0.018 + value: -0.018 +independent_variables: +- header: + name: Mass Bins + units: GeV + values: + - high: 200.0 + low: 170.0 + - high: 250.0 + low: 200.0 + - high: 320.0 + low: 250.0 + - high: 510.0 + low: 320.0 + - high: 700.0 + low: 510.0 + - high: 1000.0 + low: 700.0 + - high: 13000.0 + low: 1000.0 + - high: 13000.0 + low: 170.0 From a384869bcd0f990ed425abdc284f7fc291c258ef Mon Sep 17 00:00:00 2001 From: Eva Groenendijk Date: Tue, 29 Jul 2025 16:14:40 +0200 Subject: [PATCH 2/7] One dataset and removed Delta A_FB --- .../commondata/CMS_DY_13TEV/metadata.yaml | 96 ++++++++++ .../HEPData-ins2038801-v1-Table_2.yaml | 0 .../CMS_DY_13TEV_DIELECTRON/metadata.yaml | 56 ------ .../HEPData-ins2038801-v1-Table_4.yaml | 124 ------------- .../CMS_DY_13TEV_DIMUON/metadata.yaml | 56 ------ .../HEPData-ins2038801-v1-Table_2.yaml | 175 ------------------ .../HEPData-ins2038801-v1-Table_4.yaml | 124 ------------- 7 files changed, 96 insertions(+), 535 deletions(-) create mode 100644 nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV/metadata.yaml rename nnpdf_data/nnpdf_data/commondata/{CMS_DY_13TEV_DIELECTRON => CMS_DY_13TEV}/rawdata/HEPData-ins2038801-v1-Table_2.yaml (100%) delete mode 100644 nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIELECTRON/metadata.yaml delete mode 100644 nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIELECTRON/rawdata/HEPData-ins2038801-v1-Table_4.yaml delete mode 100644 nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIMUON/metadata.yaml delete mode 100644 nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIMUON/rawdata/HEPData-ins2038801-v1-Table_2.yaml delete mode 100644 nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIMUON/rawdata/HEPData-ins2038801-v1-Table_4.yaml diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV/metadata.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV/metadata.yaml new file mode 100644 index 0000000000..2540e78659 --- /dev/null +++ b/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV/metadata.yaml @@ -0,0 +1,96 @@ +setname: CMS_DY_13TEV +version: 1 +version_comment: +arXiv: + url: https://arxiv.org/abs/2202.12327 +iNSPIRE: + url: https://inspirehep.net/literature/1952936 +hepdata: + url: https://www.hepdata.net/record/ins2038801 + version: 1 +nnpdf_metadata: + nnpdf31_process: "DY NC" + experiment: CMS +implemented_observables: +- observable_name: ASY_FB_DIMUON + observable: + description: Measurement of the forward backward asymmetry in NC muon pair production at sqrt(s) = 13 TeV + label: + units: '[fb]' + process_type: + tables: + - 2 + npoints: + - + ndata: + plotting: + dataset_label: CMS FB asymmetry mu mu + plot_x: M + y_label: $A_{FB}^{\mu\mu}$ + kinematic_coverage: + - m_mumu + - sqrts + kinematics: + variables: + m_mumu: + description: dilepton mass + label: $M$ + units: $GeV$ + sqrts: + description: Center of Mass Energy + label: $\sqrt{s}$ + units: $GeV$ + file: kinematics.yaml + data_central: data.yaml + data_uncertainties: + - uncertainties_mumu.yaml + theory: + FK_tables: + - - + operation: ASY + conversion_factor: 1.0 + variants: + legacy: + data_uncertainties: + - uncertainties_legacy_ASY.yaml +- observable_name: ASY_FB_DIELECTRON + observable: + description: Measurement of the forward backward asymmetry in NC electron pair production at sqrt(s) = 13 TeV + label: + units: '[fb]' + process_type: + tables: + - 2 + npoints: + - + ndata: + plotting: + dataset_label: CMS FB asymmetry ee + plot_x: M + y_label: $A_{FB}^{ee}$ + kinematic_coverage: + - m_mumu + - sqrts + kinematics: + variables: + m_mumu: + description: dilepton mass + label: $M$ + units: $GeV$ + sqrts: + description: Center of Mass Energy + label: $\sqrt{s}$ + units: $GeV$ + file: kinematics.yaml + data_central: data.yaml + data_uncertainties: + - uncertainties_ee.yaml + theory: + FK_tables: + - - + operation: ASY + conversion_factor: 1.0 + variants: + legacy: + data_uncertainties: + - uncertainties_legacy_ASY.yaml diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIELECTRON/rawdata/HEPData-ins2038801-v1-Table_2.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV/rawdata/HEPData-ins2038801-v1-Table_2.yaml similarity index 100% rename from nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIELECTRON/rawdata/HEPData-ins2038801-v1-Table_2.yaml rename to nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV/rawdata/HEPData-ins2038801-v1-Table_2.yaml diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIELECTRON/metadata.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIELECTRON/metadata.yaml deleted file mode 100644 index 3c0239da69..0000000000 --- a/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIELECTRON/metadata.yaml +++ /dev/null @@ -1,56 +0,0 @@ -setname: CMS_DY_13TEV_DIELECTRON -version: 1 -version_comment: -arXiv: - url: -iNSPIRE: - url: -hepdata: - url: https://www.hepdata.net/record/ins2038801 - version: 1 -nnpdf_metadata: - nnpdf31_process: "DY NC" - experiment: CMS -implemented_observables: -- observable_name: ASY_FB - observable: - description: Measurement of the forward backward asymmetry in electron pair production at sqrt(s) = 13 TeV - label: - units: '[fb]' - process_type: - tables: - - 2 - npoints: - - - ndata: - plotting: - dataset_label: CMS FB asymmetry - plot_x: M - y_label: $A_{FB}^{\mu\mu}$ - kinematic_coverage: - - m_mumu - - sqrts - kinematics: - variables: - m_ee: - description: dilepton mass - label: $M$ - units: $GeV$ - sqrts: - description: Center of Mass Energy - label: $\sqrt{s}$ - units: $GeV$ - file: kinematics.yaml - data_central: data.yaml - data_uncertainties: - - uncertainties.yaml - theory: - FK_tables: - - - - - - - operation: ASY - conversion_factor: 1.0 - variants: - legacy: - data_uncertainties: - - uncertainties_legacy_ASY.yaml diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIELECTRON/rawdata/HEPData-ins2038801-v1-Table_4.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIELECTRON/rawdata/HEPData-ins2038801-v1-Table_4.yaml deleted file mode 100644 index a60591223a..0000000000 --- a/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIELECTRON/rawdata/HEPData-ins2038801-v1-Table_4.yaml +++ /dev/null @@ -1,124 +0,0 @@ -dependent_variables: -- header: - name: Delta AFB - values: - - errors: - - label: Statistical - symerror: 0.019 - - label: Systematic - symerror: 0.009 - value: -0.045 - - errors: - - label: Statistical - symerror: 0.019 - - label: Systematic - symerror: 0.006 - value: -0.042 - - errors: - - label: Statistical - symerror: 0.023 - - label: Systematic - symerror: 0.006 - value: -0.052 - - errors: - - label: Statistical - symerror: 0.023 - - label: Systematic - symerror: 0.008 - value: 0.015 - - errors: - - label: Statistical - symerror: 0.043 - - label: Systematic - symerror: 0.007 - value: -0.013 - - errors: - - label: Statistical - symerror: 0.064 - - label: Systematic - symerror: 0.008 - value: 0.055 - - errors: - - label: Statistical - symerror: 0.104 - - label: Systematic - symerror: 0.014 - value: -0.099 - - errors: - - label: Statistical - symerror: 0.01 - - label: Systematic - symerror: 0.004 - value: -0.026 -- header: - name: Delta A0 - values: - - errors: - - label: Statistical - symerror: 0.016 - - label: Systematic - symerror: 0.032 - value: 0.018 - - errors: - - label: Statistical - symerror: 0.019 - - label: Systematic - symerror: 0.048 - value: -0.027 - - errors: - - label: Statistical - symerror: 0.026 - - label: Systematic - symerror: 0.045 - value: -0.092 - - errors: - - label: Statistical - symerror: 0.032 - - label: Systematic - symerror: 0.045 - value: -0.046 - - errors: - - label: Statistical - symerror: 0.075 - - label: Systematic - symerror: 0.053 - value: -0.184 - - errors: - - label: Statistical - symerror: 0.128 - - label: Systematic - symerror: 0.068 - value: -0.034 - - errors: - - label: Statistical - symerror: 0.214 - - label: Systematic - symerror: 0.111 - value: -0.09 - - errors: - - label: Statistical - symerror: 0.011 - - label: Systematic - symerror: 0.018 - value: -0.018 -independent_variables: -- header: - name: Mass Bins - units: GeV - values: - - high: 200.0 - low: 170.0 - - high: 250.0 - low: 200.0 - - high: 320.0 - low: 250.0 - - high: 510.0 - low: 320.0 - - high: 700.0 - low: 510.0 - - high: 1000.0 - low: 700.0 - - high: 13000.0 - low: 1000.0 - - high: 13000.0 - low: 170.0 diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIMUON/metadata.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIMUON/metadata.yaml deleted file mode 100644 index 19cb322eae..0000000000 --- a/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIMUON/metadata.yaml +++ /dev/null @@ -1,56 +0,0 @@ -setname: CMS_DY_13TEV_DIMUON -version: 1 -version_comment: -arXiv: - url: -iNSPIRE: - url: -hepdata: - url: https://www.hepdata.net/record/ins2038801 - version: 1 -nnpdf_metadata: - nnpdf31_process: "DY NC" - experiment: CMS -implemented_observables: -- observable_name: ASY_FB - observable: - description: Measurement of the forward backward asymmetry in muon pair production at sqrt(s) = 13 TeV - label: - units: '[fb]' - process_type: - tables: - - 2 - npoints: - - - ndata: - plotting: - dataset_label: CMS FB asymmetry - plot_x: M - y_label: $A_{FB}^{\mu\mu}$ - kinematic_coverage: - - m_mumu - - sqrts - kinematics: - variables: - m_mumu: - description: dilepton mass - label: $M$ - units: $GeV$ - sqrts: - description: Center of Mass Energy - label: $\sqrt{s}$ - units: $GeV$ - file: kinematics.yaml - data_central: data.yaml - data_uncertainties: - - uncertainties.yaml - theory: - FK_tables: - - - - - - - operation: ASY - conversion_factor: 1.0 - variants: - legacy: - data_uncertainties: - - uncertainties_legacy_ASY.yaml diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIMUON/rawdata/HEPData-ins2038801-v1-Table_2.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIMUON/rawdata/HEPData-ins2038801-v1-Table_2.yaml deleted file mode 100644 index 0cb594d16f..0000000000 --- a/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIMUON/rawdata/HEPData-ins2038801-v1-Table_2.yaml +++ /dev/null @@ -1,175 +0,0 @@ -dependent_variables: -- header: - name: AFB (mumu) - values: - - errors: - - label: Statistical - symerror: 0.012 - - label: Systematic - symerror: 0.011 - value: 0.61 - - errors: - - label: Statistical - symerror: 0.012 - - label: Systematic - symerror: 0.01 - value: 0.592 - - errors: - - label: Statistical - symerror: 0.014 - - label: Systematic - symerror: 0.009 - value: 0.558 - - errors: - - label: Statistical - symerror: 0.014 - - label: Systematic - symerror: 0.009 - value: 0.598 - - errors: - - label: Statistical - symerror: 0.027 - - label: Systematic - symerror: 0.008 - value: 0.61 - - errors: - - label: Statistical - symerror: 0.042 - - label: Systematic - symerror: 0.009 - value: 0.617 - - errors: - - label: Statistical - symerror: 0.07 - - label: Systematic - symerror: 0.011 - value: 0.595 - - errors: - - label: Statistical - symerror: 0.006 - - label: Systematic - symerror: 0.007 - value: 0.589 -- header: - name: AFB (ee) - values: - - errors: - - label: Statistical - symerror: 0.015 - - label: Systematic - symerror: 0.012 - value: 0.654 - - errors: - - label: Statistical - symerror: 0.015 - - label: Systematic - symerror: 0.011 - value: 0.635 - - errors: - - label: Statistical - symerror: 0.018 - - label: Systematic - symerror: 0.01 - value: 0.61 - - errors: - - label: Statistical - symerror: 0.018 - - label: Systematic - symerror: 0.009 - value: 0.583 - - errors: - - label: Statistical - symerror: 0.033 - - label: Systematic - symerror: 0.009 - value: 0.624 - - errors: - - label: Statistical - symerror: 0.048 - - label: Systematic - symerror: 0.008 - value: 0.563 - - errors: - - label: Statistical - symerror: 0.076 - - label: Systematic - symerror: 0.014 - value: 0.694 - - errors: - - label: Statistical - symerror: 0.008 - - label: Systematic - symerror: 0.007 - value: 0.615 -- header: - name: AFB (combined) - values: - - errors: - - label: Statistical - symerror: 0.009 - - label: Systematic - symerror: 0.011 - value: 0.628 - - errors: - - label: Statistical - symerror: 0.009 - - label: Systematic - symerror: 0.01 - value: 0.608 - - errors: - - label: Statistical - symerror: 0.011 - - label: Systematic - symerror: 0.009 - value: 0.578 - - errors: - - label: Statistical - symerror: 0.011 - - label: Systematic - symerror: 0.008 - value: 0.592 - - errors: - - label: Statistical - symerror: 0.021 - - label: Systematic - symerror: 0.008 - value: 0.616 - - errors: - - label: Statistical - symerror: 0.032 - - label: Systematic - symerror: 0.008 - value: 0.594 - - errors: - - label: Statistical - symerror: 0.052 - - label: Systematic - symerror: 0.011 - value: 0.638 - - errors: - - label: Statistical - symerror: 0.005 - - label: Systematic - symerror: 0.007 - value: 0.599 -independent_variables: -- header: - name: Mass Bins - units: GeV - values: - - high: 200.0 - low: 170.0 - - high: 250.0 - low: 200.0 - - high: 320.0 - low: 250.0 - - high: 510.0 - low: 320.0 - - high: 700.0 - low: 510.0 - - high: 1000.0 - low: 700.0 - - high: 13000.0 - low: 1000.0 - - high: 13000.0 - low: 170.0 diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIMUON/rawdata/HEPData-ins2038801-v1-Table_4.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIMUON/rawdata/HEPData-ins2038801-v1-Table_4.yaml deleted file mode 100644 index a60591223a..0000000000 --- a/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV_DIMUON/rawdata/HEPData-ins2038801-v1-Table_4.yaml +++ /dev/null @@ -1,124 +0,0 @@ -dependent_variables: -- header: - name: Delta AFB - values: - - errors: - - label: Statistical - symerror: 0.019 - - label: Systematic - symerror: 0.009 - value: -0.045 - - errors: - - label: Statistical - symerror: 0.019 - - label: Systematic - symerror: 0.006 - value: -0.042 - - errors: - - label: Statistical - symerror: 0.023 - - label: Systematic - symerror: 0.006 - value: -0.052 - - errors: - - label: Statistical - symerror: 0.023 - - label: Systematic - symerror: 0.008 - value: 0.015 - - errors: - - label: Statistical - symerror: 0.043 - - label: Systematic - symerror: 0.007 - value: -0.013 - - errors: - - label: Statistical - symerror: 0.064 - - label: Systematic - symerror: 0.008 - value: 0.055 - - errors: - - label: Statistical - symerror: 0.104 - - label: Systematic - symerror: 0.014 - value: -0.099 - - errors: - - label: Statistical - symerror: 0.01 - - label: Systematic - symerror: 0.004 - value: -0.026 -- header: - name: Delta A0 - values: - - errors: - - label: Statistical - symerror: 0.016 - - label: Systematic - symerror: 0.032 - value: 0.018 - - errors: - - label: Statistical - symerror: 0.019 - - label: Systematic - symerror: 0.048 - value: -0.027 - - errors: - - label: Statistical - symerror: 0.026 - - label: Systematic - symerror: 0.045 - value: -0.092 - - errors: - - label: Statistical - symerror: 0.032 - - label: Systematic - symerror: 0.045 - value: -0.046 - - errors: - - label: Statistical - symerror: 0.075 - - label: Systematic - symerror: 0.053 - value: -0.184 - - errors: - - label: Statistical - symerror: 0.128 - - label: Systematic - symerror: 0.068 - value: -0.034 - - errors: - - label: Statistical - symerror: 0.214 - - label: Systematic - symerror: 0.111 - value: -0.09 - - errors: - - label: Statistical - symerror: 0.011 - - label: Systematic - symerror: 0.018 - value: -0.018 -independent_variables: -- header: - name: Mass Bins - units: GeV - values: - - high: 200.0 - low: 170.0 - - high: 250.0 - low: 200.0 - - high: 320.0 - low: 250.0 - - high: 510.0 - low: 320.0 - - high: 700.0 - low: 510.0 - - high: 1000.0 - low: 700.0 - - high: 13000.0 - low: 1000.0 - - high: 13000.0 - low: 170.0 From 08093b52cee9b55fb17e371454ef60679e86d742 Mon Sep 17 00:00:00 2001 From: Eva Groenendijk Date: Thu, 31 Jul 2025 15:28:51 +0200 Subject: [PATCH 3/7] Made filter.py and adjusted metadata --- .../CMS_Z0_13TEV/data_combined.yaml | 9 + .../CMS_Z0_13TEV/data_dieletron.yaml | 9 + .../commondata/CMS_Z0_13TEV/data_dimuon.yaml | 9 + .../commondata/CMS_Z0_13TEV/filter.py | 323 ++++++++++++++++++ .../commondata/CMS_Z0_13TEV/kinematics.yaml | 33 ++ .../commondata/CMS_Z0_13TEV/metadata.yaml | 111 ++++++ .../HEPData-ins2038801-v1-Table_2.yaml | 175 ++++++++++ .../CMS_Z0_13TEV/uncertainties_combined.yaml | 318 +++++++++++++++++ .../uncertainties_dielectron.yaml | 126 +++++++ .../CMS_Z0_13TEV/uncertainties_dimuon.yaml | 126 +++++++ 10 files changed, 1239 insertions(+) create mode 100644 nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/data_combined.yaml create mode 100644 nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/data_dieletron.yaml create mode 100644 nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/data_dimuon.yaml create mode 100644 nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/filter.py create mode 100644 nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/kinematics.yaml create mode 100644 nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/metadata.yaml create mode 100644 nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/rawdata/HEPData-ins2038801-v1-Table_2.yaml create mode 100644 nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties_combined.yaml create mode 100644 nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties_dielectron.yaml create mode 100644 nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties_dimuon.yaml diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/data_combined.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/data_combined.yaml new file mode 100644 index 0000000000..8cbf1c986a --- /dev/null +++ b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/data_combined.yaml @@ -0,0 +1,9 @@ +data_central: +- 0.628 +- 0.608 +- 0.578 +- 0.592 +- 0.616 +- 0.594 +- 0.638 +- 0.599 diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/data_dieletron.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/data_dieletron.yaml new file mode 100644 index 0000000000..b344dc6757 --- /dev/null +++ b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/data_dieletron.yaml @@ -0,0 +1,9 @@ +data_central: +- 0.654 +- 0.635 +- 0.61 +- 0.583 +- 0.624 +- 0.563 +- 0.694 +- 0.615 diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/data_dimuon.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/data_dimuon.yaml new file mode 100644 index 0000000000..aa2a962d5a --- /dev/null +++ b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/data_dimuon.yaml @@ -0,0 +1,9 @@ +data_central: +- 0.61 +- 0.592 +- 0.558 +- 0.598 +- 0.61 +- 0.617 +- 0.595 +- 0.589 diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/filter.py b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/filter.py new file mode 100644 index 0000000000..e4454362e9 --- /dev/null +++ b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/filter.py @@ -0,0 +1,323 @@ +import yaml +import numpy as np + +def get_kinematics(): + """ + returns the relevant kinematics values. + + """ + kin = [] + + hepdata_table = f"rawdata/HEPData-ins2038801-v1-Table_2.yaml" + + with open(hepdata_table, 'r') as file: + input = yaml.safe_load(file) + + for m in input["independent_variables"][0]['values']: + kin_value = { + 'mass': {'min': m['low'], 'mid': 0.5 * (m['low'] + m['high']), 'max': m['high']}, + } + + kin.append(kin_value) + + return kin + +def get_data_values(): + """ + returns the central data. + + """ + + data_dimuon = [] + data_dielectron = [] + data_combined = [] + + hepdata_table = f"rawdata/HEPData-ins2038801-v1-Table_2.yaml" + + with open(hepdata_table, 'r') as file: + input = yaml.safe_load(file) + + values_mumu = input['dependent_variables'][0]['values'] + values_ee = input['dependent_variables'][1]['values'] + values_comb = input['dependent_variables'][2]['values'] + + for value_mumu in values_mumu: + data_dimuon.append( + value_mumu['value'] + ) + + for value_ee in values_ee: + data_dielectron.append( + value_ee['value'] + ) + + for value_comb in values_comb: + data_combined.append( + value_comb['value'] + ) + + return data_dimuon, data_dielectron, data_combined + +def get_uncertainties(): + """ + returns error definitions and error values. + + """ + tot_err_mumu = [] + tot_err_ee = [] + tot_err_comb = [] + + hepdata_table = f"rawdata/HEPData-ins2038801-v1-Table_2.yaml" + + with open(hepdata_table, 'r') as file: + input = yaml.safe_load(file) + + muon_values = input['dependent_variables'][0] + electron_values = input['dependent_variables'][1] + comb_values = input['dependent_variables'][2] + + for err_mumu in muon_values['values']: + tot_err_mumu.append({ + 'sys': err_mumu['errors'][1]['symerror'], + 'stat': err_mumu['errors'][0]['symerror'], + }) + + for err_ee in electron_values['values']: + tot_err_ee.append({ + 'sys': err_ee['errors'][1]['symerror'], + 'stat': err_ee['errors'][0]['symerror'], + }) + + for err_comb in comb_values['values']: + # these values are for the first mass bin, + # but they are said to be similar for the other bins (Table 1) + tot_err_comb.append({ + 'sys_pdfs': 0.0081, + 'sys_mcbg': 0.0041, + 'sys_aplhas': 0.0033, + 'sys_dy': 0.003, + 'sys_pileup': 0.0028, + 'sys_fidcor': 0.0027, + 'sys_ttbar': 0.0027, + 'sys_dypt': 0.0021, + 'sys_emushape': 0.0018, + 'sys_lumi': 0.0012, + 'sys_eid': 0.001, + 'sys_enorm': 0.0009, + 'sys_eshape': 0.0008, + 'sys_btag': 0.0008, + 'sys_ptmiss': 0.0007, + 'sys_muid': 0.0006, + 'sys_mushape': 0.0005, + 'sys_phph': 0.0004, + 'sys_munorm': 0.0004, + 'sys_etrig': 0.0004, + 'sys_diboson': 0.0002, + 'sys_erec': 0.0002, + 'sys_mumom': 0.0001, + 'sys_emom': 0.0001, + 'sys_mutrig': 0.0001, + 'stat': err_comb['errors'][0]['symerror'], + }) + + error_defs = {'stat': {},'sys': {}} + + error_defs['stat'] = { + "description": "Statistical uncertainties", + "treatment": "ADD", + "type": "UNCORR", + } + + error_defs['sys'] = { + "description": "Systematic uncertainties", # I think this is the best way to treat + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_pdfs'] = { + "description": "PDF uncertainty", + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_mcbg'] = { + "description": "Statistical uncertainties in templates", # correlation + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_aplhas'] = { + "description": "Variations of strong coupling, mu_R and mu_F", # event reweighting + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_dy'] = { + "description": "DY cross section uncertainty", # overall unc on whole MC event + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_pileup'] = { + "description": "Uncertainty from difference in measured and simulated pileup", # reweighting + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_fidcor'] = { + "description": "Fiducial corrections", # unc depends on mass, scaling factor per mass bin? + "treatment": "MULT", + "type": "UNCORR", + } + + error_defs['sys_ttbar'] = { + "description": "ttbar cross section uncertainty", # overall unc on whole MC event + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_dypt'] = { + "description": "Uncertainty from mismodelling of the pt spectrum", # reweighting determined per mass bin + "treatment": "MULT", + "type": "UNCORR", + } + + error_defs['sys_emushape'] = { + "description": "Uncertainty from the electron muon background shape", # per cos\theta bin, correlated accross mass bins + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_lumi'] = { + "description": "Integrated luminosity uncertainty", + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_eid'] = { + "description": "Uncertainty from electron identification/isolation", # I think same accross mass bins? + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_enorm'] = { + "description": "Electron MisID normalisation", # one variation on all bins, acts as scale factor + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_eshape'] = { + "description": "Electron MisID shape", # variations in template shape, does not have to be coherent accross bins + "treatment": "ADD", + "type": "UNCORR", + } + + error_defs['sys_btag'] = { + "description": "Uncertainty from b tagging", # scalings depend only on jet flav, pt and rapidity not on mass + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_ptmiss'] = { + "description": "Missing pt modelling uncertainty", # estimated by changing jet energy and simulating whole thingagain + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_muid'] = { + "description": "Uncertainty from muon identification/isolation", # same accross mass bins I think? + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_mushape'] = { + "description": "Muon MisID shape", # variations in template shape, does not have to be coherent accross bins + "treatment": "ADD", + "type": "UNCORR", + } + + error_defs['sys_phph'] = { + "description": "gamma gamma --> ll cross section uncertainty", # overall unc on whole MC event + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_munorm'] = { + "description": "Muon MisID normalisation", # one variation on all bins, acts as scale factor + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_etrig'] = { + "description": "Electron trigger uncertainty", # Not sure if it is indeed mult, but I would suppose so? + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_diboson'] = { + "description": "Diboson cross section uncertainty", # overall unc on whole MC event + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_erec'] = { + "description": "Electron reconstruction efficiency", # efficiency correction to all total events with electrons + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_mumom'] = { + "description": "Muon momentum scale corrections", + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_emom'] = { + "description": "Electron momentum scale corrections", + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_mutrig'] = { + "description": "Muon trigger uncertainty", + "treatment": "MULT", + "type": "CORR", + } + + return {'dimuon': tot_err_mumu, 'dielectron': tot_err_ee, 'combined': tot_err_comb, 'error defs': error_defs} + +def dump_to_yaml(): + + data_dimuon = get_data_values()[0] + data_dielectron = get_data_values()[1] + data_combined = get_data_values()[2] + kinematics = get_kinematics() + + with open(f"data_dimuon.yaml", "w") as file: + yaml.dump({"data_central": data_dimuon}, file, sort_keys=False) + + with open(f"data_dieletron.yaml", "w") as file: + yaml.dump({"data_central": data_dielectron}, file, sort_keys=False) + + with open(f"data_combined.yaml", "w") as file: + yaml.dump({"data_central": data_combined}, file, sort_keys=False) + + with open(f"kinematics.yaml", "w") as file: + yaml.dump({"bins": kinematics}, file, sort_keys=False) + + with open(f"uncertainties_dimuon.yaml", "w") as file: + yaml.dump({"definitions": get_uncertainties()['error defs'], "bins": get_uncertainties()['dimuon']}, file, sort_keys=False) + + with open(f"uncertainties_dielectron.yaml", "w") as file: + yaml.dump({"definitions": get_uncertainties()['error defs'], "bins": get_uncertainties()['dielectron']}, file, sort_keys=False) + + with open(f"uncertainties_combined.yaml", "w") as file: + yaml.dump({"definitions": get_uncertainties()['error defs'], "bins": get_uncertainties()['combined']}, file, sort_keys=False) + + return +dump_to_yaml() + + + + + diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/kinematics.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/kinematics.yaml new file mode 100644 index 0000000000..720cfac10e --- /dev/null +++ b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/kinematics.yaml @@ -0,0 +1,33 @@ +bins: +- mass: + min: 170.0 + mid: 185.0 + max: 200.0 +- mass: + min: 200.0 + mid: 225.0 + max: 250.0 +- mass: + min: 250.0 + mid: 285.0 + max: 320.0 +- mass: + min: 320.0 + mid: 415.0 + max: 510.0 +- mass: + min: 510.0 + mid: 605.0 + max: 700.0 +- mass: + min: 700.0 + mid: 850.0 + max: 1000.0 +- mass: + min: 1000.0 + mid: 7000.0 + max: 13000.0 +- mass: + min: 170.0 + mid: 6585.0 + max: 13000.0 diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/metadata.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/metadata.yaml new file mode 100644 index 0000000000..fde2cec0e6 --- /dev/null +++ b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/metadata.yaml @@ -0,0 +1,111 @@ +setname: CMS_DY_13TEV +version: 1 +version_comment: +arXiv: + url: https://arxiv.org/abs/2202.12327 +iNSPIRE: + url: https://inspirehep.net/literature/1952936 +hepdata: + url: https://www.hepdata.net/record/ins2038801 + version: 1 +nnpdf_metadata: + nnpdf31_process: "DY NC" + experiment: CMS +implemented_observables: +- observable_name: ASY_FB_DIMUON + observable: + description: Measurement of the forward backward asymmetry in NC muon pair production at sqrt(s) = 13 TeV + label: + units: '[fb]' + process_type: + tables: + - 1 + npoints: + - 8 + ndata: + plotting: + dataset_label: CMS FB asymmetry mu mu + plot_x: m + y_label: $A_{FB}^{\mu\mu}$ + kinematic_coverage: + - mass + kinematics: + variables: + mass: + description: dilepton mass + label: $m_{ll}$ + units: $GeV$ + file: kinematics.yaml + data_central: data_dimuon.yaml + data_uncertainties: + - uncertainties_dimuon.yaml + theory: + FK_tables: + - - + operation: ASY + conversion_factor: 1.0 +- observable_name: ASY_FB_DIELECTRON + observable: + description: Measurement of the forward backward asymmetry in NC electron pair production at sqrt(s) = 13 TeV + label: + units: '[fb]' + process_type: + tables: + - 2 + npoints: + - 8 + ndata: + plotting: + dataset_label: CMS FB asymmetry ee + plot_x: m + y_label: $A_{FB}^{ee}$ + kinematic_coverage: + - mass + kinematics: + variables: + mass: + description: dilepton mass + label: $m_{ll}$ + units: $GeV$ + file: kinematics.yaml + data_central: data_dielectron.yaml + data_uncertainties: + - uncertainties_dielectron.yaml + theory: + FK_tables: + - - + operation: ASY + conversion_factor: 1.0 +- observable_name: ASY_FB_COMBINED + observable: + description: Measurement of the forward backward asymmetry in NC muon and electron pair production at sqrt(s) = 13 TeV + label: + units: '[fb]' + process_type: + tables: + - 2 + npoints: + - 8 + ndata: + plotting: + dataset_label: CMS FB asymmetry ee + plot_x: m + y_label: $A_{FB}^{ee}$ + kinematic_coverage: + - mass + kinematics: + variables: + mass: + description: dilepton mass + label: $m_{ll}$ + units: $GeV$ + file: kinematics.yaml + data_central: data_combined.yaml + data_uncertainties: + - uncertainties_combined.yaml + theory: + FK_tables: + - - + operation: ASY + conversion_factor: 1.0 + diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/rawdata/HEPData-ins2038801-v1-Table_2.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/rawdata/HEPData-ins2038801-v1-Table_2.yaml new file mode 100644 index 0000000000..0cb594d16f --- /dev/null +++ b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/rawdata/HEPData-ins2038801-v1-Table_2.yaml @@ -0,0 +1,175 @@ +dependent_variables: +- header: + name: AFB (mumu) + values: + - errors: + - label: Statistical + symerror: 0.012 + - label: Systematic + symerror: 0.011 + value: 0.61 + - errors: + - label: Statistical + symerror: 0.012 + - label: Systematic + symerror: 0.01 + value: 0.592 + - errors: + - label: Statistical + symerror: 0.014 + - label: Systematic + symerror: 0.009 + value: 0.558 + - errors: + - label: Statistical + symerror: 0.014 + - label: Systematic + symerror: 0.009 + value: 0.598 + - errors: + - label: Statistical + symerror: 0.027 + - label: Systematic + symerror: 0.008 + value: 0.61 + - errors: + - label: Statistical + symerror: 0.042 + - label: Systematic + symerror: 0.009 + value: 0.617 + - errors: + - label: Statistical + symerror: 0.07 + - label: Systematic + symerror: 0.011 + value: 0.595 + - errors: + - label: Statistical + symerror: 0.006 + - label: Systematic + symerror: 0.007 + value: 0.589 +- header: + name: AFB (ee) + values: + - errors: + - label: Statistical + symerror: 0.015 + - label: Systematic + symerror: 0.012 + value: 0.654 + - errors: + - label: Statistical + symerror: 0.015 + - label: Systematic + symerror: 0.011 + value: 0.635 + - errors: + - label: Statistical + symerror: 0.018 + - label: Systematic + symerror: 0.01 + value: 0.61 + - errors: + - label: Statistical + symerror: 0.018 + - label: Systematic + symerror: 0.009 + value: 0.583 + - errors: + - label: Statistical + symerror: 0.033 + - label: Systematic + symerror: 0.009 + value: 0.624 + - errors: + - label: Statistical + symerror: 0.048 + - label: Systematic + symerror: 0.008 + value: 0.563 + - errors: + - label: Statistical + symerror: 0.076 + - label: Systematic + symerror: 0.014 + value: 0.694 + - errors: + - label: Statistical + symerror: 0.008 + - label: Systematic + symerror: 0.007 + value: 0.615 +- header: + name: AFB (combined) + values: + - errors: + - label: Statistical + symerror: 0.009 + - label: Systematic + symerror: 0.011 + value: 0.628 + - errors: + - label: Statistical + symerror: 0.009 + - label: Systematic + symerror: 0.01 + value: 0.608 + - errors: + - label: Statistical + symerror: 0.011 + - label: Systematic + symerror: 0.009 + value: 0.578 + - errors: + - label: Statistical + symerror: 0.011 + - label: Systematic + symerror: 0.008 + value: 0.592 + - errors: + - label: Statistical + symerror: 0.021 + - label: Systematic + symerror: 0.008 + value: 0.616 + - errors: + - label: Statistical + symerror: 0.032 + - label: Systematic + symerror: 0.008 + value: 0.594 + - errors: + - label: Statistical + symerror: 0.052 + - label: Systematic + symerror: 0.011 + value: 0.638 + - errors: + - label: Statistical + symerror: 0.005 + - label: Systematic + symerror: 0.007 + value: 0.599 +independent_variables: +- header: + name: Mass Bins + units: GeV + values: + - high: 200.0 + low: 170.0 + - high: 250.0 + low: 200.0 + - high: 320.0 + low: 250.0 + - high: 510.0 + low: 320.0 + - high: 700.0 + low: 510.0 + - high: 1000.0 + low: 700.0 + - high: 13000.0 + low: 1000.0 + - high: 13000.0 + low: 170.0 diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties_combined.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties_combined.yaml new file mode 100644 index 0000000000..cf6e5166dc --- /dev/null +++ b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties_combined.yaml @@ -0,0 +1,318 @@ +definitions: + stat: + description: Statistical uncertainties + treatment: ADD + type: UNCORR + sys: + description: Systematic uncertainties + treatment: MULT + type: CORR + sys_pdfs: + description: PDF uncertainty + treatment: MULT + type: CORR + sys_mcbg: + description: Statistical uncertainties in templates + treatment: MULT + type: CORR + sys_aplhas: + description: Variations of strong coupling, mu_R and mu_F + treatment: MULT + type: CORR + sys_dy: + description: DY cross section uncertainty + treatment: MULT + type: CORR + sys_pileup: + description: Uncertainty from difference in measured and simulated pileup + treatment: MULT + type: CORR + sys_fidcor: + description: Fiducial corrections + treatment: MULT + type: UNCORR + sys_ttbar: + description: ttbar cross section uncertainty + treatment: MULT + type: CORR + sys_dypt: + description: Uncertainty from mismodelling of the pt spectrum + treatment: MULT + type: UNCORR + sys_emushape: + description: Uncertainty from the electron muon background shape + treatment: MULT + type: CORR + sys_lumi: + description: Integrated luminosity uncertainty + treatment: MULT + type: CORR + sys_eid: + description: Uncertainty from electron identification/isolation + treatment: MULT + type: CORR + sys_enorm: + description: Electron MisID normalisation + treatment: MULT + type: CORR + sys_eshape: + description: Electron MisID shape + treatment: ADD + type: UNCORR + sys_btag: + description: Uncertainty from b tagging + treatment: MULT + type: CORR + sys_ptmiss: + description: Missing pt modelling uncertainty + treatment: MULT + type: CORR + sys_muid: + description: Uncertainty from muon identification/isolation + treatment: MULT + type: CORR + sys_mushape: + description: Muon MisID shape + treatment: ADD + type: UNCORR + sys_phph: + description: gamma gamma --> ll cross section uncertainty + treatment: MULT + type: CORR + sys_munorm: + description: Muon MisID normalisation + treatment: MULT + type: CORR + sys_etrig: + description: Electron trigger uncertainty + treatment: MULT + type: CORR + sys_diboson: + description: Diboson cross section uncertainty + treatment: MULT + type: CORR + sys_erec: + description: Electron reconstruction efficiency + treatment: MULT + type: CORR + sys_mumom: + description: Muon momentum scale corrections + treatment: MULT + type: CORR + sys_emom: + description: Electron momentum scale corrections + treatment: MULT + type: CORR + sys_mutrig: + description: Muon trigger uncertainty + treatment: MULT + type: CORR +bins: +- sys_pdfs: 0.0081 + sys_mcbg: 0.0041 + sys_aplhas: 0.0033 + sys_dy: 0.003 + sys_pileup: 0.0028 + sys_fidcor: 0.0027 + sys_ttbar: 0.0027 + sys_dypt: 0.0021 + sys_emushape: 0.0018 + sys_lumi: 0.0012 + sys_eid: 0.001 + sys_enorm: 0.0009 + sys_eshape: 0.0008 + sys_btag: 0.0008 + sys_ptmiss: 0.0007 + sys_muid: 0.0006 + sys_mushape: 0.0005 + sys_phph: 0.0004 + sys_munorm: 0.0004 + sys_etrig: 0.0004 + sys_diboson: 0.0002 + sys_erec: 0.0002 + sys_mumom: 0.0001 + sys_emom: 0.0001 + sys_mutrig: 0.0001 + stat: 0.009 +- sys_pdfs: 0.0081 + sys_mcbg: 0.0041 + sys_aplhas: 0.0033 + sys_dy: 0.003 + sys_pileup: 0.0028 + sys_fidcor: 0.0027 + sys_ttbar: 0.0027 + sys_dypt: 0.0021 + sys_emushape: 0.0018 + sys_lumi: 0.0012 + sys_eid: 0.001 + sys_enorm: 0.0009 + sys_eshape: 0.0008 + sys_btag: 0.0008 + sys_ptmiss: 0.0007 + sys_muid: 0.0006 + sys_mushape: 0.0005 + sys_phph: 0.0004 + sys_munorm: 0.0004 + sys_etrig: 0.0004 + sys_diboson: 0.0002 + sys_erec: 0.0002 + sys_mumom: 0.0001 + sys_emom: 0.0001 + sys_mutrig: 0.0001 + stat: 0.009 +- sys_pdfs: 0.0081 + sys_mcbg: 0.0041 + sys_aplhas: 0.0033 + sys_dy: 0.003 + sys_pileup: 0.0028 + sys_fidcor: 0.0027 + sys_ttbar: 0.0027 + sys_dypt: 0.0021 + sys_emushape: 0.0018 + sys_lumi: 0.0012 + sys_eid: 0.001 + sys_enorm: 0.0009 + sys_eshape: 0.0008 + sys_btag: 0.0008 + sys_ptmiss: 0.0007 + sys_muid: 0.0006 + sys_mushape: 0.0005 + sys_phph: 0.0004 + sys_munorm: 0.0004 + sys_etrig: 0.0004 + sys_diboson: 0.0002 + sys_erec: 0.0002 + sys_mumom: 0.0001 + sys_emom: 0.0001 + sys_mutrig: 0.0001 + stat: 0.011 +- sys_pdfs: 0.0081 + sys_mcbg: 0.0041 + sys_aplhas: 0.0033 + sys_dy: 0.003 + sys_pileup: 0.0028 + sys_fidcor: 0.0027 + sys_ttbar: 0.0027 + sys_dypt: 0.0021 + sys_emushape: 0.0018 + sys_lumi: 0.0012 + sys_eid: 0.001 + sys_enorm: 0.0009 + sys_eshape: 0.0008 + sys_btag: 0.0008 + sys_ptmiss: 0.0007 + sys_muid: 0.0006 + sys_mushape: 0.0005 + sys_phph: 0.0004 + sys_munorm: 0.0004 + sys_etrig: 0.0004 + sys_diboson: 0.0002 + sys_erec: 0.0002 + sys_mumom: 0.0001 + sys_emom: 0.0001 + sys_mutrig: 0.0001 + stat: 0.011 +- sys_pdfs: 0.0081 + sys_mcbg: 0.0041 + sys_aplhas: 0.0033 + sys_dy: 0.003 + sys_pileup: 0.0028 + sys_fidcor: 0.0027 + sys_ttbar: 0.0027 + sys_dypt: 0.0021 + sys_emushape: 0.0018 + sys_lumi: 0.0012 + sys_eid: 0.001 + sys_enorm: 0.0009 + sys_eshape: 0.0008 + sys_btag: 0.0008 + sys_ptmiss: 0.0007 + sys_muid: 0.0006 + sys_mushape: 0.0005 + sys_phph: 0.0004 + sys_munorm: 0.0004 + sys_etrig: 0.0004 + sys_diboson: 0.0002 + sys_erec: 0.0002 + sys_mumom: 0.0001 + sys_emom: 0.0001 + sys_mutrig: 0.0001 + stat: 0.021 +- sys_pdfs: 0.0081 + sys_mcbg: 0.0041 + sys_aplhas: 0.0033 + sys_dy: 0.003 + sys_pileup: 0.0028 + sys_fidcor: 0.0027 + sys_ttbar: 0.0027 + sys_dypt: 0.0021 + sys_emushape: 0.0018 + sys_lumi: 0.0012 + sys_eid: 0.001 + sys_enorm: 0.0009 + sys_eshape: 0.0008 + sys_btag: 0.0008 + sys_ptmiss: 0.0007 + sys_muid: 0.0006 + sys_mushape: 0.0005 + sys_phph: 0.0004 + sys_munorm: 0.0004 + sys_etrig: 0.0004 + sys_diboson: 0.0002 + sys_erec: 0.0002 + sys_mumom: 0.0001 + sys_emom: 0.0001 + sys_mutrig: 0.0001 + stat: 0.032 +- sys_pdfs: 0.0081 + sys_mcbg: 0.0041 + sys_aplhas: 0.0033 + sys_dy: 0.003 + sys_pileup: 0.0028 + sys_fidcor: 0.0027 + sys_ttbar: 0.0027 + sys_dypt: 0.0021 + sys_emushape: 0.0018 + sys_lumi: 0.0012 + sys_eid: 0.001 + sys_enorm: 0.0009 + sys_eshape: 0.0008 + sys_btag: 0.0008 + sys_ptmiss: 0.0007 + sys_muid: 0.0006 + sys_mushape: 0.0005 + sys_phph: 0.0004 + sys_munorm: 0.0004 + sys_etrig: 0.0004 + sys_diboson: 0.0002 + sys_erec: 0.0002 + sys_mumom: 0.0001 + sys_emom: 0.0001 + sys_mutrig: 0.0001 + stat: 0.052 +- sys_pdfs: 0.0081 + sys_mcbg: 0.0041 + sys_aplhas: 0.0033 + sys_dy: 0.003 + sys_pileup: 0.0028 + sys_fidcor: 0.0027 + sys_ttbar: 0.0027 + sys_dypt: 0.0021 + sys_emushape: 0.0018 + sys_lumi: 0.0012 + sys_eid: 0.001 + sys_enorm: 0.0009 + sys_eshape: 0.0008 + sys_btag: 0.0008 + sys_ptmiss: 0.0007 + sys_muid: 0.0006 + sys_mushape: 0.0005 + sys_phph: 0.0004 + sys_munorm: 0.0004 + sys_etrig: 0.0004 + sys_diboson: 0.0002 + sys_erec: 0.0002 + sys_mumom: 0.0001 + sys_emom: 0.0001 + sys_mutrig: 0.0001 + stat: 0.005 diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties_dielectron.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties_dielectron.yaml new file mode 100644 index 0000000000..9f0f6608a2 --- /dev/null +++ b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties_dielectron.yaml @@ -0,0 +1,126 @@ +definitions: + stat: + description: Statistical uncertainties + treatment: ADD + type: UNCORR + sys: + description: Systematic uncertainties + treatment: MULT + type: CORR + sys_pdfs: + description: PDF uncertainty + treatment: MULT + type: CORR + sys_mcbg: + description: Statistical uncertainties in templates + treatment: MULT + type: CORR + sys_aplhas: + description: Variations of strong coupling, mu_R and mu_F + treatment: MULT + type: CORR + sys_dy: + description: DY cross section uncertainty + treatment: MULT + type: CORR + sys_pileup: + description: Uncertainty from difference in measured and simulated pileup + treatment: MULT + type: CORR + sys_fidcor: + description: Fiducial corrections + treatment: MULT + type: UNCORR + sys_ttbar: + description: ttbar cross section uncertainty + treatment: MULT + type: CORR + sys_dypt: + description: Uncertainty from mismodelling of the pt spectrum + treatment: MULT + type: UNCORR + sys_emushape: + description: Uncertainty from the electron muon background shape + treatment: MULT + type: CORR + sys_lumi: + description: Integrated luminosity uncertainty + treatment: MULT + type: CORR + sys_eid: + description: Uncertainty from electron identification/isolation + treatment: MULT + type: CORR + sys_enorm: + description: Electron MisID normalisation + treatment: MULT + type: CORR + sys_eshape: + description: Electron MisID shape + treatment: ADD + type: UNCORR + sys_btag: + description: Uncertainty from b tagging + treatment: MULT + type: CORR + sys_ptmiss: + description: Missing pt modelling uncertainty + treatment: MULT + type: CORR + sys_muid: + description: Uncertainty from muon identification/isolation + treatment: MULT + type: CORR + sys_mushape: + description: Muon MisID shape + treatment: ADD + type: UNCORR + sys_phph: + description: gamma gamma --> ll cross section uncertainty + treatment: MULT + type: CORR + sys_munorm: + description: Muon MisID normalisation + treatment: MULT + type: CORR + sys_etrig: + description: Electron trigger uncertainty + treatment: MULT + type: CORR + sys_diboson: + description: Diboson cross section uncertainty + treatment: MULT + type: CORR + sys_erec: + description: Electron reconstruction efficiency + treatment: MULT + type: CORR + sys_mumom: + description: Muon momentum scale corrections + treatment: MULT + type: CORR + sys_emom: + description: Electron momentum scale corrections + treatment: MULT + type: CORR + sys_mutrig: + description: Muon trigger uncertainty + treatment: MULT + type: CORR +bins: +- sys: 0.012 + stat: 0.015 +- sys: 0.011 + stat: 0.015 +- sys: 0.01 + stat: 0.018 +- sys: 0.009 + stat: 0.018 +- sys: 0.009 + stat: 0.033 +- sys: 0.008 + stat: 0.048 +- sys: 0.014 + stat: 0.076 +- sys: 0.007 + stat: 0.008 diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties_dimuon.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties_dimuon.yaml new file mode 100644 index 0000000000..35f0d55d41 --- /dev/null +++ b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties_dimuon.yaml @@ -0,0 +1,126 @@ +definitions: + stat: + description: Statistical uncertainties + treatment: ADD + type: UNCORR + sys: + description: Systematic uncertainties + treatment: MULT + type: CORR + sys_pdfs: + description: PDF uncertainty + treatment: MULT + type: CORR + sys_mcbg: + description: Statistical uncertainties in templates + treatment: MULT + type: CORR + sys_aplhas: + description: Variations of strong coupling, mu_R and mu_F + treatment: MULT + type: CORR + sys_dy: + description: DY cross section uncertainty + treatment: MULT + type: CORR + sys_pileup: + description: Uncertainty from difference in measured and simulated pileup + treatment: MULT + type: CORR + sys_fidcor: + description: Fiducial corrections + treatment: MULT + type: UNCORR + sys_ttbar: + description: ttbar cross section uncertainty + treatment: MULT + type: CORR + sys_dypt: + description: Uncertainty from mismodelling of the pt spectrum + treatment: MULT + type: UNCORR + sys_emushape: + description: Uncertainty from the electron muon background shape + treatment: MULT + type: CORR + sys_lumi: + description: Integrated luminosity uncertainty + treatment: MULT + type: CORR + sys_eid: + description: Uncertainty from electron identification/isolation + treatment: MULT + type: CORR + sys_enorm: + description: Electron MisID normalisation + treatment: MULT + type: CORR + sys_eshape: + description: Electron MisID shape + treatment: ADD + type: UNCORR + sys_btag: + description: Uncertainty from b tagging + treatment: MULT + type: CORR + sys_ptmiss: + description: Missing pt modelling uncertainty + treatment: MULT + type: CORR + sys_muid: + description: Uncertainty from muon identification/isolation + treatment: MULT + type: CORR + sys_mushape: + description: Muon MisID shape + treatment: ADD + type: UNCORR + sys_phph: + description: gamma gamma --> ll cross section uncertainty + treatment: MULT + type: CORR + sys_munorm: + description: Muon MisID normalisation + treatment: MULT + type: CORR + sys_etrig: + description: Electron trigger uncertainty + treatment: MULT + type: CORR + sys_diboson: + description: Diboson cross section uncertainty + treatment: MULT + type: CORR + sys_erec: + description: Electron reconstruction efficiency + treatment: MULT + type: CORR + sys_mumom: + description: Muon momentum scale corrections + treatment: MULT + type: CORR + sys_emom: + description: Electron momentum scale corrections + treatment: MULT + type: CORR + sys_mutrig: + description: Muon trigger uncertainty + treatment: MULT + type: CORR +bins: +- sys: 0.011 + stat: 0.012 +- sys: 0.01 + stat: 0.012 +- sys: 0.009 + stat: 0.014 +- sys: 0.009 + stat: 0.014 +- sys: 0.008 + stat: 0.027 +- sys: 0.009 + stat: 0.042 +- sys: 0.011 + stat: 0.07 +- sys: 0.007 + stat: 0.006 From 6df8b64e51cfe9f6a274926f7189719cbb16fbc1 Mon Sep 17 00:00:00 2001 From: enocera Date: Tue, 26 Aug 2025 22:42:05 +0200 Subject: [PATCH 4/7] Implemnetation revised: removed separate ee and mumu channels; added missing eta variable in kinematics; implemented two variants of uncertainties for full breakdown or not; removed last bin (this is the integral) --- .../commondata/CMS_DY_13TEV/metadata.yaml | 96 ---- .../HEPData-ins2038801-v1-Table_2.yaml | 175 ------- .../{data_combined.yaml => data.yaml} | 1 - .../CMS_Z0_13TEV/data_dieletron.yaml | 9 - .../commondata/CMS_Z0_13TEV/data_dimuon.yaml | 9 - .../commondata/CMS_Z0_13TEV/filter.py | 486 +++++++++--------- .../commondata/CMS_Z0_13TEV/kinematics.yaml | 46 +- .../commondata/CMS_Z0_13TEV/metadata.yaml | 103 +--- .../CMS_Z0_13TEV/uncertainties.yaml | 24 + ...ined.yaml => uncertainties_breakdown.yaml} | 64 +-- .../uncertainties_dielectron.yaml | 126 ----- .../CMS_Z0_13TEV/uncertainties_dimuon.yaml | 126 ----- 12 files changed, 332 insertions(+), 933 deletions(-) delete mode 100644 nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV/metadata.yaml delete mode 100644 nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV/rawdata/HEPData-ins2038801-v1-Table_2.yaml rename nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/{data_combined.yaml => data.yaml} (89%) delete mode 100644 nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/data_dieletron.yaml delete mode 100644 nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/data_dimuon.yaml create mode 100644 nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties.yaml rename nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/{uncertainties_combined.yaml => uncertainties_breakdown.yaml} (87%) delete mode 100644 nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties_dielectron.yaml delete mode 100644 nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties_dimuon.yaml diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV/metadata.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV/metadata.yaml deleted file mode 100644 index 2540e78659..0000000000 --- a/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV/metadata.yaml +++ /dev/null @@ -1,96 +0,0 @@ -setname: CMS_DY_13TEV -version: 1 -version_comment: -arXiv: - url: https://arxiv.org/abs/2202.12327 -iNSPIRE: - url: https://inspirehep.net/literature/1952936 -hepdata: - url: https://www.hepdata.net/record/ins2038801 - version: 1 -nnpdf_metadata: - nnpdf31_process: "DY NC" - experiment: CMS -implemented_observables: -- observable_name: ASY_FB_DIMUON - observable: - description: Measurement of the forward backward asymmetry in NC muon pair production at sqrt(s) = 13 TeV - label: - units: '[fb]' - process_type: - tables: - - 2 - npoints: - - - ndata: - plotting: - dataset_label: CMS FB asymmetry mu mu - plot_x: M - y_label: $A_{FB}^{\mu\mu}$ - kinematic_coverage: - - m_mumu - - sqrts - kinematics: - variables: - m_mumu: - description: dilepton mass - label: $M$ - units: $GeV$ - sqrts: - description: Center of Mass Energy - label: $\sqrt{s}$ - units: $GeV$ - file: kinematics.yaml - data_central: data.yaml - data_uncertainties: - - uncertainties_mumu.yaml - theory: - FK_tables: - - - - operation: ASY - conversion_factor: 1.0 - variants: - legacy: - data_uncertainties: - - uncertainties_legacy_ASY.yaml -- observable_name: ASY_FB_DIELECTRON - observable: - description: Measurement of the forward backward asymmetry in NC electron pair production at sqrt(s) = 13 TeV - label: - units: '[fb]' - process_type: - tables: - - 2 - npoints: - - - ndata: - plotting: - dataset_label: CMS FB asymmetry ee - plot_x: M - y_label: $A_{FB}^{ee}$ - kinematic_coverage: - - m_mumu - - sqrts - kinematics: - variables: - m_mumu: - description: dilepton mass - label: $M$ - units: $GeV$ - sqrts: - description: Center of Mass Energy - label: $\sqrt{s}$ - units: $GeV$ - file: kinematics.yaml - data_central: data.yaml - data_uncertainties: - - uncertainties_ee.yaml - theory: - FK_tables: - - - - operation: ASY - conversion_factor: 1.0 - variants: - legacy: - data_uncertainties: - - uncertainties_legacy_ASY.yaml diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV/rawdata/HEPData-ins2038801-v1-Table_2.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV/rawdata/HEPData-ins2038801-v1-Table_2.yaml deleted file mode 100644 index 0cb594d16f..0000000000 --- a/nnpdf_data/nnpdf_data/commondata/CMS_DY_13TEV/rawdata/HEPData-ins2038801-v1-Table_2.yaml +++ /dev/null @@ -1,175 +0,0 @@ -dependent_variables: -- header: - name: AFB (mumu) - values: - - errors: - - label: Statistical - symerror: 0.012 - - label: Systematic - symerror: 0.011 - value: 0.61 - - errors: - - label: Statistical - symerror: 0.012 - - label: Systematic - symerror: 0.01 - value: 0.592 - - errors: - - label: Statistical - symerror: 0.014 - - label: Systematic - symerror: 0.009 - value: 0.558 - - errors: - - label: Statistical - symerror: 0.014 - - label: Systematic - symerror: 0.009 - value: 0.598 - - errors: - - label: Statistical - symerror: 0.027 - - label: Systematic - symerror: 0.008 - value: 0.61 - - errors: - - label: Statistical - symerror: 0.042 - - label: Systematic - symerror: 0.009 - value: 0.617 - - errors: - - label: Statistical - symerror: 0.07 - - label: Systematic - symerror: 0.011 - value: 0.595 - - errors: - - label: Statistical - symerror: 0.006 - - label: Systematic - symerror: 0.007 - value: 0.589 -- header: - name: AFB (ee) - values: - - errors: - - label: Statistical - symerror: 0.015 - - label: Systematic - symerror: 0.012 - value: 0.654 - - errors: - - label: Statistical - symerror: 0.015 - - label: Systematic - symerror: 0.011 - value: 0.635 - - errors: - - label: Statistical - symerror: 0.018 - - label: Systematic - symerror: 0.01 - value: 0.61 - - errors: - - label: Statistical - symerror: 0.018 - - label: Systematic - symerror: 0.009 - value: 0.583 - - errors: - - label: Statistical - symerror: 0.033 - - label: Systematic - symerror: 0.009 - value: 0.624 - - errors: - - label: Statistical - symerror: 0.048 - - label: Systematic - symerror: 0.008 - value: 0.563 - - errors: - - label: Statistical - symerror: 0.076 - - label: Systematic - symerror: 0.014 - value: 0.694 - - errors: - - label: Statistical - symerror: 0.008 - - label: Systematic - symerror: 0.007 - value: 0.615 -- header: - name: AFB (combined) - values: - - errors: - - label: Statistical - symerror: 0.009 - - label: Systematic - symerror: 0.011 - value: 0.628 - - errors: - - label: Statistical - symerror: 0.009 - - label: Systematic - symerror: 0.01 - value: 0.608 - - errors: - - label: Statistical - symerror: 0.011 - - label: Systematic - symerror: 0.009 - value: 0.578 - - errors: - - label: Statistical - symerror: 0.011 - - label: Systematic - symerror: 0.008 - value: 0.592 - - errors: - - label: Statistical - symerror: 0.021 - - label: Systematic - symerror: 0.008 - value: 0.616 - - errors: - - label: Statistical - symerror: 0.032 - - label: Systematic - symerror: 0.008 - value: 0.594 - - errors: - - label: Statistical - symerror: 0.052 - - label: Systematic - symerror: 0.011 - value: 0.638 - - errors: - - label: Statistical - symerror: 0.005 - - label: Systematic - symerror: 0.007 - value: 0.599 -independent_variables: -- header: - name: Mass Bins - units: GeV - values: - - high: 200.0 - low: 170.0 - - high: 250.0 - low: 200.0 - - high: 320.0 - low: 250.0 - - high: 510.0 - low: 320.0 - - high: 700.0 - low: 510.0 - - high: 1000.0 - low: 700.0 - - high: 13000.0 - low: 1000.0 - - high: 13000.0 - low: 170.0 diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/data_combined.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/data.yaml similarity index 89% rename from nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/data_combined.yaml rename to nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/data.yaml index 8cbf1c986a..74bdc68e78 100644 --- a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/data_combined.yaml +++ b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/data.yaml @@ -6,4 +6,3 @@ data_central: - 0.616 - 0.594 - 0.638 -- 0.599 diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/data_dieletron.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/data_dieletron.yaml deleted file mode 100644 index b344dc6757..0000000000 --- a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/data_dieletron.yaml +++ /dev/null @@ -1,9 +0,0 @@ -data_central: -- 0.654 -- 0.635 -- 0.61 -- 0.583 -- 0.624 -- 0.563 -- 0.694 -- 0.615 diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/data_dimuon.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/data_dimuon.yaml deleted file mode 100644 index aa2a962d5a..0000000000 --- a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/data_dimuon.yaml +++ /dev/null @@ -1,9 +0,0 @@ -data_central: -- 0.61 -- 0.592 -- 0.558 -- 0.598 -- 0.61 -- 0.617 -- 0.595 -- 0.589 diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/filter.py b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/filter.py index e4454362e9..6ba050c2d7 100644 --- a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/filter.py +++ b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/filter.py @@ -1,5 +1,14 @@ +""" +This file contains the piece of code needed to implement the CMS AFB +measurement at 13 TeV. The treatment of uncertainties is ambiguous, +therefore two variants are implemented. One in which there are only two +uncertainties: a statistical and a systematic uncertainty. The other +in which the full breakdown of uncertainties is taken from Table 1 +of the paper. Note that the Table is in principle valid only for the +first invariant mass bin. +""" + import yaml -import numpy as np def get_kinematics(): """ @@ -15,11 +24,14 @@ def get_kinematics(): for m in input["independent_variables"][0]['values']: kin_value = { + 'eta': {'min': -2.4, 'mid': 0.0, 'max': +2.4}, 'mass': {'min': m['low'], 'mid': 0.5 * (m['low'] + m['high']), 'max': m['high']}, } kin.append(kin_value) + del kin[-1] + return kin def get_data_values(): @@ -27,295 +39,259 @@ def get_data_values(): returns the central data. """ - - data_dimuon = [] - data_dielectron = [] - data_combined = [] + data = [] hepdata_table = f"rawdata/HEPData-ins2038801-v1-Table_2.yaml" with open(hepdata_table, 'r') as file: input = yaml.safe_load(file) + + values = input['dependent_variables'][2]['values'] - values_mumu = input['dependent_variables'][0]['values'] - values_ee = input['dependent_variables'][1]['values'] - values_comb = input['dependent_variables'][2]['values'] - - for value_mumu in values_mumu: - data_dimuon.append( - value_mumu['value'] - ) - - for value_ee in values_ee: - data_dielectron.append( - value_ee['value'] - ) + for value in values: + data.append(value['value']) - for value_comb in values_comb: - data_combined.append( - value_comb['value'] - ) + del data[-1] - return data_dimuon, data_dielectron, data_combined + return data -def get_uncertainties(): +def get_uncertainties(variant=None): """ returns error definitions and error values. """ - tot_err_mumu = [] - tot_err_ee = [] - tot_err_comb = [] - + tot_err = [] hepdata_table = f"rawdata/HEPData-ins2038801-v1-Table_2.yaml" + error_defs = {} + with open(hepdata_table, 'r') as file: input = yaml.safe_load(file) - muon_values = input['dependent_variables'][0] - electron_values = input['dependent_variables'][1] - comb_values = input['dependent_variables'][2] - - for err_mumu in muon_values['values']: - tot_err_mumu.append({ - 'sys': err_mumu['errors'][1]['symerror'], - 'stat': err_mumu['errors'][0]['symerror'], - }) - - for err_ee in electron_values['values']: - tot_err_ee.append({ - 'sys': err_ee['errors'][1]['symerror'], - 'stat': err_ee['errors'][0]['symerror'], - }) - - for err_comb in comb_values['values']: - # these values are for the first mass bin, - # but they are said to be similar for the other bins (Table 1) - tot_err_comb.append({ - 'sys_pdfs': 0.0081, - 'sys_mcbg': 0.0041, - 'sys_aplhas': 0.0033, - 'sys_dy': 0.003, - 'sys_pileup': 0.0028, - 'sys_fidcor': 0.0027, - 'sys_ttbar': 0.0027, - 'sys_dypt': 0.0021, - 'sys_emushape': 0.0018, - 'sys_lumi': 0.0012, - 'sys_eid': 0.001, - 'sys_enorm': 0.0009, - 'sys_eshape': 0.0008, - 'sys_btag': 0.0008, - 'sys_ptmiss': 0.0007, - 'sys_muid': 0.0006, - 'sys_mushape': 0.0005, - 'sys_phph': 0.0004, - 'sys_munorm': 0.0004, - 'sys_etrig': 0.0004, - 'sys_diboson': 0.0002, - 'sys_erec': 0.0002, - 'sys_mumom': 0.0001, - 'sys_emom': 0.0001, - 'sys_mutrig': 0.0001, - 'stat': err_comb['errors'][0]['symerror'], - }) + values = input['dependent_variables'][2] - error_defs = {'stat': {},'sys': {}} - error_defs['stat'] = { "description": "Statistical uncertainties", "treatment": "ADD", "type": "UNCORR", } + + if variant == "": + error_defs['sys'] = { + "description": "Systematic uncertainties", + "treatment": "ADD", + "type": "UNCORR", + } + for err in values['values']: + tot_err.append({ + 'stat': err['errors'][0]['symerror'], + 'sys': err['errors'][1]['symerror'], + }) + elif variant == "_breakdown": + error_defs['sys_pdfs'] = { + "description": "PDF uncertainty", + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_mcbg'] = { + "description": "Statistical uncertainties in templates", # correlation + "treatment": "ADD", + "type": "UNCORR", + } + + error_defs['sys_aplhas'] = { + "description": "Variations of strong coupling, mu_R and mu_F", # event reweighting + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_dy'] = { + "description": "DY cross section uncertainty", # overall unc on whole MC event + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_pileup'] = { + "description": "Uncertainty from difference in measured and simulated pileup", # reweighting + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_fidcor'] = { + "description": "Fiducial corrections", # unc depends on mass, scaling factor per mass bin? + "treatment": "MULT", + "type": "UNCORR", + } + + error_defs['sys_ttbar'] = { + "description": "ttbar cross section uncertainty", # overall unc on whole MC event + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_dypt'] = { + "description": "Uncertainty from mismodelling of the pt spectrum", # reweighting determined per mass bin + "treatment": "MULT", + "type": "UNCORR", + } + + error_defs['sys_emushape'] = { + "description": "Uncertainty from the electron muon background shape", # per cos\theta bin, correlated accross mass bins + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_lumi'] = { + "description": "Integrated luminosity uncertainty", + "treatment": "MULT", + "type": "CMSLUMI16", + } + + error_defs['sys_eid'] = { + "description": "Uncertainty from electron identification/isolation", + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_enorm'] = { + "description": "Electron MisID normalisation", # one variation on all bins, acts as scale factor + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_eshape'] = { + "description": "Electron MisID shape", # variations in template shape, does not have to be coherent accross bins + "treatment": "ADD", + "type": "UNCORR", + } + + error_defs['sys_btag'] = { + "description": "Uncertainty from b tagging", # scalings depend only on jet flav, pt and rapidity not on mass + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_ptmiss'] = { + "description": "Missing pt modelling uncertainty", # estimated by changing jet energy and simulating whole thingagain + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_muid'] = { + "description": "Uncertainty from muon identification/isolation", # same accross mass bins I think? + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_mushape'] = { + "description": "Muon MisID shape", # variations in template shape, does not have to be coherent accross bins + "treatment": "ADD", + "type": "UNCORR", + } + + error_defs['sys_phph'] = { + "description": "gamma gamma --> ll cross section uncertainty", # overall unc on whole MC event + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_munorm'] = { + "description": "Muon MisID normalisation", # one variation on all bins, acts as scale factor + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_etrig'] = { + "description": "Electron trigger uncertainty", # Not sure if it is indeed mult, but I would suppose so? + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_diboson'] = { + "description": "Diboson cross section uncertainty", # overall unc on whole MC event + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_erec'] = { + "description": "Electron reconstruction efficiency", # efficiency correction to all total events with electrons + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_mumom'] = { + "description": "Muon momentum scale corrections", + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_emom'] = { + "description": "Electron momentum scale corrections", + "treatment": "MULT", + "type": "CORR", + } + + error_defs['sys_mutrig'] = { + "description": "Muon trigger uncertainty", + "treatment": "MULT", + "type": "CORR", + } + for err in values['values']: + tot_err.append({ + 'stat': err['errors'][0]['symerror'], + 'sys_pdfs': 0.0081, + 'sys_mcbg': 0.0041, + 'sys_aplhas': 0.0033, + 'sys_dy': 0.003, + 'sys_pileup': 0.0028, + 'sys_fidcor': 0.0027, + 'sys_ttbar': 0.0027, + 'sys_dypt': 0.0021, + 'sys_emushape': 0.0018, + 'sys_lumi': 0.0012, + 'sys_eid': 0.001, + 'sys_enorm': 0.0009, + 'sys_eshape': 0.0008, + 'sys_btag': 0.0008, + 'sys_ptmiss': 0.0007, + 'sys_muid': 0.0006, + 'sys_mushape': 0.0005, + 'sys_phph': 0.0004, + 'sys_munorm': 0.0004, + 'sys_etrig': 0.0004, + 'sys_diboson': 0.0002, + 'sys_erec': 0.0002, + 'sys_mumom': 0.0001, + 'sys_emom': 0.0001, + 'sys_mutrig': 0.0001, + }) + else: + print("Variant not implemented") + exit() - error_defs['sys'] = { - "description": "Systematic uncertainties", # I think this is the best way to treat - "treatment": "MULT", - "type": "CORR", - } - - error_defs['sys_pdfs'] = { - "description": "PDF uncertainty", - "treatment": "MULT", - "type": "CORR", - } - - error_defs['sys_mcbg'] = { - "description": "Statistical uncertainties in templates", # correlation - "treatment": "MULT", - "type": "CORR", - } - - error_defs['sys_aplhas'] = { - "description": "Variations of strong coupling, mu_R and mu_F", # event reweighting - "treatment": "MULT", - "type": "CORR", - } - - error_defs['sys_dy'] = { - "description": "DY cross section uncertainty", # overall unc on whole MC event - "treatment": "MULT", - "type": "CORR", - } - - error_defs['sys_pileup'] = { - "description": "Uncertainty from difference in measured and simulated pileup", # reweighting - "treatment": "MULT", - "type": "CORR", - } - - error_defs['sys_fidcor'] = { - "description": "Fiducial corrections", # unc depends on mass, scaling factor per mass bin? - "treatment": "MULT", - "type": "UNCORR", - } - - error_defs['sys_ttbar'] = { - "description": "ttbar cross section uncertainty", # overall unc on whole MC event - "treatment": "MULT", - "type": "CORR", - } - - error_defs['sys_dypt'] = { - "description": "Uncertainty from mismodelling of the pt spectrum", # reweighting determined per mass bin - "treatment": "MULT", - "type": "UNCORR", - } - - error_defs['sys_emushape'] = { - "description": "Uncertainty from the electron muon background shape", # per cos\theta bin, correlated accross mass bins - "treatment": "MULT", - "type": "CORR", - } - - error_defs['sys_lumi'] = { - "description": "Integrated luminosity uncertainty", - "treatment": "MULT", - "type": "CORR", - } - - error_defs['sys_eid'] = { - "description": "Uncertainty from electron identification/isolation", # I think same accross mass bins? - "treatment": "MULT", - "type": "CORR", - } - - error_defs['sys_enorm'] = { - "description": "Electron MisID normalisation", # one variation on all bins, acts as scale factor - "treatment": "MULT", - "type": "CORR", - } - - error_defs['sys_eshape'] = { - "description": "Electron MisID shape", # variations in template shape, does not have to be coherent accross bins - "treatment": "ADD", - "type": "UNCORR", - } - - error_defs['sys_btag'] = { - "description": "Uncertainty from b tagging", # scalings depend only on jet flav, pt and rapidity not on mass - "treatment": "MULT", - "type": "CORR", - } - - error_defs['sys_ptmiss'] = { - "description": "Missing pt modelling uncertainty", # estimated by changing jet energy and simulating whole thingagain - "treatment": "MULT", - "type": "CORR", - } - - error_defs['sys_muid'] = { - "description": "Uncertainty from muon identification/isolation", # same accross mass bins I think? - "treatment": "MULT", - "type": "CORR", - } - - error_defs['sys_mushape'] = { - "description": "Muon MisID shape", # variations in template shape, does not have to be coherent accross bins - "treatment": "ADD", - "type": "UNCORR", - } - - error_defs['sys_phph'] = { - "description": "gamma gamma --> ll cross section uncertainty", # overall unc on whole MC event - "treatment": "MULT", - "type": "CORR", - } - - error_defs['sys_munorm'] = { - "description": "Muon MisID normalisation", # one variation on all bins, acts as scale factor - "treatment": "MULT", - "type": "CORR", - } - - error_defs['sys_etrig'] = { - "description": "Electron trigger uncertainty", # Not sure if it is indeed mult, but I would suppose so? - "treatment": "MULT", - "type": "CORR", - } - - error_defs['sys_diboson'] = { - "description": "Diboson cross section uncertainty", # overall unc on whole MC event - "treatment": "MULT", - "type": "CORR", - } - - error_defs['sys_erec'] = { - "description": "Electron reconstruction efficiency", # efficiency correction to all total events with electrons - "treatment": "MULT", - "type": "CORR", - } - - error_defs['sys_mumom'] = { - "description": "Muon momentum scale corrections", - "treatment": "MULT", - "type": "CORR", - } - - error_defs['sys_emom'] = { - "description": "Electron momentum scale corrections", - "treatment": "MULT", - "type": "CORR", - } - - error_defs['sys_mutrig'] = { - "description": "Muon trigger uncertainty", - "treatment": "MULT", - "type": "CORR", - } - - return {'dimuon': tot_err_mumu, 'dielectron': tot_err_ee, 'combined': tot_err_comb, 'error defs': error_defs} + del tot_err[-1] + + return {'uncertainties': tot_err, 'error defs': error_defs} -def dump_to_yaml(): +def dump_to_yaml(variant=None): - data_dimuon = get_data_values()[0] - data_dielectron = get_data_values()[1] - data_combined = get_data_values()[2] + data = get_data_values() kinematics = get_kinematics() - with open(f"data_dimuon.yaml", "w") as file: - yaml.dump({"data_central": data_dimuon}, file, sort_keys=False) - - with open(f"data_dieletron.yaml", "w") as file: - yaml.dump({"data_central": data_dielectron}, file, sort_keys=False) - - with open(f"data_combined.yaml", "w") as file: - yaml.dump({"data_central": data_combined}, file, sort_keys=False) + with open(f"data.yaml", "w") as file: + yaml.dump({"data_central": data}, file, sort_keys=False) with open(f"kinematics.yaml", "w") as file: yaml.dump({"bins": kinematics}, file, sort_keys=False) - with open(f"uncertainties_dimuon.yaml", "w") as file: - yaml.dump({"definitions": get_uncertainties()['error defs'], "bins": get_uncertainties()['dimuon']}, file, sort_keys=False) - - with open(f"uncertainties_dielectron.yaml", "w") as file: - yaml.dump({"definitions": get_uncertainties()['error defs'], "bins": get_uncertainties()['dielectron']}, file, sort_keys=False) - - with open(f"uncertainties_combined.yaml", "w") as file: - yaml.dump({"definitions": get_uncertainties()['error defs'], "bins": get_uncertainties()['combined']}, file, sort_keys=False) + with open(f"uncertainties{variant}.yaml", "w") as file: + yaml.dump({"definitions": get_uncertainties(variant)['error defs'], "bins": get_uncertainties(variant)['uncertainties']}, file, sort_keys=False) return -dump_to_yaml() + +dump_to_yaml(variant="") +dump_to_yaml(variant="_breakdown") diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/kinematics.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/kinematics.yaml index 720cfac10e..f920fb92b9 100644 --- a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/kinematics.yaml +++ b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/kinematics.yaml @@ -1,33 +1,57 @@ bins: -- mass: +- eta: + min: -2.4 + mid: 0.0 + max: 2.4 + mass: min: 170.0 mid: 185.0 max: 200.0 -- mass: +- eta: + min: -2.4 + mid: 0.0 + max: 2.4 + mass: min: 200.0 mid: 225.0 max: 250.0 -- mass: +- eta: + min: -2.4 + mid: 0.0 + max: 2.4 + mass: min: 250.0 mid: 285.0 max: 320.0 -- mass: +- eta: + min: -2.4 + mid: 0.0 + max: 2.4 + mass: min: 320.0 mid: 415.0 max: 510.0 -- mass: +- eta: + min: -2.4 + mid: 0.0 + max: 2.4 + mass: min: 510.0 mid: 605.0 max: 700.0 -- mass: +- eta: + min: -2.4 + mid: 0.0 + max: 2.4 + mass: min: 700.0 mid: 850.0 max: 1000.0 -- mass: +- eta: + min: -2.4 + mid: 0.0 + max: 2.4 + mass: min: 1000.0 mid: 7000.0 max: 13000.0 -- mass: - min: 170.0 - mid: 6585.0 - max: 13000.0 diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/metadata.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/metadata.yaml index fde2cec0e6..2cecc8cb73 100644 --- a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/metadata.yaml +++ b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/metadata.yaml @@ -1,8 +1,9 @@ -setname: CMS_DY_13TEV +setname: CMS_Z0_13TEV version: 1 version_comment: arXiv: url: https://arxiv.org/abs/2202.12327 + journal: JHEP 2022 (2022) 08, 063 iNSPIRE: url: https://inspirehep.net/literature/1952936 hepdata: @@ -12,100 +13,46 @@ nnpdf_metadata: nnpdf31_process: "DY NC" experiment: CMS implemented_observables: -- observable_name: ASY_FB_DIMUON - observable: - description: Measurement of the forward backward asymmetry in NC muon pair production at sqrt(s) = 13 TeV - label: - units: '[fb]' - process_type: - tables: - - 1 - npoints: - - 8 - ndata: - plotting: - dataset_label: CMS FB asymmetry mu mu - plot_x: m - y_label: $A_{FB}^{\mu\mu}$ - kinematic_coverage: - - mass - kinematics: - variables: - mass: - description: dilepton mass - label: $m_{ll}$ - units: $GeV$ - file: kinematics.yaml - data_central: data_dimuon.yaml - data_uncertainties: - - uncertainties_dimuon.yaml - theory: - FK_tables: - - - - operation: ASY - conversion_factor: 1.0 -- observable_name: ASY_FB_DIELECTRON - observable: - description: Measurement of the forward backward asymmetry in NC electron pair production at sqrt(s) = 13 TeV - label: - units: '[fb]' - process_type: - tables: - - 2 - npoints: - - 8 - ndata: - plotting: - dataset_label: CMS FB asymmetry ee - plot_x: m - y_label: $A_{FB}^{ee}$ - kinematic_coverage: - - mass - kinematics: - variables: - mass: - description: dilepton mass - label: $m_{ll}$ - units: $GeV$ - file: kinematics.yaml - data_central: data_dielectron.yaml - data_uncertainties: - - uncertainties_dielectron.yaml - theory: - FK_tables: - - - - operation: ASY - conversion_factor: 1.0 - observable_name: ASY_FB_COMBINED observable: - description: Measurement of the forward backward asymmetry in NC muon and electron pair production at sqrt(s) = 13 TeV - label: - units: '[fb]' - process_type: + description: "Measurement of the forward backward asymmetry in NC muon and electron pair production at sqrt(s) = 13 TeV" + label: "A_{FB}" + units: "" + process_type: DY_MLL tables: - 2 npoints: - - 8 + - 7 ndata: plotting: - dataset_label: CMS FB asymmetry ee + dataset_label: "CMS 13 TeV $A_{FB}$ $e$ and $\mu$ channels combined" plot_x: m - y_label: $A_{FB}^{ee}$ + y_label: "$A_{FB}$" kinematic_coverage: + - eta - mass kinematics: variables: + eta + description: "lepton pseudorapidity" + label: "$\eta$" + units: "" mass: - description: dilepton mass - label: $m_{ll}$ - units: $GeV$ + description: "dilepton mass" + label: "$m_{ll}$" + units: "$GeV$" file: kinematics.yaml - data_central: data_combined.yaml + data_central: data.yaml data_uncertainties: - - uncertainties_combined.yaml + - uncertainties.yaml + variants: + breakdown: + data_uncertainteis: + - uncertainties_breakdown.yaml theory: FK_tables: - - - + - - CMS_Z0_13TEV_FWD + - CMS_Z0_13TEV_BWD operation: ASY conversion_factor: 1.0 diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties.yaml new file mode 100644 index 0000000000..0002ef79d6 --- /dev/null +++ b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties.yaml @@ -0,0 +1,24 @@ +definitions: + stat: + description: Statistical uncertainties + treatment: ADD + type: UNCORR + sys: + description: Systematic uncertainties + treatment: ADD + type: UNCORR +bins: +- stat: 0.009 + sys: 0.011 +- stat: 0.009 + sys: 0.01 +- stat: 0.011 + sys: 0.009 +- stat: 0.011 + sys: 0.008 +- stat: 0.021 + sys: 0.008 +- stat: 0.032 + sys: 0.008 +- stat: 0.052 + sys: 0.011 diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties_combined.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties_breakdown.yaml similarity index 87% rename from nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties_combined.yaml rename to nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties_breakdown.yaml index cf6e5166dc..5c58565c88 100644 --- a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties_combined.yaml +++ b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties_breakdown.yaml @@ -3,18 +3,14 @@ definitions: description: Statistical uncertainties treatment: ADD type: UNCORR - sys: - description: Systematic uncertainties - treatment: MULT - type: CORR sys_pdfs: description: PDF uncertainty treatment: MULT type: CORR sys_mcbg: description: Statistical uncertainties in templates - treatment: MULT - type: CORR + treatment: ADD + type: UNCORR sys_aplhas: description: Variations of strong coupling, mu_R and mu_F treatment: MULT @@ -46,7 +42,7 @@ definitions: sys_lumi: description: Integrated luminosity uncertainty treatment: MULT - type: CORR + type: CMSLUMI16 sys_eid: description: Uncertainty from electron identification/isolation treatment: MULT @@ -108,33 +104,8 @@ definitions: treatment: MULT type: CORR bins: -- sys_pdfs: 0.0081 - sys_mcbg: 0.0041 - sys_aplhas: 0.0033 - sys_dy: 0.003 - sys_pileup: 0.0028 - sys_fidcor: 0.0027 - sys_ttbar: 0.0027 - sys_dypt: 0.0021 - sys_emushape: 0.0018 - sys_lumi: 0.0012 - sys_eid: 0.001 - sys_enorm: 0.0009 - sys_eshape: 0.0008 - sys_btag: 0.0008 - sys_ptmiss: 0.0007 - sys_muid: 0.0006 - sys_mushape: 0.0005 - sys_phph: 0.0004 - sys_munorm: 0.0004 - sys_etrig: 0.0004 - sys_diboson: 0.0002 - sys_erec: 0.0002 - sys_mumom: 0.0001 - sys_emom: 0.0001 - sys_mutrig: 0.0001 - stat: 0.009 -- sys_pdfs: 0.0081 +- stat: 0.009 + sys_pdfs: 0.0081 sys_mcbg: 0.0041 sys_aplhas: 0.0033 sys_dy: 0.003 @@ -159,8 +130,8 @@ bins: sys_mumom: 0.0001 sys_emom: 0.0001 sys_mutrig: 0.0001 - stat: 0.009 -- sys_pdfs: 0.0081 +- stat: 0.009 + sys_pdfs: 0.0081 sys_mcbg: 0.0041 sys_aplhas: 0.0033 sys_dy: 0.003 @@ -185,8 +156,8 @@ bins: sys_mumom: 0.0001 sys_emom: 0.0001 sys_mutrig: 0.0001 - stat: 0.011 -- sys_pdfs: 0.0081 +- stat: 0.011 + sys_pdfs: 0.0081 sys_mcbg: 0.0041 sys_aplhas: 0.0033 sys_dy: 0.003 @@ -211,8 +182,8 @@ bins: sys_mumom: 0.0001 sys_emom: 0.0001 sys_mutrig: 0.0001 - stat: 0.011 -- sys_pdfs: 0.0081 +- stat: 0.011 + sys_pdfs: 0.0081 sys_mcbg: 0.0041 sys_aplhas: 0.0033 sys_dy: 0.003 @@ -237,8 +208,8 @@ bins: sys_mumom: 0.0001 sys_emom: 0.0001 sys_mutrig: 0.0001 - stat: 0.021 -- sys_pdfs: 0.0081 +- stat: 0.021 + sys_pdfs: 0.0081 sys_mcbg: 0.0041 sys_aplhas: 0.0033 sys_dy: 0.003 @@ -263,8 +234,8 @@ bins: sys_mumom: 0.0001 sys_emom: 0.0001 sys_mutrig: 0.0001 - stat: 0.032 -- sys_pdfs: 0.0081 +- stat: 0.032 + sys_pdfs: 0.0081 sys_mcbg: 0.0041 sys_aplhas: 0.0033 sys_dy: 0.003 @@ -289,8 +260,8 @@ bins: sys_mumom: 0.0001 sys_emom: 0.0001 sys_mutrig: 0.0001 - stat: 0.052 -- sys_pdfs: 0.0081 +- stat: 0.052 + sys_pdfs: 0.0081 sys_mcbg: 0.0041 sys_aplhas: 0.0033 sys_dy: 0.003 @@ -315,4 +286,3 @@ bins: sys_mumom: 0.0001 sys_emom: 0.0001 sys_mutrig: 0.0001 - stat: 0.005 diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties_dielectron.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties_dielectron.yaml deleted file mode 100644 index 9f0f6608a2..0000000000 --- a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties_dielectron.yaml +++ /dev/null @@ -1,126 +0,0 @@ -definitions: - stat: - description: Statistical uncertainties - treatment: ADD - type: UNCORR - sys: - description: Systematic uncertainties - treatment: MULT - type: CORR - sys_pdfs: - description: PDF uncertainty - treatment: MULT - type: CORR - sys_mcbg: - description: Statistical uncertainties in templates - treatment: MULT - type: CORR - sys_aplhas: - description: Variations of strong coupling, mu_R and mu_F - treatment: MULT - type: CORR - sys_dy: - description: DY cross section uncertainty - treatment: MULT - type: CORR - sys_pileup: - description: Uncertainty from difference in measured and simulated pileup - treatment: MULT - type: CORR - sys_fidcor: - description: Fiducial corrections - treatment: MULT - type: UNCORR - sys_ttbar: - description: ttbar cross section uncertainty - treatment: MULT - type: CORR - sys_dypt: - description: Uncertainty from mismodelling of the pt spectrum - treatment: MULT - type: UNCORR - sys_emushape: - description: Uncertainty from the electron muon background shape - treatment: MULT - type: CORR - sys_lumi: - description: Integrated luminosity uncertainty - treatment: MULT - type: CORR - sys_eid: - description: Uncertainty from electron identification/isolation - treatment: MULT - type: CORR - sys_enorm: - description: Electron MisID normalisation - treatment: MULT - type: CORR - sys_eshape: - description: Electron MisID shape - treatment: ADD - type: UNCORR - sys_btag: - description: Uncertainty from b tagging - treatment: MULT - type: CORR - sys_ptmiss: - description: Missing pt modelling uncertainty - treatment: MULT - type: CORR - sys_muid: - description: Uncertainty from muon identification/isolation - treatment: MULT - type: CORR - sys_mushape: - description: Muon MisID shape - treatment: ADD - type: UNCORR - sys_phph: - description: gamma gamma --> ll cross section uncertainty - treatment: MULT - type: CORR - sys_munorm: - description: Muon MisID normalisation - treatment: MULT - type: CORR - sys_etrig: - description: Electron trigger uncertainty - treatment: MULT - type: CORR - sys_diboson: - description: Diboson cross section uncertainty - treatment: MULT - type: CORR - sys_erec: - description: Electron reconstruction efficiency - treatment: MULT - type: CORR - sys_mumom: - description: Muon momentum scale corrections - treatment: MULT - type: CORR - sys_emom: - description: Electron momentum scale corrections - treatment: MULT - type: CORR - sys_mutrig: - description: Muon trigger uncertainty - treatment: MULT - type: CORR -bins: -- sys: 0.012 - stat: 0.015 -- sys: 0.011 - stat: 0.015 -- sys: 0.01 - stat: 0.018 -- sys: 0.009 - stat: 0.018 -- sys: 0.009 - stat: 0.033 -- sys: 0.008 - stat: 0.048 -- sys: 0.014 - stat: 0.076 -- sys: 0.007 - stat: 0.008 diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties_dimuon.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties_dimuon.yaml deleted file mode 100644 index 35f0d55d41..0000000000 --- a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties_dimuon.yaml +++ /dev/null @@ -1,126 +0,0 @@ -definitions: - stat: - description: Statistical uncertainties - treatment: ADD - type: UNCORR - sys: - description: Systematic uncertainties - treatment: MULT - type: CORR - sys_pdfs: - description: PDF uncertainty - treatment: MULT - type: CORR - sys_mcbg: - description: Statistical uncertainties in templates - treatment: MULT - type: CORR - sys_aplhas: - description: Variations of strong coupling, mu_R and mu_F - treatment: MULT - type: CORR - sys_dy: - description: DY cross section uncertainty - treatment: MULT - type: CORR - sys_pileup: - description: Uncertainty from difference in measured and simulated pileup - treatment: MULT - type: CORR - sys_fidcor: - description: Fiducial corrections - treatment: MULT - type: UNCORR - sys_ttbar: - description: ttbar cross section uncertainty - treatment: MULT - type: CORR - sys_dypt: - description: Uncertainty from mismodelling of the pt spectrum - treatment: MULT - type: UNCORR - sys_emushape: - description: Uncertainty from the electron muon background shape - treatment: MULT - type: CORR - sys_lumi: - description: Integrated luminosity uncertainty - treatment: MULT - type: CORR - sys_eid: - description: Uncertainty from electron identification/isolation - treatment: MULT - type: CORR - sys_enorm: - description: Electron MisID normalisation - treatment: MULT - type: CORR - sys_eshape: - description: Electron MisID shape - treatment: ADD - type: UNCORR - sys_btag: - description: Uncertainty from b tagging - treatment: MULT - type: CORR - sys_ptmiss: - description: Missing pt modelling uncertainty - treatment: MULT - type: CORR - sys_muid: - description: Uncertainty from muon identification/isolation - treatment: MULT - type: CORR - sys_mushape: - description: Muon MisID shape - treatment: ADD - type: UNCORR - sys_phph: - description: gamma gamma --> ll cross section uncertainty - treatment: MULT - type: CORR - sys_munorm: - description: Muon MisID normalisation - treatment: MULT - type: CORR - sys_etrig: - description: Electron trigger uncertainty - treatment: MULT - type: CORR - sys_diboson: - description: Diboson cross section uncertainty - treatment: MULT - type: CORR - sys_erec: - description: Electron reconstruction efficiency - treatment: MULT - type: CORR - sys_mumom: - description: Muon momentum scale corrections - treatment: MULT - type: CORR - sys_emom: - description: Electron momentum scale corrections - treatment: MULT - type: CORR - sys_mutrig: - description: Muon trigger uncertainty - treatment: MULT - type: CORR -bins: -- sys: 0.011 - stat: 0.012 -- sys: 0.01 - stat: 0.012 -- sys: 0.009 - stat: 0.014 -- sys: 0.009 - stat: 0.014 -- sys: 0.008 - stat: 0.027 -- sys: 0.009 - stat: 0.042 -- sys: 0.011 - stat: 0.07 -- sys: 0.007 - stat: 0.006 From 9f4e07d1d4fcf68035f8a8023bc162ae9ddb1847 Mon Sep 17 00:00:00 2001 From: enocera Date: Tue, 26 Aug 2025 22:56:42 +0200 Subject: [PATCH 5/7] Corrected name of outputfiles according to the name of the observable --- .../CMS_Z0_13TEV/{data.yaml => data_AFB.yaml} | 0 .../commondata/CMS_Z0_13TEV/filter.py | 6 ++--- .../{kinematics.yaml => kinematics_AFB.yaml} | 0 .../commondata/CMS_Z0_13TEV/metadata.yaml | 22 ++++++++++--------- ...ertainties.yaml => uncertainties_AFB.yaml} | 0 ....yaml => uncertainties_breakdown_AFB.yaml} | 0 6 files changed, 15 insertions(+), 13 deletions(-) rename nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/{data.yaml => data_AFB.yaml} (100%) rename nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/{kinematics.yaml => kinematics_AFB.yaml} (100%) rename nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/{uncertainties.yaml => uncertainties_AFB.yaml} (100%) rename nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/{uncertainties_breakdown.yaml => uncertainties_breakdown_AFB.yaml} (100%) diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/data.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/data_AFB.yaml similarity index 100% rename from nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/data.yaml rename to nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/data_AFB.yaml diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/filter.py b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/filter.py index 6ba050c2d7..56eb673210 100644 --- a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/filter.py +++ b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/filter.py @@ -279,13 +279,13 @@ def dump_to_yaml(variant=None): data = get_data_values() kinematics = get_kinematics() - with open(f"data.yaml", "w") as file: + with open(f"data_AFB.yaml", "w") as file: yaml.dump({"data_central": data}, file, sort_keys=False) - with open(f"kinematics.yaml", "w") as file: + with open(f"kinematics_AFB.yaml", "w") as file: yaml.dump({"bins": kinematics}, file, sort_keys=False) - with open(f"uncertainties{variant}.yaml", "w") as file: + with open(f"uncertainties{variant}_AFB.yaml", "w") as file: yaml.dump({"definitions": get_uncertainties(variant)['error defs'], "bins": get_uncertainties(variant)['uncertainties']}, file, sort_keys=False) return diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/kinematics.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/kinematics_AFB.yaml similarity index 100% rename from nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/kinematics.yaml rename to nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/kinematics_AFB.yaml diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/metadata.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/metadata.yaml index 2cecc8cb73..f684dc155f 100644 --- a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/metadata.yaml +++ b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/metadata.yaml @@ -1,6 +1,6 @@ setname: CMS_Z0_13TEV version: 1 -version_comment: +version_comment: 'Initial implementation' arXiv: url: https://arxiv.org/abs/2202.12327 journal: JHEP 2022 (2022) 08, 063 @@ -9,11 +9,13 @@ iNSPIRE: hepdata: url: https://www.hepdata.net/record/ins2038801 version: 1 + nnpdf_metadata: nnpdf31_process: "DY NC" experiment: CMS + implemented_observables: -- observable_name: ASY_FB_COMBINED +- observable_name: AFB observable: description: "Measurement of the forward backward asymmetry in NC muon and electron pair production at sqrt(s) = 13 TeV" label: "A_{FB}" @@ -25,7 +27,7 @@ implemented_observables: - 7 ndata: plotting: - dataset_label: "CMS 13 TeV $A_{FB}$ $e$ and $\mu$ channels combined" + dataset_label: 'CMS 13 TeV $A_{FB}$ $e$ and $\mu$ channels combined' plot_x: m y_label: "$A_{FB}$" kinematic_coverage: @@ -33,22 +35,22 @@ implemented_observables: - mass kinematics: variables: - eta + eta: description: "lepton pseudorapidity" - label: "$\eta$" - units: "" + label: "$\eta$" + units: "" mass: description: "dilepton mass" label: "$m_{ll}$" units: "$GeV$" - file: kinematics.yaml - data_central: data.yaml + file: kinematics_AFB.yaml + data_central: data_AFB.yaml data_uncertainties: - - uncertainties.yaml + - uncertainties_AFB.yaml variants: breakdown: data_uncertainteis: - - uncertainties_breakdown.yaml + - uncertainties_breakdown_AFB.yaml theory: FK_tables: - - CMS_Z0_13TEV_FWD diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties_AFB.yaml similarity index 100% rename from nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties.yaml rename to nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties_AFB.yaml diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties_breakdown.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties_breakdown_AFB.yaml similarity index 100% rename from nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties_breakdown.yaml rename to nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/uncertainties_breakdown_AFB.yaml From 5831ff8155a97faa1634422207dac2cb1081b677 Mon Sep 17 00:00:00 2001 From: enocera Date: Tue, 26 Aug 2025 23:04:26 +0200 Subject: [PATCH 6/7] Fixed metadata file --- .../nnpdf_data/commondata/CMS_Z0_13TEV/metadata.yaml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/metadata.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/metadata.yaml index f684dc155f..c5632d24ad 100644 --- a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/metadata.yaml +++ b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/metadata.yaml @@ -21,11 +21,8 @@ implemented_observables: label: "A_{FB}" units: "" process_type: DY_MLL - tables: - - 2 - npoints: - - 7 - ndata: + tables: [2] + ndata: 7 plotting: dataset_label: 'CMS 13 TeV $A_{FB}$ $e$ and $\mu$ channels combined' plot_x: m @@ -49,8 +46,8 @@ implemented_observables: - uncertainties_AFB.yaml variants: breakdown: - data_uncertainteis: - - uncertainties_breakdown_AFB.yaml + data_uncertainties: + - uncertainties_breakdown_AFB.yaml theory: FK_tables: - - CMS_Z0_13TEV_FWD From b337208405129f08c0301c46961ece13e1738071 Mon Sep 17 00:00:00 2001 From: enocera Date: Tue, 26 Aug 2025 23:14:38 +0200 Subject: [PATCH 7/7] Corrected names of kinematic variables --- .../commondata/CMS_Z0_13TEV/filter.py | 3 +- .../CMS_Z0_13TEV/kinematics_AFB.yaml | 42 ++++--------------- .../commondata/CMS_Z0_13TEV/metadata.yaml | 11 ++--- 3 files changed, 11 insertions(+), 45 deletions(-) diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/filter.py b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/filter.py index 56eb673210..fe27b093a7 100644 --- a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/filter.py +++ b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/filter.py @@ -24,8 +24,7 @@ def get_kinematics(): for m in input["independent_variables"][0]['values']: kin_value = { - 'eta': {'min': -2.4, 'mid': 0.0, 'max': +2.4}, - 'mass': {'min': m['low'], 'mid': 0.5 * (m['low'] + m['high']), 'max': m['high']}, + 'm_ll': {'min': m['low'], 'mid': 0.5 * (m['low'] + m['high']), 'max': m['high']}, } kin.append(kin_value) diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/kinematics_AFB.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/kinematics_AFB.yaml index f920fb92b9..c9148bc642 100644 --- a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/kinematics_AFB.yaml +++ b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/kinematics_AFB.yaml @@ -1,57 +1,29 @@ bins: -- eta: - min: -2.4 - mid: 0.0 - max: 2.4 - mass: +- m_ll: min: 170.0 mid: 185.0 max: 200.0 -- eta: - min: -2.4 - mid: 0.0 - max: 2.4 - mass: +- m_ll: min: 200.0 mid: 225.0 max: 250.0 -- eta: - min: -2.4 - mid: 0.0 - max: 2.4 - mass: +- m_ll: min: 250.0 mid: 285.0 max: 320.0 -- eta: - min: -2.4 - mid: 0.0 - max: 2.4 - mass: +- m_ll: min: 320.0 mid: 415.0 max: 510.0 -- eta: - min: -2.4 - mid: 0.0 - max: 2.4 - mass: +- m_ll: min: 510.0 mid: 605.0 max: 700.0 -- eta: - min: -2.4 - mid: 0.0 - max: 2.4 - mass: +- m_ll: min: 700.0 mid: 850.0 max: 1000.0 -- eta: - min: -2.4 - mid: 0.0 - max: 2.4 - mass: +- m_ll: min: 1000.0 mid: 7000.0 max: 13000.0 diff --git a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/metadata.yaml b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/metadata.yaml index c5632d24ad..993985699d 100644 --- a/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/metadata.yaml +++ b/nnpdf_data/nnpdf_data/commondata/CMS_Z0_13TEV/metadata.yaml @@ -25,18 +25,13 @@ implemented_observables: ndata: 7 plotting: dataset_label: 'CMS 13 TeV $A_{FB}$ $e$ and $\mu$ channels combined' - plot_x: m + plot_x: m_ll y_label: "$A_{FB}$" kinematic_coverage: - - eta - - mass + - m_ll kinematics: variables: - eta: - description: "lepton pseudorapidity" - label: "$\eta$" - units: "" - mass: + m_ll: description: "dilepton mass" label: "$m_{ll}$" units: "$GeV$"