Online Detectors Check missing logic #100
Labels
bug
Something isn't working
enhancement
New feature or request
help wanted
Extra attention is needed
Thanks to @Sheshuk we have noticed a bug in the coincidence system.
Normally, in here
SNEWS_Coincidence_System/snews_cs/cs_stats.py
Lines 4 to 31 in 8803365
We compute the number of detectors available at the time of the alert to compute false-alarm probability of such a trigger. There are 2 problems at the moment, one was already discussed;
We check the number of available detectors at the time when we receive the alerts not at the time where the neutrino events were detected. (See picture)
We depend on the heartbeat messages to come frequently, however, if there are no heartbeats registered at the time of Observation message, the heartbeat cache will be empty and the FAR calculation thinks that there is a coincidence between 2 detectors out of 0 available detectors (since no HB is registered).
For the second issue, we talked about registering a heartbeat for each observation message but not yet implemented. Currently, when the heartbeat cache is empty, FAR tries to compute a factorial with 0 detectors and crashes before sending the message. We can do a quick-patch to ignore FAR when cache is empty. However, we need to fix the real issue.
The text was updated successfully, but these errors were encountered: