Skip to content
Snippets Groups Projects
Commit fb08490c authored by Patrick Godwin's avatar Patrick Godwin
Browse files

gstlal_trigger.c + gstlal_sngltrigger.c: remove trigger interpolation

parent 7d595e79
No related branches found
No related tags found
No related merge requests found
......@@ -481,12 +481,12 @@ static GstFlowReturn push_nongap(GSTLALTrigger *element, guint copysamps, guint
if (element->peak_type == GSTLAL_PEAK_COMPLEX) {
dataptr.as_complex = ((float complex *) element->data) + element->maxdata->pad * element->maxdata->channels;
/* Find the peak */
gstlal_float_complex_peak_over_window_interp(element->maxdata, dataptr.as_complex, outsamps);
gstlal_float_complex_peak_over_window(element->maxdata, dataptr.as_complex, outsamps);
}
else if (element->peak_type == GSTLAL_PEAK_DOUBLE_COMPLEX) {
dataptr.as_double_complex = ((double complex *) element->data) + element->maxdata->pad * element->maxdata->channels;
/* Find the peak */
gstlal_double_complex_peak_over_window_interp(element->maxdata, dataptr.as_double_complex, outsamps);
gstlal_double_complex_peak_over_window(element->maxdata, dataptr.as_double_complex, outsamps);
}
else
g_assert_not_reached();
......
......@@ -91,11 +91,11 @@ void add_buffer_from_channel(struct gstlal_peak_state *input, char *channel_name
switch (input->type)
{
case GSTLAL_PEAK_COMPLEX:
maxdata_channel = (double complex) input->interpvalues.as_float_complex[channel];
maxdata_channel = (double complex) input->values.as_float_complex[channel];
break;
case GSTLAL_PEAK_DOUBLE_COMPLEX:
maxdata_channel = (double complex) input->interpvalues.as_double_complex[channel];
maxdata_channel = (double complex) input->values.as_double_complex[channel];
break;
default:
......@@ -145,7 +145,7 @@ void add_buffer_from_channel(struct gstlal_peak_state *input, char *channel_name
XLALINT8NSToGPS(&event->epoch, time);
{
LIGOTimeGPS end_time = event->epoch;
XLALGPSAdd(&end_time, (double) input->interpsamples[channel] / rate);
XLALGPSAdd(&end_time, (double) input->samples[channel] / rate);
XLALGPSAddGPS(&parent->end, &end_time);
}
XLALGPSAdd(&event->epoch, (double) (input->samples[channel] - input->pad) / rate);
......
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