Skip to content
Snippets Groups Projects
Commit ed2e6923 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Moving on

parent 1b6c138d
No related branches found
No related tags found
1 merge request!44Draft: Resolve "Final fix for best_track"
Pipeline #14171 failed
......@@ -335,10 +335,10 @@ def best_track(tracks, strategy="default", reco=None):
rec_stage_max_idx = np.iinfo(np.int32).max
if n_events == 1:
raise NotImplementedError
# first mask to select those with the correct reconstruction type
rec_types = tracks[tracks.rec_type == reconstruction[rec_type]]
# TODO: check if rec_stages are all between rec_stage_min_idx and rec_stage_max_idx
# TODO: select tracks where rec_stages are all between rec_stage_min_idx and rec_stage_max_idx
tracks = tracks[]
len_stages = count_nested(rec_types.rec_stages, axis=1)
# TODO: etc.
longest = rec_types[len_stages == ak1.max(len_stages, axis=0)]
......
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