From 36fdcc29380b888d78055782132f63f76efe0ac0 Mon Sep 17 00:00:00 2001 From: nprouvost <49162277+nprouvost@users.noreply.github.com> Date: Tue, 23 Apr 2024 14:39:50 +0200 Subject: [PATCH 1/2] correct JEC and JER config entries for 2016 --- hbt/config/configs_run2ul.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hbt/config/configs_run2ul.py b/hbt/config/configs_run2ul.py index 95b5ce19..04b447d1 100644 --- a/hbt/config/configs_run2ul.py +++ b/hbt/config/configs_run2ul.py @@ -253,7 +253,7 @@ def add_config( # jec configuration # https://twiki.cern.ch/twiki/bin/view/CMS/JECDataMC?rev=201 - jerc_postfix = "APV" if year == 2016 and campaign.x.vfp == "post" else "" + jerc_postfix = "APV" if year == 2016 and campaign.x.vfp == "pre" else "" cfg.x.jec = DotDict.wrap({ "campaign": f"Summer19UL{year2}{jerc_postfix}", "version": {2016: "V7", 2017: "V5", 2018: "V5"}[year], @@ -323,7 +323,7 @@ def add_config( # JER # https://twiki.cern.ch/twiki/bin/view/CMS/JetResolution?rev=107 cfg.x.jer = DotDict.wrap({ - "campaign": f"Summer19UL{year2}{jerc_postfix}", + "campaign": {2016: "Summer20", 2017: "Summer19", 2018: "Summer19"}[year] + f"UL{year2}{jerc_postfix}", "version": "JR" + {2016: "V3", 2017: "V2", 2018: "V2"}[year], "jet_type": "AK4PFchs", }) From 8b662d860b1996e4a93238822367e1584e721040 Mon Sep 17 00:00:00 2001 From: Marcel Rieger Date: Wed, 29 May 2024 18:46:52 +0200 Subject: [PATCH 2/2] Config simplification. --- hbt/config/configs_run2ul.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hbt/config/configs_run2ul.py b/hbt/config/configs_run2ul.py index 04b447d1..8234230c 100644 --- a/hbt/config/configs_run2ul.py +++ b/hbt/config/configs_run2ul.py @@ -322,8 +322,9 @@ def add_config( # JER # https://twiki.cern.ch/twiki/bin/view/CMS/JetResolution?rev=107 + jer_year = "20" if year == 2016 else "19" cfg.x.jer = DotDict.wrap({ - "campaign": {2016: "Summer20", 2017: "Summer19", 2018: "Summer19"}[year] + f"UL{year2}{jerc_postfix}", + "campaign": f"Summer{jer_year}UL{year2}{jerc_postfix}", "version": "JR" + {2016: "V3", 2017: "V2", 2018: "V2"}[year], "jet_type": "AK4PFchs", })