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

Tests the construction. More...

Detailed Description

Tests the construction.

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

Program TestDriveHough.c

Usage

TestDriveHough [-d debuglevel] [-o outfile] [-f f0] [-p alpha delta]
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 LALHOUGHConstructPLUT(LALStatus *status, HOUGHptfLUT *lut, HOUGHPatchGrid *patch, HOUGHParamPLUT *par)
void LALHOUGHCalcParamPLUT(LALStatus *status, HOUGHParamPLUT *out, HOUGHSizePar *sizePar, HOUGHDemodPar *par)
Definition: ParamPLUT.c:71

Definition in file DriveHoughTest.c.

Go to the source code of this file.

Macros

Error Codes
#define TESTDRIVEHOUGHC_ENORM   0
 
#define TESTDRIVEHOUGHC_ESUB   1
 
#define TESTDRIVEHOUGHC_EARG   2
 
#define TESTDRIVEHOUGHC_EBAD   3
 
#define TESTDRIVEHOUGHC_EFILE   4
 
#define TESTDRIVEHOUGHC_MSGENORM   "Normal exit"
 
#define TESTDRIVEHOUGHC_MSGESUB   "Subroutine failed"
 
#define TESTDRIVEHOUGHC_MSGEARG   "Error parsing arguments"
 
#define TESTDRIVEHOUGHC_MSGEBAD   "Bad argument values"
 
#define TESTDRIVEHOUGHC_MSGEFILE   "Could not create output file"
 

Macro Definition Documentation

◆ TESTDRIVEHOUGHC_ENORM

#define TESTDRIVEHOUGHC_ENORM   0

Definition at line 101 of file DriveHoughTest.c.

◆ TESTDRIVEHOUGHC_ESUB

#define TESTDRIVEHOUGHC_ESUB   1

Definition at line 102 of file DriveHoughTest.c.

◆ TESTDRIVEHOUGHC_EARG

#define TESTDRIVEHOUGHC_EARG   2

Definition at line 103 of file DriveHoughTest.c.

◆ TESTDRIVEHOUGHC_EBAD

#define TESTDRIVEHOUGHC_EBAD   3

Definition at line 104 of file DriveHoughTest.c.

◆ TESTDRIVEHOUGHC_EFILE

#define TESTDRIVEHOUGHC_EFILE   4

Definition at line 105 of file DriveHoughTest.c.

◆ TESTDRIVEHOUGHC_MSGENORM

#define TESTDRIVEHOUGHC_MSGENORM   "Normal exit"

Definition at line 107 of file DriveHoughTest.c.

◆ TESTDRIVEHOUGHC_MSGESUB

#define TESTDRIVEHOUGHC_MSGESUB   "Subroutine failed"

Definition at line 108 of file DriveHoughTest.c.

◆ TESTDRIVEHOUGHC_MSGEARG

#define TESTDRIVEHOUGHC_MSGEARG   "Error parsing arguments"

Definition at line 109 of file DriveHoughTest.c.

◆ TESTDRIVEHOUGHC_MSGEBAD

#define TESTDRIVEHOUGHC_MSGEBAD   "Bad argument values"

Definition at line 110 of file DriveHoughTest.c.

◆ TESTDRIVEHOUGHC_MSGEFILE

#define TESTDRIVEHOUGHC_MSGEFILE   "Could not create output file"

Definition at line 111 of file DriveHoughTest.c.