20#ifndef HOUGHFSTATTOPLIST_H
21#define HOUGHFSTATTOPLIST_H
23#include <lal/HeapToplist.h>
24#include <lal/LALDatatypes.h>
int write_houghFstat_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 read_hfs_checkpoint(const char *filename, toplist_t *tl, UINT4 *counter)
tries to read a checkpoint
int create_houghFstat_toplist(toplist_t **list, UINT8 length)
creates a toplist with length elements, returns -1 on error (usually out of memory),...
void free_houghFstat_toplist(toplist_t **list)
frees the space occupied by the toplist
int read_houghFstat_toplist_from_fp(toplist_t *list, FILE *fp, UINT4 *checksum, UINT4 maxbytes)
reads a (created!) toplist from an open filepointer sets the checksum if non-NULL reads maximum maxby...
void sort_houghFstat_toplist(toplist_t *list)
sorts the toplist with an internal sorting function, used before finally writing it
int write_houghFstat_toplist_item_to_fp(HoughFstatOutputEntry line, FILE *fp, UINT4 *checksum)
File IO.
int write_hfs_checkpoint(const char *filename, toplist_t *tl, UINT4 counter, BOOLEAN do_sync)
new, simpler checkpointing for HierarchicalSearch
int final_write_houghFstat_toplist_to_file(toplist_t *list, const char *filename, UINT4 *checksum)
meant for the final writing of the toplist
int insert_into_houghFstat_toplist(toplist_t *list, HoughFstatOutputEntry line)
Inserts an element in to the toplist either if there is space left or the element is larger than the ...
int atomic_write_houghFstat_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 write_hfs_oputput(const char *filename, toplist_t *tl)
write the final output file:
Type to hold the fields that will be kept in a "toplist"
REAL8 AlphaBest
skyposition of best candidate: longitude
REAL4 sumTwoF
sum of 2F-values as recomputed in LV postprocessing
REAL8 Delta
skyposition: latitude
REAL8 VarianceSig
variance of significance values in hough map
REAL8 f1dot
spindown value f1dot = df/dt
REAL8 Alpha
Skyposition: longitude in equatorial coords, radians.
REAL4Vector * sumTwoFX
sum of 2F-values per detector, computed in LV postprocessing
REAL8 Freq
Frequency at maximum (?) of the cluster.
REAL8 DeltaBest
skyposition of best candidate: latitude
REAL8 MeanSig
mean of significance values in hough map
REAL8 HoughFstat
Hough significance.