Skip to content
Snippets Groups Projects
Commit 0c043c81 authored by Chad Hanna's avatar Chad Hanna Committed by Chad Hanna
Browse files

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

(cherry picked from commit f644d465)
parent ee7073e4
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment