Loading [MathJax]/extensions/TeX/AMSmath.js
LALPulsar 7.1.1.1-b246709
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
XLALComputeAMTest.c File Reference

Test for XLALComputeAMCoeffs() and XLALComputeMultiAMCoeffs() by comparison with the old LAL functions old_LALGetAMCoeffs() and old_LALGetMultiAMCoeffs(). More...

Prototypes

static int XLALCompareMultiAMCoeffs (MultiAMCoeffs *multiAM1, MultiAMCoeffs *multiAM2, REAL8 tolerance)
 
static void old_LALGetMultiAMCoeffs (LALStatus *, MultiAMCoeffs **multiAMcoef, const MultiDetectorStateSeries *multiDetStates, SkyPosition pos)
 
static void old_LALNewGetAMCoeffs (LALStatus *, AMCoeffs *coeffs, const DetectorStateSeries *DetectorStates, SkyPosition skypos)
 
int main (int argc, char *argv[])
 

Detailed Description

Test for XLALComputeAMCoeffs() and XLALComputeMultiAMCoeffs() by comparison with the old LAL functions old_LALGetAMCoeffs() and old_LALGetMultiAMCoeffs().

Author
Reinhard Prix, John Whelan

Note, we run a comparison only for the 2-IFO multiAM functions XLALComputeMultiAMCoeffs() comparing it to old_LALGetMultiAMCoeffs() [combined with XLALWeightMultiAMCoeffs()], as this excercises the 1-IFO functions as well.

Sky-location is picked at random each time, which allows a minimal Monte-Carlo validation by simply running this script repeatedly.

Definition in file XLALComputeAMTest.c.

Go to the source code of this file.

Macros

#define LALCOMPUTEAMH_ENULL   7
 
#define LALCOMPUTEAMH_EINPUT   8
 
#define LALCOMPUTEAMH_ENONULL   9
 
#define LALCOMPUTEAMH_EMEM   10
 
#define LALCOMPUTEAMH_MSGENULL   "Arguments contained an unexpected null pointer"
 
#define LALCOMPUTEAMH_MSGEINPUT   "Invalid input"
 
#define LALCOMPUTEAMH_MSGENONULL   "Output pointer is non-NULL"
 
#define LALCOMPUTEAMH_MSGEMEM   "Out of memory. Bad."
 

Macro Definition Documentation

◆ LALCOMPUTEAMH_ENULL

#define LALCOMPUTEAMH_ENULL   7

Definition at line 57 of file XLALComputeAMTest.c.

◆ LALCOMPUTEAMH_EINPUT

#define LALCOMPUTEAMH_EINPUT   8

Definition at line 58 of file XLALComputeAMTest.c.

◆ LALCOMPUTEAMH_ENONULL

#define LALCOMPUTEAMH_ENONULL   9

Definition at line 59 of file XLALComputeAMTest.c.

◆ LALCOMPUTEAMH_EMEM

#define LALCOMPUTEAMH_EMEM   10

Definition at line 60 of file XLALComputeAMTest.c.

◆ LALCOMPUTEAMH_MSGENULL

#define LALCOMPUTEAMH_MSGENULL   "Arguments contained an unexpected null pointer"

Definition at line 62 of file XLALComputeAMTest.c.

◆ LALCOMPUTEAMH_MSGEINPUT

#define LALCOMPUTEAMH_MSGEINPUT   "Invalid input"

Definition at line 63 of file XLALComputeAMTest.c.

◆ LALCOMPUTEAMH_MSGENONULL

#define LALCOMPUTEAMH_MSGENONULL   "Output pointer is non-NULL"

Definition at line 64 of file XLALComputeAMTest.c.

◆ LALCOMPUTEAMH_MSGEMEM

#define LALCOMPUTEAMH_MSGEMEM   "Out of memory. Bad."

Definition at line 65 of file XLALComputeAMTest.c.

Function Documentation

◆ XLALCompareMultiAMCoeffs()

int XLALCompareMultiAMCoeffs ( MultiAMCoeffs multiAM1,
MultiAMCoeffs multiAM2,
REAL8  tolerance 
)
static

Definition at line 222 of file XLALComputeAMTest.c.

◆ old_LALGetMultiAMCoeffs()

void old_LALGetMultiAMCoeffs ( LALStatus status,
MultiAMCoeffs **  multiAMcoef,
const MultiDetectorStateSeries multiDetStates,
SkyPosition  pos 
)
static

Definition at line 366 of file XLALComputeAMTest.c.

◆ old_LALNewGetAMCoeffs()

void old_LALNewGetAMCoeffs ( LALStatus status,
AMCoeffs coeffs,
const DetectorStateSeries DetectorStates,
SkyPosition  skypos 
)
static

Definition at line 452 of file XLALComputeAMTest.c.

◆ main()

int main ( int  argc,
char argv[] 
)

Definition at line 68 of file XLALComputeAMTest.c.