From db96b0f9ed989782453e5ed91420585f7b95380b Mon Sep 17 00:00:00 2001
From: Daichi Tsuna <daichi.tsuna@ligo.org>
Date: Tue, 11 Jun 2019 05:34:08 -0700
Subject: [PATCH] streamburca: remove multi-burst, add template match

---
 gstlal-burst/python/streamburca.py | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/gstlal-burst/python/streamburca.py b/gstlal-burst/python/streamburca.py
index 1bf944a52b..1b49f4d7b2 100644
--- a/gstlal-burst/python/streamburca.py
+++ b/gstlal-burst/python/streamburca.py
@@ -81,16 +81,18 @@ class StreamBurca(object):
 		#
 
 		newly_reported = []
-		for node, events in self.time_slide_graph.pull(newly_reported = newly_reported, coinc_sieve = coinc_sieve, flush = flush):
-			# construct row objects for coinc tables
+		for node, events in self.time_slide_graph.pull(newly_reported = newly_reported, coinc_sieve = coinc_sieve, flush = flush, verbose = False):
+			# for exact template match
+			if not burca.StringCuspCoincTables.ntuple_comparefunc(events, node.offset_vector):
+				# construct row objects for coinc tables
 
-			coinc, coincmaps, multiburst = self.coinc_tables.coinc_rows(self.process_id, node.time_slide_id, events, u"sngl_burst")
+				coinc, coincmaps = self.coinc_tables.coinc_rows(self.process_id, node.time_slide_id, events, u"sngl_burst")
 
-			# finally, append coinc to tables
+				# finally, append coinc to tables
 
-			self.coinc_tables.append_coinc(coinc, coincmaps, multiburst)
+				self.coinc_tables.append_coinc(coinc, coincmaps)
 
 		# add any triggers that have been used in coincidences for
-		# the first time to the sngl_inspiral table
+		# the first time to the sngl_burst table
 
 		self.sngl_burst_table.extend(newly_reported)
-- 
GitLab