56#define INJECTIONINTERFACETESTC_ENORM 0
57#define INJECTIONINTERFACETESTC_ESUB 1
58#define INJECTIONINTERFACETESTC_EARG 2
59#define INJECTIONINTERFACETESTC_EVAL 3
60#define INJECTIONINTERFACETESTC_EFILE 4
61#define INJECTIONINTERFACETESTC_EMEM 5
62#define INJECTIONINTERFACETESTC_EINJECT 6
64#define INJECTIONINTERFACETESTC_MSGENORM "Normal exit"
65#define INJECTIONINTERFACETESTC_MSGESUB "Subroutine failed"
66#define INJECTIONINTERFACETESTC_MSGEARG "Error parsing arguments"
67#define INJECTIONINTERFACETESTC_MSGEVAL "Input argument out of valid range"
68#define INJECTIONINTERFACETESTC_MSGEFILE "Could not open file"
69#define INJECTIONINTERFACETESTC_MSGEMEM "Out of memory"
70#define INJECTIONINTERFACETESTC_MSGEINJECT "No valid injection to do ... ? "
74#define INJECTIONINTERFACETEST_INJECTIONXMLFILE "injection.xml"
75#define INJECTIONINTERFACETEST_INJECTIONOUTPUTFILE "injection.dat"
83#include <lal/GenerateInspiral.h>
84#include <lal/VectorOps.h>
85#include <lal/SeqFactories.h>
87#include <lal/LALStdio.h>
88#include <lal/LALStdlib.h>
89#include <lal/LALError.h>
90#include <lal/LALDatatypes.h>
91#include <lal/AVFactories.h>
93#include <lal/LIGOMetadataTables.h>
94#include <lal/LIGOMetadataUtils.h>
95#include <lal/LIGOLwXML.h>
96#include <lal/LIGOLwXMLRead.h>
100#include <lal/FindChirp.h>
101#include <lal/PrintFTSeries.h>
103#define ERROR( code, msg, statement ) \
105if ( lalDebugLevel & LALERROR ) \
107 LALPrintError( "Error[0] %d: program %s, file %s, line %d, %s\n" \
108 " %s %s\n", (code), program, __FILE__, \
109 __LINE__, "$Id$", statement ? statement : \
114#define SUB( func, statusptr ) \
116if ( (func), (statusptr)->statusCode ) \
118 ERROR( INJECTIONINTERFACETESTC_ESUB, INJECTIONINTERFACETESTC_MSGESUB, \
119 "Function call \"" #func "\" failed:" ); \
120 exit( INJECTIONINTERFACETESTC_ESUB ); \
125#define UNUSED __attribute__ ((unused))
135int main(
int UNUSED argc,
char **argv)
139 UINT4 numPoints = 524288 ;
140 REAL8 sampling = 2048.;
181 ts.epoch.gpsSeconds = 729273600;
183 ts.deltaT = 1./sampling;
188 fs.
deltaF = sampling / numPoints;
192 for( k = 0 ; k< numPoints/2; k++){
196 for( k = 0 ; k< numPoints; k++){
197 ts.data->data[k] = 0.;
223 for (k = 0; k < numPoints; k++){
234 thisInj = injections;
235 injections = injections->
next;
void LALFindChirpInjectSignals(LALStatus *status, REAL4TimeSeries *chan, SimInspiralTable *events, COMPLEX8FrequencySeries *resp)
#define INJECTIONINTERFACETESTC_MSGEFILE
int main(int UNUSED argc, char **argv)
#define SUB(func, statusptr)
#define INJECTIONINTERFACETEST_INJECTIONXMLFILE
#define INJECTIONINTERFACETESTC_MSGEINJECT
#define ERROR(code, msg, statement)
#define INJECTIONINTERFACETESTC_EFILE
#define INJECTIONINTERFACETEST_INJECTIONOUTPUTFILE
#define INJECTIONINTERFACETESTC_EINJECT
void LALCheckMemoryLeaks(void)
SimInspiralTable * XLALSimInspiralTableFromLIGOLw(const char *fileName)
const LALUnit lalADCCountUnit
void LALCCreateVector(LALStatus *, COMPLEX8Vector **, UINT4)
void LALCDestroyVector(LALStatus *, COMPLEX8Vector **)
void LALSDestroyVector(LALStatus *, REAL4Vector **)
void LALSCreateVector(LALStatus *, REAL4Vector **, UINT4)
struct tagSimInspiralTable * next
char output[FILENAME_MAX]