Commit 0c043c81 authored by Chad Hanna's avatar Chad Hanna Committed by Chad Hanna

lloidhandler: store a chisq weighed SNR for use in a preclustering step


(cherry picked from commit f644d465)
parent ee7073e4
Pipeline #76731 passed with stages
in 31 minutes and 5 seconds
......@@ -977,6 +977,10 @@ class Handler(simplehandler.Handler):
# FIXME: ugly way to get the instrument
instruments = set([event.ifo for event in events])
# FIXME calculate a chisq weighted SNR and store it in the bank_chisq column
for event in events:
event.bank_chisq = event.snr / ((1 + max(1., event.chisq)**3)/2.0)**(1./5.)
# extract segment. move the segment's upper
# boundary to include all triggers. ARGH the 1 ns
# offset is needed for the respective trigger to be
......
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