From 5e7fc290743a84afeeaf7481332ea8428286eebc Mon Sep 17 00:00:00 2001 From: Andrey Pozdnyakov Date: Tue, 24 Oct 2023 18:31:38 +0200 Subject: [PATCH] changes for new comparison scripts to work --- plotting/comparison.py | 5 ++--- src/BTVNanoCommissioning/helpers/xsection.py | 7 +++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/plotting/comparison.py b/plotting/comparison.py index 4d6bda0d..5a82d058 100644 --- a/plotting/comparison.py +++ b/plotting/comparison.py @@ -25,7 +25,6 @@ parser.add_argument( "--debug", action="store_true", help="Run detailed checks of yaml file" ) -parser.add_argument args = parser.parse_args() # load config from yaml @@ -75,7 +74,7 @@ else: lumi = None hist_type = "step" -if config["label"]: +if "label" in config.keys(): label = config["label"] else: label = "Preliminary" @@ -112,7 +111,7 @@ 2, 1, figsize=(10, 10), gridspec_kw={"height_ratios": (3, 1)}, sharex=True ) fig.subplots_adjust(hspace=0.06, top=0.92, bottom=0.1, right=0.97) - if config["year"]: year=config["year"] + if 'year' in config.keys(): year=config["year"] else: year = None hep.cms.label(label, lumi=lumi, year=year, com=config["com"], data=True, loc=0, ax=ax) ## plot reference diff --git a/src/BTVNanoCommissioning/helpers/xsection.py b/src/BTVNanoCommissioning/helpers/xsection.py index 00706b86..81c00f38 100644 --- a/src/BTVNanoCommissioning/helpers/xsection.py +++ b/src/BTVNanoCommissioning/helpers/xsection.py @@ -1039,6 +1039,13 @@ "energy": "13", "comment": "Z->MuMu Sherpa sample in 2016 pre-UL campaign", }, + { + "process_name": "DYJetsToLL_M-50_TuneCH3_13TeV-madgraphMLM-herwig7", + "cross_section": "6077.22", + "DAS": "DYJetsToLL_M-50_TuneCH3_13TeV-madgraphMLM-herwig7/*/NANOAODSIM", + "energy": "13", + "comment": "Z->LL MG MLLM _ Herwig sample in 2016 pre-UL campaign", + }, { "process_name": "DYToLL_NLO_5FS_TuneCH3_13TeV_matchbox_herwig7", "cross_section": "1976",