5 from AthenaCommon.Utils.unixtools
import find_datafile
13 with open(
find_datafile(
'TrigGlobalEfficiencyCorrection/Triggers.cfg'),
'r')
as file:
14 file_content = file.read()
17 lines = file_content.strip().
split(
'\n')
28 if key.startswith(
'#'):
32 trigger_dict[key] = values
42 with open(
find_datafile(
'TrigGlobalEfficiencyCorrection/MapKeys.cfg'),
'r')
as file:
43 file_content = file.read()
46 lines = file_content.strip().
split(
'\n')
52 current_version =
None
53 in_target_version =
False
60 if not line
or line.startswith(
'#'):
64 if line.startswith(
"[VERSION]"):
65 current_version = line.replace(
"[VERSION]",
"").strip()
66 in_target_version = target_version
in current_version
74 key = f
"{parts[0]}_{parts[1]}"
76 trigger_dict[key] = values