20#ifndef CROSSCORRTOPLIST_H
21#define CROSSCORRTOPLIST_H
23#include <lal/HeapToplist.h>
24#include <lal/LALDatatypes.h>
int create_crossCorr_toplist(toplist_t **list, UINT8 length)
creates a toplist with length elements, returns -1 on error (usually out of memory),...
void sort_crossCorrBinary_toplist(toplist_t *list)
int write_cc_checkpoint(const char *filename, toplist_t *tl, UINT4 counter, BOOLEAN do_sync)
writes a checkpoint:
int final_write_crossCorr_toplist_to_file(toplist_t *list, const char *filename, UINT4 *checksum)
meant for the final writing of the toplist
void free_crossCorr_toplist(toplist_t **list)
frees the space occupied by the toplist
int atomic_write_crossCorr_toplist_to_file(toplist_t *list, const char *filename, UINT4 *checksum)
writes the given toplitst to a temporary file, then renames the temporary file to filename.
int insert_into_crossCorrBinary_toplist(toplist_t *list, CrossCorrBinaryOutputEntry line)
int final_write_crossCorrBinary_toplist_to_file(toplist_t *list, const char *filename, UINT4 *checksum)
int write_crossCorrBinary_toplist_item_to_fp(CrossCorrBinaryOutputEntry line, FILE *fp, UINT4 *checksum)
int create_crossCorrBinary_toplist(toplist_t **list, UINT8 length)
int write_crossCorr_toplist_to_fp(toplist_t *list, FILE *fp, UINT4 *checksum)
Writes the toplist to an (already open) filepointer Returns the number of written charactes sets the ...
int atomic_write_crossCorrBinary_toplist_to_file(toplist_t *list, const char *filename, UINT4 *checksum)
int write_crossCorr_toplist_item_to_fp(CrossCorrOutputEntry line, FILE *fp, UINT4 *checksum)
File IO.
int write_cc_output(const char *filename, toplist_t *tl)
write the final output file:
int write_crossCorrBinary_toplist_to_fp(toplist_t *list, FILE *fp, UINT4 *checksum)
int read_cc_checkpoint(const char *filename, toplist_t *tl, UINT4 *counter)
tries to read a checkpoint
void sort_crossCorr_toplist(toplist_t *list)
reads a (created!) toplist from an open filepointer sets the checksum if non-NULL reads maximum maxby...
int insert_into_crossCorr_toplist(toplist_t *list, CrossCorrOutputEntry line)
Inserts an element in to the toplist either if there is space left or the element is larger than the ...
Type to hold the fields that will be kept in a "toplist" – for a directed binary search.
REAL8 argp
argument of periapse
REAL8 estSens
average template E[rho]/h0^2)^2
REAL8 evSquared
E[rho]/h0^2)^2.
REAL8 tp
time of periapse passage
REAL8 rho
Crosscorr statistic.
REAL8 asini
projected semi-major axis
Type to hold the fields that will be kept in a "toplist"
REAL8 BrakingIndex
braking index
REAL8 Rho
Crosscorr statistic.
REAL8 Delta
skyposition: latitude
REAL8 Alpha
Skyposition: longitude in equatorial coords, radians.