#include "GenerateBinaryMesh_v1.h"#include "FindCoincidence_v1.h"#include "ReadSourceFile_v1.h"Include dependency graph for FindCoincidence_v1.c:

Go to the source code of this file.
| int ReadCommandLine | ( | int | argc, | |
| char * | argv[] | |||
| ) |
| int ReadHeader | ( | char * | , | |
| BinaryMeshFileHeader * | ||||
| ) |
Definition at line 537 of file FindCoincidence_v1.c.
| int FindCoincidence | ( | FreqMeshes ** | , | |
| REAL8 | , | |||
| Result | , | |||
| Results * | , | |||
| CoResults ** | ||||
| ) |
Definition at line 580 of file FindCoincidence_v1.c.
Definition at line 1074 of file FindCoincidence_v1.c.
| int FreeMem | ( | void | ) |
Definition at line 742 of file FindCoincidence_v1.c.
| int SetupBaryInput | ( | char * | , | |
| char * | , | |||
| char * | , | |||
| LIGOTimeGPS * | ||||
| ) |
Definition at line 479 of file FindCoincidence_v1.c.
| int GetSSBTime | ( | LALDetector * | , | |
| REAL8 * | , | |||
| REAL8 * | , | |||
| LIGOTimeGPS * | , | |||
| LIGOTimeGPS * | ||||
| ) |
Definition at line 451 of file FindCoincidence_v1.c.
| int CalculateDistance | ( | XYLocation * | , | |
| XYLocation * | , | |||
| BinaryMeshFileHeader * | , | |||
| REAL8 * | ||||
| ) |
Definition at line 1043 of file FindCoincidence_v1.c.
| int CheckCoincidence | ( | RTPLocation * | , | |
| RTPLocation * | , | |||
| BinaryMeshFileHeader * | , | |||
| BinaryMeshFileHeader * | ||||
| ) |
Definition at line 756 of file FindCoincidence_v1.c.
| int CheckConsistency | ( | FreqMeshes * | ) |
Definition at line 393 of file FindCoincidence_v1.c.
Definition at line 249 of file FindCoincidence_v1.c.
Definition at line 1246 of file FindCoincidence_v1.c.
| int ReadFreqMeshFile | ( | char * | , | |
| FreqMeshes ** | ||||
| ) |
Definition at line 160 of file FindCoincidence_v1.c.
| int GetSSBTimes | ( | BinaryMeshFileHeader * | , | |
| BinaryMeshFileHeader * | ||||
| ) |
Definition at line 560 of file FindCoincidence_v1.c.
| int() isinf | ( | double | ) |
| int main | ( | int | argc, | |
| char * | argv[] | |||
| ) |
MAIN function of SideBandMCMC code Compute the posterior pdfs of the orbital and nuisance parameters of a binary signal in Fstat form.
..
variable declarations
the status must be initially blank; this can be done by making it static:
static LALStatus status;
other variables:
ExampleOutput output; ExampleInput input; ExampleParams params;
parse arguments, if desired
for example:
program = *argv; while ( --argc > 0 ) { ++argv; if ( ! strcmp( *argv, "-d" ) ) { --argc; ++argv; lalDebugLevel = atoi( *argv ); continue; } if ( ! strcmp( *argv, "-v" ) ) { verbose = 1; continue; } if ( ! strcmp( *argv, "-h" ) ) { fprintf( stderr, usage, program ); return 0; } fprintf( stderr, "no such option %s\n", *argv ); fprintf( stderr, usage, program ); return FAIL_ARGS; }
/** test response to invalid data
these tests must be wrapped so they are not done when debugging is disabled:
ifndef LAL_NDEBUG if ( ! lalNoDebug ) { LALExample( &status, NULL, &input, ¶ms ); if ( status.statusCode != EXAMPLEH_ENULL || strcmp( status.statusDescription, EXAMPLEH_MSGENULL ) ) { fprintf( stderr, "incorrect error code %d and message %s\n", status.statusCode, status.statusDescription ); fprintf( stderr, "expecting error code %d and message %s\n", EXAMPLEH_ENULL, EXAMPLEH_MSGENULL ); return FAIL_CODE; }
fputs( "PASS: Test response to invalid data\n", stderr ); } endif
test response to valid data
for example:
LALExample( &status, &output, &input, ¶m ); if ( status.statusCode ) { fprintf( stderr, "received error code %d and message %s\n", status.statusCode, status.statusDescription ); return FAIL_ESUB; }
(perform checks on the contents of output too!)
during default operation, output to the screen should be minimal:
for ( i = 0; i < 1048576; ++i ) printf( "%d\n", i ); !!! BAD !!!
but it is OK to indicate that tests have passed:
fputs( "PASS: Test response to valid data\n", stderr );
check for memory leaks and return success:
LALCheckMemoryLeaks(); fputs( "PASS: All tests\n" );
Definition at line 91 of file FindCoincidence_v1.c.
| INT4 lalDebugLevel = 3 |
DECLARE AND SET GLOBAL DEBUG LEVEL.
see the section (currently 7.4.1) of the LSD on "Status-reporting objects" for a list of predefined debug levels
Definition at line 33 of file FindCoincidence_v1.c.
Definition at line 35 of file FindCoincidence_v1.c.
Definition at line 36 of file FindCoincidence_v1.c.
Definition at line 36 of file FindCoincidence_v1.c.
Definition at line 36 of file FindCoincidence_v1.c.
Definition at line 36 of file FindCoincidence_v1.c.
Definition at line 36 of file FindCoincidence_v1.c.
Definition at line 37 of file FindCoincidence_v1.c.
Definition at line 37 of file FindCoincidence_v1.c.
Definition at line 38 of file FindCoincidence_v1.c.
Definition at line 38 of file FindCoincidence_v1.c.
Definition at line 38 of file FindCoincidence_v1.c.
Definition at line 38 of file FindCoincidence_v1.c.
Definition at line 38 of file FindCoincidence_v1.c.
Definition at line 38 of file FindCoincidence_v1.c.
Definition at line 39 of file FindCoincidence_v1.c.
Definition at line 39 of file FindCoincidence_v1.c.
Definition at line 39 of file FindCoincidence_v1.c.
Definition at line 39 of file FindCoincidence_v1.c.
Definition at line 40 of file FindCoincidence_v1.c.
Definition at line 40 of file FindCoincidence_v1.c.
Definition at line 40 of file FindCoincidence_v1.c.
Definition at line 41 of file FindCoincidence_v1.c.
Definition at line 42 of file FindCoincidence_v1.c.
Definition at line 42 of file FindCoincidence_v1.c.
Definition at line 43 of file FindCoincidence_v1.c.
Definition at line 43 of file FindCoincidence_v1.c.
Definition at line 44 of file FindCoincidence_v1.c.
| FILE* sbfp |
Definition at line 45 of file FindCoincidence_v1.c.
| FILE * fbfp |
Definition at line 45 of file FindCoincidence_v1.c.
Definition at line 46 of file FindCoincidence_v1.c.
Definition at line 47 of file FindCoincidence_v1.c.
| CHAR fullbankfile[256] |
Definition at line 48 of file FindCoincidence_v1.c.
| CHAR subbankfile[256] |
Definition at line 48 of file FindCoincidence_v1.c.
Definition at line 48 of file FindCoincidence_v1.c.
Definition at line 48 of file FindCoincidence_v1.c.
Definition at line 48 of file FindCoincidence_v1.c.
Definition at line 49 of file FindCoincidence_v1.c.
| EphemerisData* edat = NULL |
Definition at line 50 of file FindCoincidence_v1.c.
Definition at line 51 of file FindCoincidence_v1.c.
Definition at line 52 of file FindCoincidence_v1.c.
Definition at line 53 of file FindCoincidence_v1.c.
| LALLeapSecFormatAndAcc formatAndAcc = {LALLEAPSEC_GPSUTC, LALLEAPSEC_STRICT} |
Definition at line 54 of file FindCoincidence_v1.c.
Definition at line 55 of file FindCoincidence_v1.c.
| char presultsdir[256] |
Definition at line 58 of file FindCoincidence_v1.c.
| char sresultsdir[256] |
Definition at line 59 of file FindCoincidence_v1.c.
| char freqmeshfile[256] |
Definition at line 60 of file FindCoincidence_v1.c.
Definition at line 61 of file FindCoincidence_v1.c.
| char sdatasetparamsfile[256] |
Definition at line 62 of file FindCoincidence_v1.c.
Definition at line 63 of file FindCoincidence_v1.c.
Definition at line 63 of file FindCoincidence_v1.c.
| char coresultsdir[256] |
Definition at line 64 of file FindCoincidence_v1.c.
| char ephdir[256] |
Definition at line 65 of file FindCoincidence_v1.c.
| char yr[256] |
Definition at line 66 of file FindCoincidence_v1.c.
Definition at line 67 of file FindCoincidence_v1.c.
Definition at line 67 of file FindCoincidence_v1.c.
Definition at line 69 of file FindCoincidence_v1.c.
| char* optarg |
Definition at line 176 of file GeneralMeshTest.c.
| int optind |
Definition at line 149 of file packages/support/src/getopt.c.
| int opterr |
Definition at line 169 of file packages/support/src/getopt.c.
| int optopt |
Definition at line 175 of file packages/support/src/getopt.c.
1.5.2