Skip to content

Commit

Permalink
Add exception prints in MC FBK script
Browse files Browse the repository at this point in the history
  • Loading branch information
NereaSalor committed Nov 29, 2023
1 parent 9e15e2d commit 7733f88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions antea/scripts/process_mc_petit_FBK.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,12 @@ def process_mc_petit_FBK(input_file: str, output_file: str, recovery_time: int):
try:
min_id0, min_t0 = rf.find_first_time_of_sensors(evt_tof_exp_dist, sns0, n_pe)
except WaveformEmptyTable:
# TOF dataframe has no minimum time in plane 0
print(f'TOF dataframe has no minimum time in plane 0 for event {evt}')
min_id0, min_t0 = [-1], -1
try:
min_id2, min_t2 = rf.find_first_time_of_sensors(evt_tof_exp_dist, sns2, n_pe)
except:
# TOF dataframe has no minimum time in plane 2
print(f'TOF dataframe has no minimum time in plane 2 for event {evt}')
min_id2, min_t2 = [-1], -1

## select SiPM with max charge
Expand Down

0 comments on commit 7733f88

Please sign in to comment.