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

Tests the construction. More...

Detailed Description

Tests the construction.

Author
Sintes, A. M., Krishnan, B.

Program TestDriveNDHough.c

Usage

TestDriveNDHough [-d debuglevel] [-o outfile] [-f f0] [-p alpha delta] [-s patchSizeX patchSizeY]
static double double delta
double alpha

Description

%TO BE CHANGED

This program generates a patch grid, a vector of luts by changing the alpha component of the velocity orientation of the detector by a fixed amount in each of them, and a vector of peak-grams (all of them containing the same information). Similar to the previous test codes the patch is set at the south pole.

Then the program builds the set of phmd, updates the cylinder and computes a Hough map at a given frequency using only one horizontal line set of phmd, and outputs the result into a file.

By default, running this program with no arguments simply tests the subroutines, producing an output file called OutHough.asc. All default parameters are set from #defined constants.

The -d option sets the debug level to the specified value debuglevel. The -o flag tells the program to print the partial Hough map derivative to the specified data file outfile. The -f option sets the intrinsic frequency f0 at which build the lut. The -p option sets the velocity orientation of the detector alpha, delta (in radians) for the first lut (time-stamp).

Uses

LALMalloc()
LALFree()
LALCheckMemoryLeaks()
void LALHOUGHInitializeHT(LALStatus *status, HOUGHMapTotal *ht, HOUGHPatchGrid *patch)
This function initializes the total Hough map HOUGHMapTotal *ht to zero and checks consistency betwee...
Definition: HoughMap.c:74
int LALPrintError(const char *fmt,...)
void LALHOUGHConstructSpacePHMD(LALStatus *status, PHMDVectorSequence *phmdVS, HOUGHPeakGramVector *pgV, HOUGHptfLUTVector *lutV)
constructs the space of phmd PHMDVectorSequence *phmdVS, given a HOUGHPeakGramVector *pgV and HOUGHpt...
Definition: DriveHough.c:54
void LALHOUGHupdateSpacePHMDup(LALStatus *status, PHMDVectorSequence *phmdVS, HOUGHPeakGramVector *pgV, HOUGHptfLUTVector *lutV)
This function updates the space of phmd increasing the frequency phmdVS->fBinMin by one.
Definition: DriveHough.c:130
void LALHOUGHConstructHMT(LALStatus *status, HOUGHMapTotal *ht, UINT8FrequencyIndexVector *freqInd, PHMDVectorSequence *phmdVS)
Given PHMDVectorSequence *phmdVS, the space of phmd, and UINT8FrequencyIndexVector *freqInd,...
Definition: DriveHough.c:301
void LALNDHOUGHParamPLUT(LALStatus *status, HOUGHParamPLUT *out, HOUGHSizePar *sizePar, HOUGHDemodPar *par)
Definition: NDParamPLUT.c:72
void LALHOUGHConstructPLUT(LALStatus *status, HOUGHptfLUT *lut, HOUGHPatchGrid *patch, HOUGHParamPLUT *par)

Definition in file DriveNDHoughTest.c.

Go to the source code of this file.

Macros

Error Codes
#define TESTDRIVENDHOUGHC_ENORM   0
 
#define TESTDRIVENDHOUGHC_ESUB   1
 
#define TESTDRIVENDHOUGHC_EARG   2
 
#define TESTDRIVENDHOUGHC_EBAD   3
 
#define TESTDRIVENDHOUGHC_EFILE   4
 
#define TESTDRIVENDHOUGHC_MSGENORM   "Normal exit"
 
#define TESTDRIVENDHOUGHC_MSGESUB   "Subroutine failed"
 
#define TESTDRIVENDHOUGHC_MSGEARG   "Error parsing arguments"
 
#define TESTDRIVENDHOUGHC_MSGEBAD   "Bad argument values"
 
#define TESTDRIVENDHOUGHC_MSGEFILE   "Could not create output file"
 

Macro Definition Documentation

◆ TESTDRIVENDHOUGHC_ENORM

#define TESTDRIVENDHOUGHC_ENORM   0

Definition at line 100 of file DriveNDHoughTest.c.

◆ TESTDRIVENDHOUGHC_ESUB

#define TESTDRIVENDHOUGHC_ESUB   1

Definition at line 101 of file DriveNDHoughTest.c.

◆ TESTDRIVENDHOUGHC_EARG

#define TESTDRIVENDHOUGHC_EARG   2

Definition at line 102 of file DriveNDHoughTest.c.

◆ TESTDRIVENDHOUGHC_EBAD

#define TESTDRIVENDHOUGHC_EBAD   3

Definition at line 103 of file DriveNDHoughTest.c.

◆ TESTDRIVENDHOUGHC_EFILE

#define TESTDRIVENDHOUGHC_EFILE   4

Definition at line 104 of file DriveNDHoughTest.c.

◆ TESTDRIVENDHOUGHC_MSGENORM

#define TESTDRIVENDHOUGHC_MSGENORM   "Normal exit"

Definition at line 106 of file DriveNDHoughTest.c.

◆ TESTDRIVENDHOUGHC_MSGESUB

#define TESTDRIVENDHOUGHC_MSGESUB   "Subroutine failed"

Definition at line 107 of file DriveNDHoughTest.c.

◆ TESTDRIVENDHOUGHC_MSGEARG

#define TESTDRIVENDHOUGHC_MSGEARG   "Error parsing arguments"

Definition at line 108 of file DriveNDHoughTest.c.

◆ TESTDRIVENDHOUGHC_MSGEBAD

#define TESTDRIVENDHOUGHC_MSGEBAD   "Bad argument values"

Definition at line 109 of file DriveNDHoughTest.c.

◆ TESTDRIVENDHOUGHC_MSGEFILE

#define TESTDRIVENDHOUGHC_MSGEFILE   "Could not create output file"

Definition at line 110 of file DriveNDHoughTest.c.