LALPulsar 7.1.2.1-bf6a62b
MCInjectHoughMultiChi2Test.c File Reference

Monte Carlo signal injections for several h_0 values and compute the Hough transform for a small number of point in parameter space each time. More...

Prototypes

void SplitSFTs (LALStatus *status, REAL8Vector *weightsV, HoughParamsTest *chi2Params)
 
void ComputeFoft_NM (LALStatus *status, REAL8Vector *foft, HoughTemplate *pulsarTemplate, REAL8Vector *timeDiffV, REAL8Cart3CoorVector *velV)
 
void PrintLogFile2 (LALStatus *status, CHAR *dir, CHAR *basename, LALStringVector *linefiles, CHAR *executable)
 
int main (int argc, char *argv[])
 
void GenerateInjectParams (LALStatus *status, PulsarData *injectPulsar, HoughTemplate *templatePulsar, HoughNearTemplates *closeTemplates, HoughInjectParams *params, LineNoiseInfo *lines)
 
void GenerateInjectParamsNoVeto (LALStatus *status, PulsarData *injectPulsar, HoughTemplate *templatePulsar, HoughNearTemplates *closeTemplates, HoughInjectParams *params)
 

Detailed Description

Monte Carlo signal injections for several h_0 values and compute the Hough transform for a small number of point in parameter space each time.

Author
Llucia Sancho de la Jordana

Definition in file MCInjectHoughMultiChi2Test.c.

Go to the source code of this file.

Data Structures

struct  HoughParamsTest
 

Macros

#define EARTHEPHEMERIS   "/home/llucia/chi2/earth05-09.dat"
 
#define SUNEPHEMERIS   "/home/llucia/chi2/sun05-09.dat"
 
#define MAXFILENAMELENGTH   512 /* maximum # of characters of a filename */
 
#define ACCURACY   0.00000001 /* of the velocity calculation */
 
#define MAXFILES   3000 /* maximum number of files to read in a directory */
 
#define THRESHOLD
 
#define F0   250.0 /* frequency to build the LUT and start search */
 
#define FBAND   2.0 /* search frequency band (in Hz) */
 
#define ALPHA   0.0 /* center of the sky patch (in radians) */
 
#define DELTA   (-LAL_PI_2)
 
#define PATCHSIZEX   (LAL_PI*0.99) /* patch size */
 
#define PATCHSIZEY   (LAL_PI*0.99)
 
#define NFSIZE
 
#define BLOCKSRNGMED   101 /* Running median window size */
 
#define NH0   2 /* number of h0 values to be analyzed */
 
#define H0MIN   1.0e-23
 
#define H0MAX   1.0e-22
 
#define NMCLOOP   2 /* number of Monte-Carlos */
 
#define NTEMPLATES   16 /* number templates for each Monte-Carlo */
 
#define DTERMS   5
 
#define SFTDIRECTORY   "/local_data/sintes/SFT-S5-120-130/*SFT*.*"
 
#define DIROUT   "./" /* output directory */
 
#define FILEOUT   "/HoughMCIChi2" /* prefix file output */
 
#define NBLOCKSTEST   8 /* number of data blocks to do Chi2 test */
 
#define TRUE   (1==1)
 
#define FALSE   (1==0)
 

Macro Definition Documentation

◆ EARTHEPHEMERIS

#define EARTHEPHEMERIS   "/home/llucia/chi2/earth05-09.dat"

Definition at line 53 of file MCInjectHoughMultiChi2Test.c.

◆ SUNEPHEMERIS

#define SUNEPHEMERIS   "/home/llucia/chi2/sun05-09.dat"

Definition at line 54 of file MCInjectHoughMultiChi2Test.c.

◆ MAXFILENAMELENGTH

#define MAXFILENAMELENGTH   512 /* maximum # of characters of a filename */

Definition at line 56 of file MCInjectHoughMultiChi2Test.c.

◆ ACCURACY

#define ACCURACY   0.00000001 /* of the velocity calculation */

Definition at line 58 of file MCInjectHoughMultiChi2Test.c.

◆ MAXFILES

#define MAXFILES   3000 /* maximum number of files to read in a directory */

Definition at line 59 of file MCInjectHoughMultiChi2Test.c.

◆ THRESHOLD

#define THRESHOLD
Value:
1.6 /* thresold for peak selection, with respect to the
the averaged power in the search band */

Definition at line 61 of file MCInjectHoughMultiChi2Test.c.

◆ F0

#define F0   250.0 /* frequency to build the LUT and start search */

Definition at line 62 of file MCInjectHoughMultiChi2Test.c.

◆ FBAND

#define FBAND   2.0 /* search frequency band (in Hz) */

Definition at line 63 of file MCInjectHoughMultiChi2Test.c.

◆ ALPHA

#define ALPHA   0.0 /* center of the sky patch (in radians) */

Definition at line 64 of file MCInjectHoughMultiChi2Test.c.

◆ DELTA

#define DELTA   (-LAL_PI_2)

Definition at line 65 of file MCInjectHoughMultiChi2Test.c.

◆ PATCHSIZEX

#define PATCHSIZEX   (LAL_PI*0.99) /* patch size */

Definition at line 66 of file MCInjectHoughMultiChi2Test.c.

◆ PATCHSIZEY

#define PATCHSIZEY   (LAL_PI*0.99)

Definition at line 67 of file MCInjectHoughMultiChi2Test.c.

◆ NFSIZE

#define NFSIZE
Value:
21 /* n-freq. span of the cylinder, to account for spin-down
search */

Definition at line 68 of file MCInjectHoughMultiChi2Test.c.

◆ BLOCKSRNGMED

#define BLOCKSRNGMED   101 /* Running median window size */

Definition at line 69 of file MCInjectHoughMultiChi2Test.c.

◆ NH0

#define NH0   2 /* number of h0 values to be analyzed */

Definition at line 70 of file MCInjectHoughMultiChi2Test.c.

◆ H0MIN

#define H0MIN   1.0e-23

Definition at line 71 of file MCInjectHoughMultiChi2Test.c.

◆ H0MAX

#define H0MAX   1.0e-22

Definition at line 72 of file MCInjectHoughMultiChi2Test.c.

◆ NMCLOOP

#define NMCLOOP   2 /* number of Monte-Carlos */

Definition at line 73 of file MCInjectHoughMultiChi2Test.c.

◆ NTEMPLATES

#define NTEMPLATES   16 /* number templates for each Monte-Carlo */

Definition at line 74 of file MCInjectHoughMultiChi2Test.c.

◆ DTERMS

#define DTERMS   5

Definition at line 75 of file MCInjectHoughMultiChi2Test.c.

◆ SFTDIRECTORY

#define SFTDIRECTORY   "/local_data/sintes/SFT-S5-120-130/*SFT*.*"

Definition at line 77 of file MCInjectHoughMultiChi2Test.c.

◆ DIROUT

#define DIROUT   "./" /* output directory */

Definition at line 79 of file MCInjectHoughMultiChi2Test.c.

◆ FILEOUT

#define FILEOUT   "/HoughMCIChi2" /* prefix file output */

Definition at line 80 of file MCInjectHoughMultiChi2Test.c.

◆ NBLOCKSTEST

#define NBLOCKSTEST   8 /* number of data blocks to do Chi2 test */

Definition at line 82 of file MCInjectHoughMultiChi2Test.c.

◆ TRUE

#define TRUE   (1==1)

Definition at line 84 of file MCInjectHoughMultiChi2Test.c.

◆ FALSE

#define FALSE   (1==0)

Definition at line 85 of file MCInjectHoughMultiChi2Test.c.

Function Documentation

◆ SplitSFTs()

void SplitSFTs ( LALStatus status,
REAL8Vector weightsV,
HoughParamsTest chi2Params 
)

Definition at line 1769 of file MCInjectHoughMultiChi2Test.c.

◆ ComputeFoft_NM()

void ComputeFoft_NM ( LALStatus status,
REAL8Vector foft,
HoughTemplate pulsarTemplate,
REAL8Vector timeDiffV,
REAL8Cart3CoorVector velV 
)

Definition at line 1603 of file MCInjectHoughMultiChi2Test.c.

◆ PrintLogFile2()

void PrintLogFile2 ( LALStatus status,
CHAR dir,
CHAR basename,
LALStringVector linefiles,
CHAR executable 
)

Definition at line 1676 of file MCInjectHoughMultiChi2Test.c.

◆ main()

int main ( int  argc,
char argv[] 
)

Definition at line 124 of file MCInjectHoughMultiChi2Test.c.

◆ GenerateInjectParams()

void GenerateInjectParams ( LALStatus status,
PulsarData injectPulsar,
HoughTemplate templatePulsar,
HoughNearTemplates closeTemplates,
HoughInjectParams params,
LineNoiseInfo lines 
)

Definition at line 1163 of file MCInjectHoughMultiChi2Test.c.

◆ GenerateInjectParamsNoVeto()

void GenerateInjectParamsNoVeto ( LALStatus status,
PulsarData injectPulsar,
HoughTemplate templatePulsar,
HoughNearTemplates closeTemplates,
HoughInjectParams params 
)

Definition at line 1390 of file MCInjectHoughMultiChi2Test.c.