41#ifndef _DRIVEHOUGHCOLOR_H
42#define _DRIVEHOUGHCOLOR_H
57#include <gsl/gsl_cdf.h>
60#include <lal/DetectorSite.h>
61#include <lal/LALDatatypes.h>
62#include <lal/LALHough.h>
63#include <lal/RngMedBias.h>
64#include <lal/LALRunningMedian.h>
65#include <lal/Velocity.h>
66#include <lal/Statistics.h>
67#include <lal/ComputeFstat.h>
68#include <lal/UserInput.h>
69#include <lal/SFTfileIO.h>
70#include <lal/NormalizeSFTRngMed.h>
71#include <lal/LALInitBarycenter.h>
72#include <lal/SFTClean.h>
73#include <lal/LALPulsarVCSInfo.h>
90#define DRIVEHOUGHCOLOR_ENORM 0
91#define DRIVEHOUGHCOLOR_ESUB 1
92#define DRIVEHOUGHCOLOR_EARG 2
93#define DRIVEHOUGHCOLOR_EBAD 3
94#define DRIVEHOUGHCOLOR_EFILE 4
95#define DRIVEHOUGHCOLOR_EDIR 4
96#define DRIVEHOUGHCOLOR_ENULL 5
97#define DRIVEHOUGHCOLOR_ENONULL 5
99#define DRIVEHOUGHCOLOR_MSGENORM "Normal exit"
100#define DRIVEHOUGHCOLOR_MSGESUB "Subroutine failed"
101#define DRIVEHOUGHCOLOR_MSGEARG "Error parsing arguments"
102#define DRIVEHOUGHCOLOR_MSGEBAD "Bad argument values"
103#define DRIVEHOUGHCOLOR_MSGEFILE "Could not create output file"
104#define DRIVEHOUGHCOLOR_MSGEDIR "Could not create directory"
105#define DRIVEHOUGHCOLOR_MSGENULL "Null pointer"
106#define DRIVEHOUGHCOLOR_MSGENONULL "Not a Null pointer"
112#define ERROR( code, msg, statement ) \
114 if ( lalDebugLevel & LALERROR ) \
115 XLALPrintError( "Error[0] %d: program %s, file %s, line %d, %s\n" \
116 " %s %s\n", (code), *argv, __FILE__, \
117 __LINE__, "$Id$", statement ? statement : \
121#define INFO( statement ) \
123 if ( lalDebugLevel & LALINFO ) \
124 XLALPrintError( "Info[0]: program %s, file %s, line %d, %s\n" \
125 " %s\n", *argv, __FILE__, __LINE__, \
126 "$Id$", (statement) ); \
129#define SUB( func, statusptr ) \
131 if ( (func), (statusptr)->statusCode ) { \
132 ERROR( DRIVEHOUGHCOLOR_ESUB, DRIVEHOUGHCOLOR_MSGESUB, \
133 "Function call \"" #func "\" failed:" ); \
134 return DRIVEHOUGHCOLOR_ESUB; \
146typedef struct tagREAL8Cart3CoorVector {
151typedef struct tagHoughSignificantEvent {
160typedef struct tagHoughSignificantEventVector {
166typedef struct tagHoughSkyPatchesInfo {
178typedef struct tagBestVariables {
void Periodo2PSDrng(LALStatus *status, REAL8Periodogram1 *psd, REAL8Periodogram1 *peri, UINT2 *blocksRNG)
Header file for PeakSelect.c.
struct fo storing all the variables affected by the selection of a subset of SFTs
REAL8Vector * timeDiffV
the vector of time diffs
HOUGHPeakGramVector * pgV
the vector of peakgrams
REAL8Vector * weightsV
noise and AM weights
REAL8Cart3CoorVector * velV
vector of detector velocities
UINT4 length
the number of SFTs to be selected
This structure contains a vector of peak-grams (for the different time stamps)
REAL8 nStarSignificance
significance of number count nStar
REAL8 deltaStar
declination of nStar
REAL8 freqStar
frequency of nStar
REAL8 alphaStar
right-ascension of nStar
REAL8 fdotStar
value of first spindown parameter
REAL8 nStar
most significant number count in a skypatch
HoughSignificantEvent * event
Three dimensional Cartessian coordinates.
REAL8Cart3Coor * data
x.y.z
UINT4 length
number of elements