Skip to content
Snippets Groups Projects
Commit 637f463b authored by Maarten Van Veghel's avatar Maarten Van Veghel
Browse files

minor fix

parent 67027a8b
No related branches found
No related tags found
No related merge requests found
Pipeline #11117852 passed with warnings
......@@ -409,6 +409,7 @@ def make_calo_chargedpids(
},
save_residual_clusters_for_brem=True,
use_residual_clusters_for_brem=True,
use_residual_clusters_for_brem_pid=False,
base=r"CaloCharged{0}Alg_{1}_{{hash}}",
):
pids = {"chargedpids": {}, "breminfos": {}}
......@@ -434,7 +435,7 @@ def make_calo_chargedpids(
SaveResidualClusters=save_residual_clusters_for_brem,
UseResidualClustersForEnergy=use_residual_clusters_for_brem,
# to switch it on you'd need to calibrate the PID for it
UseResidualClustersForPID=False,
UseResidualClustersForPID=use_residual_clusters_for_brem_pid,
BremMethod=bremmethod,
).Output
return pids
......@@ -610,9 +611,10 @@ def make_calo(
electrons, persistable_location("CaloElectrons")
)
brem_track_types = set(tracks_incalo.keys()) & set(chargedpid_types["brem"])
old_residual_brem_hypos = {}
old_residual_brem_relations = {}
for tt in chargedpid_types["brem"]:
for tt in brem_track_types:
old_residual_brem_hypos[tt], old_residual_brem_relations[tt] = convertHypos(
thmatches[tt]["BremResidualHypos"]
)
......@@ -621,7 +623,7 @@ def make_calo(
Inputs=[
v["BremResidualHypos"]
for k, v in thmatches.items()
if k in chargedpid_types["brem"]
if k in brem_track_types
]
).Output
old_residual_brem_hypos["Merged"], old_residual_brem_relations["Merged"] = (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment