Commit f644d465 authored by Chad Hanna's avatar Chad Hanna

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

parent 0cbb7f9b
......@@ -972,6 +972,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