5 from AthenaCommon.Utils.unixtools
import find_datafile
14 with open(
find_datafile(
'TrigGlobalEfficiencyCorrection/Triggers.cfg'),
'r')
as file:
15 file_content = file.read()
18 lines = file_content.strip().
split(
'\n')
29 if key.startswith(
'#'):
33 trigger_dict[key] = values
43 with open(
find_datafile(
'TrigGlobalEfficiencyCorrection/MapKeys.cfg'),
'r')
as file:
44 file_content = file.read()
47 lines = file_content.strip().
split(
'\n')
53 current_version =
None
54 in_target_version =
False
61 if not line
or line.startswith(
'#'):
65 if line.startswith(
"[VERSION]"):
66 current_version = line.replace(
"[VERSION]",
"").strip()
67 in_target_version = target_version
in current_version
75 key = f
"{parts[0]}_{parts[1]}"
77 trigger_dict[key] = values