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
MCInjectHoughMulti.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 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
Alicia Sintes, Badri Krishnan

Definition in file MCInjectHoughMulti.c.

Go to the source code of this file.

Macros

#define EARTHEPHEMERIS   "./earth05-09.dat"
 
#define SUNEPHEMERIS   "./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   "/HoughMC" /* prefix file output */
 
#define TRUE   (1==1)
 
#define FALSE   (1==0)
 

Macro Definition Documentation

◆ EARTHEPHEMERIS

#define EARTHEPHEMERIS   "./earth05-09.dat"

Definition at line 53 of file MCInjectHoughMulti.c.

◆ SUNEPHEMERIS

#define SUNEPHEMERIS   "./sun05-09.dat"

Definition at line 54 of file MCInjectHoughMulti.c.

◆ MAXFILENAMELENGTH

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

Definition at line 56 of file MCInjectHoughMulti.c.

◆ ACCURACY

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

Definition at line 58 of file MCInjectHoughMulti.c.

◆ MAXFILES

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

Definition at line 59 of file MCInjectHoughMulti.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 MCInjectHoughMulti.c.

◆ F0

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

Definition at line 62 of file MCInjectHoughMulti.c.

◆ FBAND

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

Definition at line 63 of file MCInjectHoughMulti.c.

◆ ALPHA

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

Definition at line 64 of file MCInjectHoughMulti.c.

◆ DELTA

#define DELTA   (-LAL_PI_2)

Definition at line 65 of file MCInjectHoughMulti.c.

◆ PATCHSIZEX

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

Definition at line 66 of file MCInjectHoughMulti.c.

◆ PATCHSIZEY

#define PATCHSIZEY   (LAL_PI*0.99)

Definition at line 67 of file MCInjectHoughMulti.c.

◆ NFSIZE

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

Definition at line 68 of file MCInjectHoughMulti.c.

◆ BLOCKSRNGMED

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

Definition at line 69 of file MCInjectHoughMulti.c.

◆ NH0

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

Definition at line 70 of file MCInjectHoughMulti.c.

◆ H0MIN

#define H0MIN   1.0e-23

Definition at line 71 of file MCInjectHoughMulti.c.

◆ H0MAX

#define H0MAX   1.0e-22

Definition at line 72 of file MCInjectHoughMulti.c.

◆ NMCLOOP

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

Definition at line 73 of file MCInjectHoughMulti.c.

◆ NTEMPLATES

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

Definition at line 74 of file MCInjectHoughMulti.c.

◆ DTERMS

#define DTERMS   5

Definition at line 75 of file MCInjectHoughMulti.c.

◆ SFTDIRECTORY

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

Definition at line 77 of file MCInjectHoughMulti.c.

◆ DIROUT

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

Definition at line 79 of file MCInjectHoughMulti.c.

◆ FILEOUT

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

Definition at line 80 of file MCInjectHoughMulti.c.

◆ TRUE

#define TRUE   (1==1)

Definition at line 82 of file MCInjectHoughMulti.c.

◆ FALSE

#define FALSE   (1==0)

Definition at line 83 of file MCInjectHoughMulti.c.

Function Documentation

◆ ComputeFoft_NM()

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

Definition at line 1519 of file MCInjectHoughMulti.c.

◆ PrintLogFile2()

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

Definition at line 1588 of file MCInjectHoughMulti.c.

◆ main()

int main ( int  argc,
char argv[] 
)

Definition at line 103 of file MCInjectHoughMulti.c.

◆ GenerateInjectParams()

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

Definition at line 1079 of file MCInjectHoughMulti.c.

◆ GenerateInjectParamsNoVeto()

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

Definition at line 1306 of file MCInjectHoughMulti.c.