LAL  7.5.0.1-08ee4f4
DetectorSiteTest.c File Reference

Tests the detector response and site parameter structures and the routine to create one from the other. More...

Detailed Description

Tests the detector response and site parameter structures and the routine to create one from the other.

Author
J. T. Whelan john..nosp@m.whel.nosp@m.an@li.nosp@m.go.o.nosp@m.rg

Usage

DetectorSiteTest [options]
Options:
-h print help
-q quiet: run silently
-v verbose: print extra information
-d level set lalDebugLevel to level
#define lalDebugLevel
Definition: LALDebugLevel.h:58
static const INT4 q
Definition: Random.c:81
int verbose
Definition: tconvert.c:103

Description

Right now the test routine does very little. It contains a static function PrintLALDetector() which will print the fields of a LALDetector to standard output in the same format that would be used for a C initialization. This function is not currently called. It also contains a static function CheckDetector() which extracts the LALFrDetector and type from a LALDetector, changes the name of the LALFrDetector (in case it's one of the predefined constant detectors), constructs a new LALDetector and compares the values of the fields of the old and new structures. The program currently performs this check for the two LIGO sites.

Uses

LALDetector * XLALCreateDetector(LALDetector *detector, const LALFrDetector *frDetector, LALDetectorType type)
UNDOCUMENTED.

Definition in file DetectorSiteTest.c.

Go to the source code of this file.

Macros

Error Codes
#define DETECTORSITETESTC_ENOM   0
 Nominal exit. More...
 
#define DETECTORSITETESTC_ECHK   1
 Error checking failed to catch bad data. More...
 
#define DETECTORSITETESTC_EFLS   2
 Incorrect answer for valid data. More...
 

Macro Definition Documentation

◆ DETECTORSITETESTC_ENOM

#define DETECTORSITETESTC_ENOM   0

Nominal exit.

Definition at line 61 of file DetectorSiteTest.c.

◆ DETECTORSITETESTC_ECHK

#define DETECTORSITETESTC_ECHK   1

Error checking failed to catch bad data.

Definition at line 62 of file DetectorSiteTest.c.

◆ DETECTORSITETESTC_EFLS

#define DETECTORSITETESTC_EFLS   2

Incorrect answer for valid data.

Definition at line 63 of file DetectorSiteTest.c.