Skip to content

Commit

Permalink
Merge branch 'run_dict' into run_dict_clib_run3
Browse files Browse the repository at this point in the history
  • Loading branch information
bryates committed Nov 20, 2024
2 parents da960fc + 978c741 commit 5b79f0a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
12 changes: 12 additions & 0 deletions topcoffea/modules/run_dict.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from topcoffea.modules.get_param_from_jsons import GetParam
from topcoffea.modules.paths import topcoffea_path
run_dict = GetParam(topcoffea_path("params/params.json"))

def is_run2(year):
''' Check if a year is in Run 2 '''
return year in run_dict("Run2")


def is_run3(year):
''' Check if a year is in Run 3 '''
return year in run_dict("Run3")
3 changes: 3 additions & 0 deletions topcoffea/params/params.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"lumi_2023": 17.794,
"lumi_2023BPix": 9.451,

"Run2": ["2016", "2016APV", "2017", "2018"],
"Run3": ["2022", "2022EE", "2023", "2023BPix"],


"mva_TTH_e_cut" : 0.90,
"mva_TTH_m_cut" : 0.85,
Expand Down
4 changes: 0 additions & 4 deletions topcoffea/params/run_dict.json

This file was deleted.

0 comments on commit 5b79f0a

Please sign in to comment.