Skip to content

Commit

Permalink
changes for new comparison scripts to work
Browse files Browse the repository at this point in the history
  • Loading branch information
andreypz committed Oct 24, 2023
1 parent 8a096a6 commit 5e7fc29
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plotting/comparison.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -75,7 +74,7 @@
else:
lumi = None
hist_type = "step"
if config["label"]:
if "label" in config.keys():
label = config["label"]
else:
label = "Preliminary"
Expand Down Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions src/BTVNanoCommissioning/helpers/xsection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 5e7fc29

Please sign in to comment.