2 from Configuration.AlCa.autoCond
import autoCond
3 from Configuration.StandardSequences.Eras
import eras
5 DEFAULT_VERSION =
"2026D110" 8 """Retrieve the era and global tag for a given version key. 11 version_key (str): The version key to look up. 14 tuple: A tuple containing the global tag and era object. 17 KeyError: If the version key or global tag is not found. 20 if version_key
not in properties[2026]:
21 raise KeyError(f
"Version key '{version_key}' not found in properties[2026].")
24 global_tag_key = properties[2026][version_key][
'GT']
25 print(f
"Global tag key from properties: {global_tag_key}")
28 global_tag_name = global_tag_key.replace(
"auto:",
"")
29 if global_tag_name
not in autoCond:
30 raise KeyError(f
"Global tag key '{global_tag_key}' not found in autoCond.")
33 era_key = properties[2026][version_key][
'Era']
34 print(f
"Constructed era key from properties: {era_key}")
35 era = getattr(eras, era_key)
37 return global_tag_key, era
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
DQM-only workflow on AOD input: for HLT.
def get_era_and_conditions(version_key)