Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALInspiral 5.0.3.1-5e288d3
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
InjectionInterfaceTest.c File Reference

Interface to generate any kind of gravitational waves signal. More...

Prototypes

int main (int UNUSED argc, char **argv)
 

Detailed Description

Interface to generate any kind of gravitational waves signal.

Author
Cokelaer, T.

Usage

\c InterfaceTest

Description

Right now this test file read an input xml (injection.xml) file and for each valid line it computes the approriate waveform. Those waveforms are either produce within the inject package (PPN waveform) or within the inspiral package (TaylorT[1,2,3], EOB, SpinTaylor, PadeT1).

Then the function LALGeneralInspiral create the amplitude, freq and phi vectors needed for further injection including the data itself (noise, h(t))

Finally, the injections are stored in a vector which is saved in "injection.dat" file.

Uses

Notes

Definition in file InjectionInterfaceTest.c.

Go to the source code of this file.

Macros

#define INJECTIONINTERFACETEST_INJECTIONXMLFILE   "injection.xml"
 
#define INJECTIONINTERFACETEST_INJECTIONOUTPUTFILE   "injection.dat"
 
#define ERROR(code, msg, statement)
 
#define SUB(func, statusptr)
 
Error Codes
#define INJECTIONINTERFACETESTC_ENORM   0
 
#define INJECTIONINTERFACETESTC_ESUB   1
 
#define INJECTIONINTERFACETESTC_EARG   2
 
#define INJECTIONINTERFACETESTC_EVAL   3
 
#define INJECTIONINTERFACETESTC_EFILE   4
 
#define INJECTIONINTERFACETESTC_EMEM   5
 
#define INJECTIONINTERFACETESTC_EINJECT   6
 
#define INJECTIONINTERFACETESTC_MSGENORM   "Normal exit"
 
#define INJECTIONINTERFACETESTC_MSGESUB   "Subroutine failed"
 
#define INJECTIONINTERFACETESTC_MSGEARG   "Error parsing arguments"
 
#define INJECTIONINTERFACETESTC_MSGEVAL   "Input argument out of valid range"
 
#define INJECTIONINTERFACETESTC_MSGEFILE   "Could not open file"
 
#define INJECTIONINTERFACETESTC_MSGEMEM   "Out of memory"
 
#define INJECTIONINTERFACETESTC_MSGEINJECT   "No valid injection to do ... ? "
 

Variables

charprogram
 

Macro Definition Documentation

◆ INJECTIONINTERFACETESTC_ENORM

#define INJECTIONINTERFACETESTC_ENORM   0

Definition at line 56 of file InjectionInterfaceTest.c.

◆ INJECTIONINTERFACETESTC_ESUB

#define INJECTIONINTERFACETESTC_ESUB   1

Definition at line 57 of file InjectionInterfaceTest.c.

◆ INJECTIONINTERFACETESTC_EARG

#define INJECTIONINTERFACETESTC_EARG   2

Definition at line 58 of file InjectionInterfaceTest.c.

◆ INJECTIONINTERFACETESTC_EVAL

#define INJECTIONINTERFACETESTC_EVAL   3

Definition at line 59 of file InjectionInterfaceTest.c.

◆ INJECTIONINTERFACETESTC_EFILE

#define INJECTIONINTERFACETESTC_EFILE   4

Definition at line 60 of file InjectionInterfaceTest.c.

◆ INJECTIONINTERFACETESTC_EMEM

#define INJECTIONINTERFACETESTC_EMEM   5

Definition at line 61 of file InjectionInterfaceTest.c.

◆ INJECTIONINTERFACETESTC_EINJECT

#define INJECTIONINTERFACETESTC_EINJECT   6

Definition at line 62 of file InjectionInterfaceTest.c.

◆ INJECTIONINTERFACETESTC_MSGENORM

#define INJECTIONINTERFACETESTC_MSGENORM   "Normal exit"

Definition at line 64 of file InjectionInterfaceTest.c.

◆ INJECTIONINTERFACETESTC_MSGESUB

#define INJECTIONINTERFACETESTC_MSGESUB   "Subroutine failed"

Definition at line 65 of file InjectionInterfaceTest.c.

◆ INJECTIONINTERFACETESTC_MSGEARG

#define INJECTIONINTERFACETESTC_MSGEARG   "Error parsing arguments"

Definition at line 66 of file InjectionInterfaceTest.c.

◆ INJECTIONINTERFACETESTC_MSGEVAL

#define INJECTIONINTERFACETESTC_MSGEVAL   "Input argument out of valid range"

Definition at line 67 of file InjectionInterfaceTest.c.

◆ INJECTIONINTERFACETESTC_MSGEFILE

#define INJECTIONINTERFACETESTC_MSGEFILE   "Could not open file"

Definition at line 68 of file InjectionInterfaceTest.c.

◆ INJECTIONINTERFACETESTC_MSGEMEM

#define INJECTIONINTERFACETESTC_MSGEMEM   "Out of memory"

Definition at line 69 of file InjectionInterfaceTest.c.

◆ INJECTIONINTERFACETESTC_MSGEINJECT

#define INJECTIONINTERFACETESTC_MSGEINJECT   "No valid injection to do ... ? "

Definition at line 70 of file InjectionInterfaceTest.c.

◆ INJECTIONINTERFACETEST_INJECTIONXMLFILE

#define INJECTIONINTERFACETEST_INJECTIONXMLFILE   "injection.xml"

Definition at line 74 of file InjectionInterfaceTest.c.

◆ INJECTIONINTERFACETEST_INJECTIONOUTPUTFILE

#define INJECTIONINTERFACETEST_INJECTIONOUTPUTFILE   "injection.dat"

Definition at line 75 of file InjectionInterfaceTest.c.

◆ ERROR

#define ERROR (   code,
  msg,
  statement 
)
Value:
do \
if ( lalDebugLevel & LALERROR ) \
{ \
LALPrintError( "Error[0] %d: program %s, file %s, line %d, %s\n" \
" %s %s\n", (code), program, __FILE__, \
__LINE__, "$Id$", statement ? statement : \
"", (msg) ); \
} \
while (0)
char * program
LALERROR

Definition at line 103 of file InjectionInterfaceTest.c.

◆ SUB

#define SUB (   func,
  statusptr 
)
Value:
do \
if ( (func), (statusptr)->statusCode ) \
{ \
"Function call \"" #func "\" failed:" ); \
} \
while (0)
#define INJECTIONINTERFACETESTC_ESUB
#define INJECTIONINTERFACETESTC_MSGESUB

Definition at line 114 of file InjectionInterfaceTest.c.

Function Documentation

◆ main()

int main ( int UNUSED  argc,
char **  argv 
)

Definition at line 135 of file InjectionInterfaceTest.c.

Variable Documentation

◆ program

char* program

Definition at line 130 of file InjectionInterfaceTest.c.