From 0c043c81ad160f56fa83130ba7392ed45ea6ebc4 Mon Sep 17 00:00:00 2001 From: Chad Hanna <chad.hanna@comp-hd-002.gwave.ics.psu.edu> Date: Sun, 25 Aug 2019 17:35:57 +0000 Subject: [PATCH] lloidhandler: store a chisq weighed SNR for use in a preclustering step (cherry picked from commit f644d46505f58e5ad0dfab987014e3d322674153) --- gstlal-inspiral/python/lloidhandler.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gstlal-inspiral/python/lloidhandler.py b/gstlal-inspiral/python/lloidhandler.py index d970bfa817..cbddd07c69 100644 --- a/gstlal-inspiral/python/lloidhandler.py +++ b/gstlal-inspiral/python/lloidhandler.py @@ -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 -- GitLab