30#include <lal/CoincInspiralEllipsoid.h>
31#include <lal/TrigScanEThincaCommon.h>
59 REAL8 timeError = 0.0;
69 if ( scaleFactor <= 0 )
73 for (currentTrigger = tableHead; currentTrigger;
74 currentTrigger = currentTrigger->
next)
81 thisErrorList = errorListHead;
86 thisErrorList = thisErrorList->
next;
94 thisErrorList->
trigger = currentTrigger;
110 if (thisTimeError > timeError)
112 timeError = thisTimeError;
117 if ( tcMax ) *tcMax = timeError;
118 return errorListHead;
128 thisErrorList = errorListHead;
129 while (thisErrorList)
131 errorListHead = thisErrorList->
next;
136 gsl_vector_free( thisErrorList->
position );
139 thisErrorList = errorListHead;
161 x = (a23 * a23 - a22 * a33) * a22;
162 denom = (a12*a23 - a22*a13) * (a12*a23 - a22*a13)
163 - (a23*a23 - a22*a33) * (a12*a12 - a22*a11);
167 if ((
x < 0) ^ (denom < 0))
170 return sqrt(
x / denom );
gsl_matrix * XLALGetErrorMatrixFromSnglInspiral(SnglInspiralTable *event, REAL8 eMatch)
gsl_vector * XLALGetPositionFromSnglInspiral(SnglInspiralTable *table)
REAL8 XLALSnglInspiralTimeError(const SnglInspiralTable *table, REAL8 eMatch)
Using the waveform metric components, translate an "e-thinca" treshold into a error interval.
TriggerErrorList * XLALCreateTriggerErrorList(SnglInspiralTable *tableHead, REAL8 scaleFactor, REAL8 *tcMax)
void XLALDestroyTriggerErrorList(TriggerErrorList *errorListHead)
#define XLAL_ERROR_REAL8(...)
#define XLAL_ERROR_NULL(...)
struct tagSnglInspiralTable * next
The TriggerErrorList is a linked list used within e-thinca.
struct tagTriggerErrorList * next
SnglInspiralTable * trigger