Commit fe5fa86a authored by Alessio Berti's avatar Alessio Berti
Browse files

Do not raise L3JumpError for MC files, flagging the events is enough.

parent 2df888f1
Pipeline #90725 failed with stage
in 8 minutes and 18 seconds
......@@ -1260,12 +1260,13 @@ class MarsRun:
for i in dx_flip_ids_before:
trigger_pattern[i] = -1
trigger_pattern[i+1] = -1
jumped_events = int(stereo_event_number[i]) - int(stereo_event_number[i+1])
total_jumped_events += jumped_events
LOGGER.warning(f"Jump of L3 number backward from {stereo_event_number[i]} to {stereo_event_number[i+1]}; "
f"total jumped events so far: {total_jumped_events}")
if total_jumped_events > max_total_jumps:
raise L3JumpError(f"Jumps backward in L3 trigger number by {total_jumped_events} in total. You might consider matching events by time instead.")
if not is_mc:
jumped_events = int(stereo_event_number[i]) - int(stereo_event_number[i+1])
total_jumped_events += jumped_events
LOGGER.warning(f"Jump of L3 number backward from {stereo_event_number[i]} to {stereo_event_number[i+1]}; "
f"total jumped events so far: {total_jumped_events}")
if total_jumped_events > max_total_jumps:
raise L3JumpError(f"Jumps backward in L3 trigger number by {total_jumped_events} in total. You might consider matching events by time instead.")
event_data['charge'].append(charge)
event_data['arrival_time'].append(arrival_time)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment