LALPulsar  6.1.0.1-89842e6
GeneratePulsarSignalTest.c File Reference

Detailed Description

Author
Mendell, G.

Usage

GeneratePulsarSignalTest

No command line options are currently supported. However, preprocessor flags can be set to print output for debugging purposes.

Description

This test program calls and compares the output from LALGeneratePulsarSignal() and LALSignalToSFTs() with the output from LALComputeSkyAndZeroPsiAMResponse() and LALFastGeneratePulsarSFTs() for a variety of signal parameters.

The current code only compares the modulus of the output SFTs, not the phases.

Notes

See the pulsar search code in lalpulsar/bin for more example uses of the functions tested by this code.

Definition in file GeneratePulsarSignalTest.c.

Go to the source code of this file.

Macros

Error Codes
#define GENERATEPULSARSIGNALTESTC_ENORM   0
 Normal exit. More...
 
#define GENERATEPULSARSIGNALTESTC_EIFO   1
 IFO not supported. More...
 
#define GENERATEPULSARSIGNALTESTC_EMOD   2
 SFT max power from LALSignalToSFTs and LALFastGeneratePulsarSFTs differs. More...
 
#define GENERATEPULSARSIGNALTESTC_EBIN   3
 SFT freq with max power from LALSignalToSFTs and LALFastGeneratePulsarSFTs differs by more than 1 bin. More...
 
#define GENERATEPULSARSIGNALTESTC_EBINS   4
 SFTs freq with max power from LALSignalToSFTs and LALFastGeneratePulsarSFTs differs too often. More...
 

Macro Definition Documentation

◆ GENERATEPULSARSIGNALTESTC_ENORM

#define GENERATEPULSARSIGNALTESTC_ENORM   0

Normal exit.

Definition at line 60 of file GeneratePulsarSignalTest.c.

◆ GENERATEPULSARSIGNALTESTC_EIFO

#define GENERATEPULSARSIGNALTESTC_EIFO   1

IFO not supported.

Definition at line 61 of file GeneratePulsarSignalTest.c.

◆ GENERATEPULSARSIGNALTESTC_EMOD

#define GENERATEPULSARSIGNALTESTC_EMOD   2

SFT max power from LALSignalToSFTs and LALFastGeneratePulsarSFTs differs.

Definition at line 62 of file GeneratePulsarSignalTest.c.

◆ GENERATEPULSARSIGNALTESTC_EBIN

#define GENERATEPULSARSIGNALTESTC_EBIN   3

SFT freq with max power from LALSignalToSFTs and LALFastGeneratePulsarSFTs differs by more than 1 bin.

Definition at line 63 of file GeneratePulsarSignalTest.c.

◆ GENERATEPULSARSIGNALTESTC_EBINS

#define GENERATEPULSARSIGNALTESTC_EBINS   4

SFTs freq with max power from LALSignalToSFTs and LALFastGeneratePulsarSFTs differs too often.

Definition at line 64 of file GeneratePulsarSignalTest.c.