36 for containertype, renamelist
in HLT_Name_Changes.items():
37 for run3name, run2name
in renamelist:
38 log.info(
"Remapping {} object SG Keys: {} --> {}".
format(containertype,run3name,run2name))
40 auxcontainertype = containertype.replace(
"Container",
"AuxContainer")
41 if containertype==
"xAOD::CaloClusterContainer":
42 auxcontainertype =
"xAOD::CaloClusterTrigAuxContainer"
43 if containertype==
"xAOD::JetContainer" and run3name.startswith(
"HLT"):
45 for expr
in [
"RCJets",
"Trimmed",
"SoftDrop",
"nojcalib"]:
49 auxcontainertype =
"xAOD::ShallowAuxContainer"
52 ars = AddressRemappingSvc.getAddressRemappingSvc()
53 ars.TypeKeyOverwriteMaps += [
'%s#%s->%s#%s' % (containertype, run3name,
54 containertype, run2name) ]
57 ars.TypeKeyOverwriteMaps += [
'%s#%s->%s#%s' % (auxcontainertype, run3name+
"Aux.",
58 auxcontainertype, run2name+
"Aux.") ]