Skip to content
Snippets Groups Projects
Commit 36d4d341 authored by Duncan Meacher's avatar Duncan Meacher
Browse files

Added channel number of max snr trigger

parent 00bf6de7
No related branches found
No related tags found
No related merge requests found
......@@ -126,6 +126,7 @@ GstBuffer *gstlal_sngltrigger_new_buffer_from_peak(struct gstlal_peak_state *inp
strcpy(parent->channel, channel_name);
parent->snr = cabs(maxdata_channel);
parent->phase = carg(maxdata_channel);
parent->channel_index = channel;
XLALINT8NSToGPS(&event->epoch, time);
{
......
......@@ -50,6 +50,7 @@ tagSnglTriggerTable
struct tagSnglTriggerTable *next;
CHAR ifo[LIGOMETA_IFO_MAX];
CHAR channel[LIGOMETA_CHANNEL_MAX];
guint channel_index;
LIGOTimeGPS end;
REAL4 phase;
REAL4 snr;
......
......@@ -66,6 +66,7 @@ typedef struct {
static struct PyMemberDef members[] = {
{"end_time", T_INT, offsetof(gstlal_GSTLALSnglTrigger, row.end.gpsSeconds), 0, "end_time"},
{"end_time_ns", T_INT, offsetof(gstlal_GSTLALSnglTrigger, row.end.gpsNanoSeconds), 0, "end_time_ns"},
{"channel_index", T_INT, offsetof(gstlal_GSTLALSnglTrigger, row.channel_index), 0, "channel_index"},
{"phase", T_FLOAT, offsetof(gstlal_GSTLALSnglTrigger, row.phase), 0, "phase"},
{"snr", T_FLOAT, offsetof(gstlal_GSTLALSnglTrigger, row.snr), 0, "snr"},
{"chisq", T_FLOAT, offsetof(gstlal_GSTLALSnglTrigger, row.chisq), 0, "chisq"},
......
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