LALApps 10.1.0.1-eeff03c
coh_PTF_utils.c File Reference

Prototypes

INT4 coh_PTF_data_condition (struct coh_PTF_params *params, REAL4TimeSeries **channel, REAL4FrequencySeries **invspec, RingDataSegments **segments, REAL4FFTPlan *fwdplan, REAL4FFTPlan *psdplan, REAL4FFTPlan *revplan, REAL4 **timeSlideVectorsP, struct timeval startTime)
 
REAL4TimeSeriescoh_PTF_get_data (struct coh_PTF_params *params, const char *ifoChannel, const char *dataCache, UINT4 ifoNumber)
 
void coh_PTF_setup_null_stream (struct coh_PTF_params *params, REAL4TimeSeries **channel, REAL4FrequencySeries **invspec, RingDataSegments **segments, REAL4 *Fplustrig, REAL4 *Fcrosstrig, REAL4 *timeOffsets, REAL4FFTPlan *fwdplan, REAL4FFTPlan *revplan, REAL4FFTPlan *psdplan, REAL4 *timeSlideVectors, struct timeval startTime)
 
int coh_PTF_get_null_stream (struct coh_PTF_params *params, REAL4TimeSeries *channel[LAL_NUM_IFO+1], REAL4 *Fplus, REAL4 *Fcross, REAL4 *timeOffsets)
 
REAL4FrequencySeriescoh_PTF_get_invspec (REAL4TimeSeries *channel, REAL4FFTPlan *fwdplan, REAL4FFTPlan *revplan, REAL4FFTPlan *psdplan, struct coh_PTF_params *params)
 
void coh_PTF_rescale_data (REAL4TimeSeries *channel, REAL8 rescaleFactor)
 
RingDataSegmentscoh_PTF_get_segments (REAL4TimeSeries *channel, REAL4FrequencySeries *invspec, REAL4FFTPlan *fwdplan, InterferometerNumber NumberIFO, REAL4 *timeSlideVectors, struct coh_PTF_params *params)
 
static TimeSlideSegmentMapTableXLALCreateTimeSlideSegmentMapTableRow (void)
 
static void XLALDestroyTimeSlideSegmentMapTableRow (TimeSlideSegmentMapTable *row)
 
static void XLALDestroyTimeSlideSegmentMapTable (TimeSlideSegmentMapTable *head)
 
void coh_PTF_create_time_slide_table (struct coh_PTF_params *params, INT8 *slideIDList, RingDataSegments **segments, TimeSlide **time_slide_headP, TimeSlideSegmentMapTable **time_slide_map_headP, SegmentTable **segment_table_headP, TimeSlideVectorList **longTimeSlideListP, TimeSlideVectorList **shortTimeSlideListP, REAL4 *timeSlideVectors, INT4 numSegments)
 
void coh_PTF_calculate_det_stuff (struct coh_PTF_params *params, LALDetector **detectors, REAL4 *timeOffsets, REAL4 *Fplustrig, REAL4 *Fcrosstrig, CohPTFSkyPositions *skyPoints, UINT4 skyPointNum)
 
void coh_PTF_initialize_structures (struct coh_PTF_params *params, FindChirpTemplate **fcTmpltP, FindChirpTmpltParams **fcTmpltParamsP, REAL8Array **PTFM, REAL8Array **PTFN, COMPLEX8VectorSequence **PTFqVec, REAL4FFTPlan *fwdplan)
 
void coh_PTF_initialize_time_series (struct coh_PTF_params *params, LIGOTimeGPS segStartTime, REAL8 fLower, REAL4TimeSeries **cohSNRP, REAL4TimeSeries **nullSNRP, REAL4TimeSeries **traceSNRP, REAL4TimeSeries **bankVeto, REAL4TimeSeries **autoVeto, REAL4TimeSeries **chiSquare, REAL4TimeSeries **snrComps, REAL4TimeSeries **pValues, REAL4TimeSeries **gammaBeta, UINT4 spinTemplates)
 
void coh_PTF_reset_time_series (struct coh_PTF_params *params, LIGOTimeGPS segStartTime, REAL4TimeSeries *cohSNR, REAL4TimeSeries *nullSNR, REAL4TimeSeries *traceSNR, REAL4TimeSeries **bankVeto, REAL4TimeSeries **autoVeto, REAL4TimeSeries **chiSquare, REAL4TimeSeries **snrComps, REAL4TimeSeries **pValues, REAL4TimeSeries **gammaBeta, UINT4 spinTemplates)
 
void coh_PTF_destroy_time_series (REAL4TimeSeries *cohSNR, REAL4TimeSeries *nullSNR, REAL4TimeSeries *traceSNR, REAL4TimeSeries **bankVeto, REAL4TimeSeries **autoVeto, REAL4TimeSeries **chiSquare, REAL4TimeSeries **pValues, REAL4TimeSeries **gammaBeta, REAL4TimeSeries **snrComps)
 
void coh_PTF_calculate_single_detector_filters (struct coh_PTF_params *params, FindChirpTemplate *fcTmplt, REAL4FrequencySeries **invspec, REAL8Array **PTFM, COMPLEX8VectorSequence **PTFqVec, REAL4TimeSeries **snrComps, UINT4 **snglAcceptPoints, UINT4 *snglAcceptCount, RingDataSegments **segments, COMPLEX8FFTPlan *invPlan, UINT4 spinTemplate, UINT4 segNum)
 
UINT4 coh_PTF_calculate_single_det_spin_snr (struct coh_PTF_params *params, REAL8Array **PTFM, COMPLEX8VectorSequence **PTFqVec, REAL4TimeSeries **snrComps, UINT4 ifoNumber, UINT4 *localAcceptPoints)
 
REAL4 coh_PTF_get_spin_SNR (REAL4 *v1p, REAL4 *v2p, UINT4 vecLengthTwo)
 
void coh_PTF_calculate_coherent_SNR (struct coh_PTF_params *params, REAL4 *snrData, REAL4TimeSeries **pValues, REAL4TimeSeries **snrComps, INT4 *timeOffsetPoints, COMPLEX8VectorSequence **PTFqVec, REAL4 *Fplus, REAL4 *Fcross, gsl_matrix *eigenvecs, gsl_vector *eigenvals, UINT4 segStartPoint, UINT4 segEndPoint, UINT4 vecLength, UINT4 vecLengthTwo, UINT4 spinTemplate, UINT4 **snglAcceptPoints, UINT4 *snglAcceptCount)
 
UINT4 coh_PTF_template_time_series_cluster (struct coh_PTF_params *params, REAL4TimeSeries *cohSNR, UINT4 *acceptPoints, INT4 *timeOffsetPoints, INT4 numPointCheck, UINT4 startPoint, UINT4 endPoint, UINT4 **snglAcceptPoints, UINT4 *snglAcceptCount)
 
UINT4 coh_PTF_test_veto_vals (struct coh_PTF_params *params, REAL4TimeSeries *cohSNR, REAL4TimeSeries *nullSNR, REAL4TimeSeries **bankVeto, REAL4TimeSeries **autoVeto, UINT4 currPointLoc)
 
void coh_PTF_calculate_null_stream_filters (struct coh_PTF_params *params, FindChirpTemplate *fcTmplt, REAL4FrequencySeries **invspec, REAL8Array **PTFM, COMPLEX8VectorSequence **PTFqVec, RingDataSegments **segments, COMPLEX8FFTPlan *invPlan, UINT4 spinTemplate, UINT4 segNum)
 
void coh_PTF_calculate_null_stream_norms (UINT4 vecLength, gsl_matrix *eigenvecsNull, gsl_vector *eigenvalsNull, REAL8Array *PTFM[LAL_NUM_IFO+1])
 
void coh_PTF_calculate_null_stream_snr (struct coh_PTF_params *params, REAL4TimeSeries *nullSNR, COMPLEX8VectorSequence **PTFqVec, gsl_matrix *eigenvecsNull, gsl_vector *eigenvalsNull, UINT4 spinTemplate, UINT4 vecLength, UINT4 vecLoc, UINT4 snrLoc)
 
void coh_PTF_calculate_trace_snr (struct coh_PTF_params *params, REAL4TimeSeries *traceSNR, COMPLEX8VectorSequence **PTFqVec, gsl_matrix *eigenvecs, gsl_vector *eigenvals, REAL4 *Fplus, REAL4 *Fcross, INT4 *timeOffsetPoints, UINT4 spinTemplate, UINT4 vecLength, UINT4 vecLengthTwo, UINT4 vecLoc, UINT4 snrLoc)
 
void coh_PTF_convert_time_offsets_to_points (struct coh_PTF_params *params, REAL4 *timeOffsets, INT4 *timeOffsetPoints)
 
void coh_PTF_calculate_bmatrix (struct coh_PTF_params *params, gsl_matrix *eigenvecs, gsl_vector *eigenvals, REAL4 Fplus[LAL_NUM_IFO], REAL4 Fcross[LAL_NUM_IFO], REAL8Array *PTFM[LAL_NUM_IFO+1], UINT4 vecLength, UINT4 vecLengthTwo, UINT4 PTFMlen)
 
void coh_PTF_calculate_rotated_vectors (struct coh_PTF_params *params, COMPLEX8VectorSequence **PTFqVec, REAL4 *u1, REAL4 *u2, REAL4 *Fplus, REAL4 *Fcross, INT4 *timeOffsetPoints, gsl_matrix *eigenvecs, gsl_vector *eigenvals, UINT4 numPoints, UINT4 position, UINT4 vecLength, UINT4 vecLengthTwo, UINT4 detectorNum)
 
MultiInspiralTablecoh_PTF_create_multi_event (struct coh_PTF_params *params, REAL4TimeSeries *cohSNR, FindChirpTemplate *fcTmplt, InspiralTemplate PTFTemplate, UINT8 *eventId, UINT4 spinTrigger, REAL4TimeSeries **pValues, REAL4TimeSeries **gammaBeta, REAL4TimeSeries **snrComps, REAL4TimeSeries *nullSNR, REAL4TimeSeries *traceSNR, REAL4TimeSeries **bankVeto, REAL4TimeSeries **autoVeto, REAL4TimeSeries **chiSquare, REAL8Array **PTFM, REAL4 rightAscension, REAL4 declination, INT8 slideId, INT4 *timeOffsetPoints, UINT4 currPos)
 
UINT8 coh_PTF_add_sngl_triggers (struct coh_PTF_params *params, SnglInspiralTable **eventList, SnglInspiralTable **thisEvent, REAL4TimeSeries *cohSNR, FindChirpTemplate *fcTmplt, InspiralTemplate PTFTemplate, UINT8 eventId, REAL4TimeSeries **pValues, REAL4TimeSeries **bankVeto, REAL4TimeSeries **autoVeto, REAL4TimeSeries **chiSquare, REAL8Array **PTFM, UINT4 startPoint, UINT4 endPoint)
 
SnglInspiralTablecoh_PTF_create_sngl_event (struct coh_PTF_params *params, REAL4TimeSeries *cohSNR, FindChirpTemplate *fcTmplt, InspiralTemplate PTFTemplate, UINT8 *eventId, REAL4TimeSeries **pValues, REAL4TimeSeries **bankVeto, REAL4TimeSeries **autoVeto, REAL4TimeSeries **chiSquare, REAL8Array **PTFM, UINT4 currPos)
 
UINT4 coh_PTF_accept_sngl_trig_check (struct coh_PTF_params *params, SnglInspiralTable **eventList, SnglInspiralTable thisEvent)
 
void coh_PTF_cluster_sngl_triggers (struct coh_PTF_params *params, SnglInspiralTable **eventList, SnglInspiralTable **thisEvent)
 
void coh_PTF_cleanup (struct coh_PTF_params *params, ProcessParamsTable *procpar, REAL4FFTPlan *fwdplan, REAL4FFTPlan *psdplan, REAL4FFTPlan *revplan, COMPLEX8FFTPlan *invPlan, REAL4TimeSeries **channel, REAL4FrequencySeries **invspec, RingDataSegments **segments, MultiInspiralTable *events, SnglInspiralTable *snglEvents, InspiralTemplate *PTFbankhead, FindChirpTemplate *fcTmplt, FindChirpTmpltParams *fcTmpltParams, REAL8Array **PTFM, REAL8Array **PTFN, COMPLEX8VectorSequence **PTFqVec, REAL4 *timeOffsets, REAL4 *slidTimeOffsets, REAL4 *Fplus, REAL4 *Fcross, REAL4 *Fplustrig, REAL4 *Fcrosstrig, CohPTFSkyPositions *skyPoints, TimeSlide *time_slide_head, TimeSlideVectorList *longTimeSlideList, TimeSlideVectorList *shortTimeSlideList, REAL4 *timeSlideVectors, LALDetector **detectors, INT8 *slideIDList, TimeSlideSegmentMapTable *time_slide_map_head, SegmentTable *segment_table_head)
 
REAL4FFTPlan * coh_PTF_get_fft_fwdplan (struct coh_PTF_params *params)
 
REAL4FFTPlan * coh_PTF_get_fft_psdplan (struct coh_PTF_params *params)
 
REAL4FFTPlan * coh_PTF_get_fft_revplan (struct coh_PTF_params *params)
 
COMPLEX8FFTPlan * coh_PTF_get_fft_invplan (struct coh_PTF_params *params)
 
int is_in_list (int i, const char *list)
 
SnglInspiralTableconv_insp_tmpl_to_sngl_table (InspiralTemplate *template, UINT4 eventNumber)
 
CohPTFSkyPositionscoh_PTF_generate_sky_points (struct coh_PTF_params *params)
 
CohPTFSkyPositionscoh_PTF_generate_sky_grid (struct coh_PTF_params *params)
 
CohPTFSkyPositionscoh_PTF_circular_grid (REAL4 angularResolution, REAL4 skyError)
 
CohPTFSkyPositionscoh_PTF_parse_time_delays (CohPTFSkyPositions *skyPoints, struct coh_PTF_params *params)
 
long int timeval_subtract (struct timeval *t1)
 
void timeval_print (struct timeval *tv)
 
void coh_PTF_rotate_skyPoints (CohPTFSkyPositions *skyPoints, gsl_vector *axis, REAL8 angle)
 
void coh_PTF_rotate_SkyPosition (SkyPosition *skyPoint, gsl_matrix *matrix)
 
void cross_product (gsl_vector *product, const gsl_vector *u, const gsl_vector *v)
 
void normalise (gsl_vector *vec)
 
void rotation_matrix (gsl_matrix *matrix, gsl_vector *axis, REAL8 angle)
 
CohPTFSkyPositionscoh_PTF_read_grid_from_file (const char *fname, UINT4 raColumn, UINT4 decColumn)
 
CohPTFSkyPositionscoh_PTF_two_det_sky_grid (struct coh_PTF_params *params)
 
CohPTFSkyPositionscoh_PTF_three_det_sky_grid (struct coh_PTF_params *params)
 
void REALToGSLVector (const REAL8 *input, gsl_vector *output, size_t size)
 
void findInjectionSegment (UINT4 *start, UINT4 *end, LIGOTimeGPS *epoch, struct coh_PTF_params *params)
 
UINT4 coh_PTF_trig_time_check (struct coh_PTF_params *params, LIGOTimeGPS segStartTime, LIGOTimeGPS segEndTime)
 
UINT4 checkInjectionMchirp (struct coh_PTF_params *params, InspiralTemplate *tmplt, LIGOTimeGPS *epoch)
 
void coh_PTF_set_null_input_REAL4TimeSeries (REAL4TimeSeries **timeSeries, UINT4 length)
 
void coh_PTF_set_null_input_REAL4FrequencySeries (REAL4FrequencySeries **freqSeries, UINT4 length)
 
void coh_PTF_set_null_input_RingDataSegments (RingDataSegments **segment, UINT4 length)
 
void coh_PTF_set_null_input_REAL8Array (REAL8Array **array, UINT4 length)
 
void coh_PTF_set_null_input_COMPLEX8VectorSequence (COMPLEX8VectorSequence **vecSeq, UINT4 length)
 
void coh_PTF_set_null_input_REAL4 (REAL4 **array, UINT4 length)
 
void coh_PTF_set_null_input_UINT4 (UINT4 **array, UINT4 length)
 
void coh_PTF_set_null_input_LALDetector (LALDetector **detector, UINT4 length)
 

Go to the source code of this file.

Function Documentation

◆ coh_PTF_data_condition()

INT4 coh_PTF_data_condition ( struct coh_PTF_params params,
REAL4TimeSeries **  channel,
REAL4FrequencySeries **  invspec,
RingDataSegments **  segments,
REAL4FFTPlan *  fwdplan,
REAL4FFTPlan *  psdplan,
REAL4FFTPlan *  revplan,
REAL4 **  timeSlideVectorsP,
struct timeval  startTime 
)

Definition at line 4 of file coh_PTF_utils.c.

◆ coh_PTF_get_data()

REAL4TimeSeries * coh_PTF_get_data ( struct coh_PTF_params params,
const char ifoChannel,
const char dataCache,
UINT4  ifoNumber 
)

Definition at line 86 of file coh_PTF_utils.c.

◆ coh_PTF_setup_null_stream()

void coh_PTF_setup_null_stream ( struct coh_PTF_params params,
REAL4TimeSeries **  channel,
REAL4FrequencySeries **  invspec,
RingDataSegments **  segments,
REAL4 Fplustrig,
REAL4 Fcrosstrig,
REAL4 timeOffsets,
REAL4FFTPlan *  fwdplan,
REAL4FFTPlan *  revplan,
REAL4FFTPlan *  psdplan,
REAL4 timeSlideVectors,
struct timeval  startTime 
)

Definition at line 172 of file coh_PTF_utils.c.

◆ coh_PTF_get_null_stream()

int coh_PTF_get_null_stream ( struct coh_PTF_params params,
REAL4TimeSeries channel[LAL_NUM_IFO+1],
REAL4 Fplus,
REAL4 Fcross,
REAL4 timeOffsets 
)

Definition at line 226 of file coh_PTF_utils.c.

◆ coh_PTF_get_invspec()

REAL4FrequencySeries * coh_PTF_get_invspec ( REAL4TimeSeries channel,
REAL4FFTPlan *  fwdplan,
REAL4FFTPlan *  revplan,
REAL4FFTPlan *  psdplan,
struct coh_PTF_params params 
)

Definition at line 297 of file coh_PTF_utils.c.

◆ coh_PTF_rescale_data()

void coh_PTF_rescale_data ( REAL4TimeSeries channel,
REAL8  rescaleFactor 
)

Definition at line 388 of file coh_PTF_utils.c.

◆ coh_PTF_get_segments()

RingDataSegments * coh_PTF_get_segments ( REAL4TimeSeries channel,
REAL4FrequencySeries invspec,
REAL4FFTPlan *  fwdplan,
InterferometerNumber  NumberIFO,
REAL4 timeSlideVectors,
struct coh_PTF_params params 
)

Definition at line 398 of file coh_PTF_utils.c.

◆ XLALCreateTimeSlideSegmentMapTableRow()

static TimeSlideSegmentMapTable * XLALCreateTimeSlideSegmentMapTableRow ( void  )
static

Definition at line 583 of file coh_PTF_utils.c.

◆ XLALDestroyTimeSlideSegmentMapTableRow()

static void XLALDestroyTimeSlideSegmentMapTableRow ( TimeSlideSegmentMapTable row)
static

Definition at line 603 of file coh_PTF_utils.c.

◆ XLALDestroyTimeSlideSegmentMapTable()

static void XLALDestroyTimeSlideSegmentMapTable ( TimeSlideSegmentMapTable head)
static

Definition at line 614 of file coh_PTF_utils.c.

◆ coh_PTF_create_time_slide_table()

void coh_PTF_create_time_slide_table ( struct coh_PTF_params params,
INT8 slideIDList,
RingDataSegments **  segments,
TimeSlide **  time_slide_headP,
TimeSlideSegmentMapTable **  time_slide_map_headP,
SegmentTable **  segment_table_headP,
TimeSlideVectorList **  longTimeSlideListP,
TimeSlideVectorList **  shortTimeSlideListP,
REAL4 timeSlideVectors,
INT4  numSegments 
)

Definition at line 626 of file coh_PTF_utils.c.

◆ coh_PTF_calculate_det_stuff()

void coh_PTF_calculate_det_stuff ( struct coh_PTF_params params,
LALDetector **  detectors,
REAL4 timeOffsets,
REAL4 Fplustrig,
REAL4 Fcrosstrig,
CohPTFSkyPositions skyPoints,
UINT4  skyPointNum 
)

Definition at line 947 of file coh_PTF_utils.c.

◆ coh_PTF_initialize_structures()

void coh_PTF_initialize_structures ( struct coh_PTF_params params,
FindChirpTemplate **  fcTmpltP,
FindChirpTmpltParams **  fcTmpltParamsP,
REAL8Array **  PTFM,
REAL8Array **  PTFN,
COMPLEX8VectorSequence **  PTFqVec,
REAL4FFTPlan *  fwdplan 
)

Definition at line 990 of file coh_PTF_utils.c.

◆ coh_PTF_initialize_time_series()

void coh_PTF_initialize_time_series ( struct coh_PTF_params params,
LIGOTimeGPS  segStartTime,
REAL8  fLower,
REAL4TimeSeries **  cohSNRP,
REAL4TimeSeries **  nullSNRP,
REAL4TimeSeries **  traceSNRP,
REAL4TimeSeries **  bankVeto,
REAL4TimeSeries **  autoVeto,
REAL4TimeSeries **  chiSquare,
REAL4TimeSeries **  snrComps,
REAL4TimeSeries **  pValues,
REAL4TimeSeries **  gammaBeta,
UINT4  spinTemplates 
)

Definition at line 1118 of file coh_PTF_utils.c.

◆ coh_PTF_reset_time_series()

void coh_PTF_reset_time_series ( struct coh_PTF_params params,
LIGOTimeGPS  segStartTime,
REAL4TimeSeries cohSNR,
REAL4TimeSeries nullSNR,
REAL4TimeSeries traceSNR,
REAL4TimeSeries **  bankVeto,
REAL4TimeSeries **  autoVeto,
REAL4TimeSeries **  chiSquare,
REAL4TimeSeries **  snrComps,
REAL4TimeSeries **  pValues,
REAL4TimeSeries **  gammaBeta,
UINT4  spinTemplates 
)

Definition at line 1289 of file coh_PTF_utils.c.

◆ coh_PTF_destroy_time_series()

void coh_PTF_destroy_time_series ( REAL4TimeSeries cohSNR,
REAL4TimeSeries nullSNR,
REAL4TimeSeries traceSNR,
REAL4TimeSeries **  bankVeto,
REAL4TimeSeries **  autoVeto,
REAL4TimeSeries **  chiSquare,
REAL4TimeSeries **  pValues,
REAL4TimeSeries **  gammaBeta,
REAL4TimeSeries **  snrComps 
)

Definition at line 1447 of file coh_PTF_utils.c.

◆ coh_PTF_calculate_single_detector_filters()

void coh_PTF_calculate_single_detector_filters ( struct coh_PTF_params params,
FindChirpTemplate fcTmplt,
REAL4FrequencySeries **  invspec,
REAL8Array **  PTFM,
COMPLEX8VectorSequence **  PTFqVec,
REAL4TimeSeries **  snrComps,
UINT4 **  snglAcceptPoints,
UINT4 snglAcceptCount,
RingDataSegments **  segments,
COMPLEX8FFTPlan *  invPlan,
UINT4  spinTemplate,
UINT4  segNum 
)

Definition at line 1512 of file coh_PTF_utils.c.

◆ coh_PTF_calculate_single_det_spin_snr()

UINT4 coh_PTF_calculate_single_det_spin_snr ( struct coh_PTF_params params,
REAL8Array **  PTFM,
COMPLEX8VectorSequence **  PTFqVec,
REAL4TimeSeries **  snrComps,
UINT4  ifoNumber,
UINT4 localAcceptPoints 
)

Definition at line 1589 of file coh_PTF_utils.c.

◆ coh_PTF_get_spin_SNR()

REAL4 coh_PTF_get_spin_SNR ( REAL4 v1p,
REAL4 v2p,
UINT4  vecLengthTwo 
)

Definition at line 1658 of file coh_PTF_utils.c.

◆ coh_PTF_calculate_coherent_SNR()

void coh_PTF_calculate_coherent_SNR ( struct coh_PTF_params params,
REAL4 snrData,
REAL4TimeSeries **  pValues,
REAL4TimeSeries **  snrComps,
INT4 timeOffsetPoints,
COMPLEX8VectorSequence **  PTFqVec,
REAL4 Fplus,
REAL4 Fcross,
gsl_matrix *  eigenvecs,
gsl_vector *  eigenvals,
UINT4  segStartPoint,
UINT4  segEndPoint,
UINT4  vecLength,
UINT4  vecLengthTwo,
UINT4  spinTemplate,
UINT4 **  snglAcceptPoints,
UINT4 snglAcceptCount 
)

Definition at line 1770 of file coh_PTF_utils.c.

◆ coh_PTF_template_time_series_cluster()

UINT4 coh_PTF_template_time_series_cluster ( struct coh_PTF_params params,
REAL4TimeSeries cohSNR,
UINT4 acceptPoints,
INT4 timeOffsetPoints,
INT4  numPointCheck,
UINT4  startPoint,
UINT4  endPoint,
UINT4 **  snglAcceptPoints,
UINT4 snglAcceptCount 
)

Definition at line 1970 of file coh_PTF_utils.c.

◆ coh_PTF_test_veto_vals()

UINT4 coh_PTF_test_veto_vals ( struct coh_PTF_params params,
REAL4TimeSeries cohSNR,
REAL4TimeSeries nullSNR,
REAL4TimeSeries **  bankVeto,
REAL4TimeSeries **  autoVeto,
UINT4  currPointLoc 
)

Definition at line 2077 of file coh_PTF_utils.c.

◆ coh_PTF_calculate_null_stream_filters()

void coh_PTF_calculate_null_stream_filters ( struct coh_PTF_params params,
FindChirpTemplate fcTmplt,
REAL4FrequencySeries **  invspec,
REAL8Array **  PTFM,
COMPLEX8VectorSequence **  PTFqVec,
RingDataSegments **  segments,
COMPLEX8FFTPlan *  invPlan,
UINT4  spinTemplate,
UINT4  segNum 
)

Definition at line 2155 of file coh_PTF_utils.c.

◆ coh_PTF_calculate_null_stream_norms()

void coh_PTF_calculate_null_stream_norms ( UINT4  vecLength,
gsl_matrix *  eigenvecsNull,
gsl_vector *  eigenvalsNull,
REAL8Array PTFM[LAL_NUM_IFO+1] 
)

Definition at line 2185 of file coh_PTF_utils.c.

◆ coh_PTF_calculate_null_stream_snr()

void coh_PTF_calculate_null_stream_snr ( struct coh_PTF_params params,
REAL4TimeSeries nullSNR,
COMPLEX8VectorSequence **  PTFqVec,
gsl_matrix *  eigenvecsNull,
gsl_vector *  eigenvalsNull,
UINT4  spinTemplate,
UINT4  vecLength,
UINT4  vecLoc,
UINT4  snrLoc 
)

Definition at line 2219 of file coh_PTF_utils.c.

◆ coh_PTF_calculate_trace_snr()

void coh_PTF_calculate_trace_snr ( struct coh_PTF_params params,
REAL4TimeSeries traceSNR,
COMPLEX8VectorSequence **  PTFqVec,
gsl_matrix *  eigenvecs,
gsl_vector *  eigenvals,
REAL4 Fplus,
REAL4 Fcross,
INT4 timeOffsetPoints,
UINT4  spinTemplate,
UINT4  vecLength,
UINT4  vecLengthTwo,
UINT4  vecLoc,
UINT4  snrLoc 
)

Definition at line 2275 of file coh_PTF_utils.c.

◆ coh_PTF_convert_time_offsets_to_points()

void coh_PTF_convert_time_offsets_to_points ( struct coh_PTF_params params,
REAL4 timeOffsets,
INT4 timeOffsetPoints 
)

Definition at line 2353 of file coh_PTF_utils.c.

◆ coh_PTF_calculate_bmatrix()

void coh_PTF_calculate_bmatrix ( struct coh_PTF_params params,
gsl_matrix *  eigenvecs,
gsl_vector *  eigenvals,
REAL4  Fplus[LAL_NUM_IFO],
REAL4  Fcross[LAL_NUM_IFO],
REAL8Array PTFM[LAL_NUM_IFO+1],
UINT4  vecLength,
UINT4  vecLengthTwo,
UINT4  PTFMlen 
)

Definition at line 2389 of file coh_PTF_utils.c.

◆ coh_PTF_calculate_rotated_vectors()

void coh_PTF_calculate_rotated_vectors ( struct coh_PTF_params params,
COMPLEX8VectorSequence **  PTFqVec,
REAL4 u1,
REAL4 u2,
REAL4 Fplus,
REAL4 Fcross,
INT4 timeOffsetPoints,
gsl_matrix *  eigenvecs,
gsl_vector *  eigenvals,
UINT4  numPoints,
UINT4  position,
UINT4  vecLength,
UINT4  vecLengthTwo,
UINT4  detectorNum 
)

Definition at line 2474 of file coh_PTF_utils.c.

◆ coh_PTF_create_multi_event()

MultiInspiralTable * coh_PTF_create_multi_event ( struct coh_PTF_params params,
REAL4TimeSeries cohSNR,
FindChirpTemplate fcTmplt,
InspiralTemplate  PTFTemplate,
UINT8 eventId,
UINT4  spinTrigger,
REAL4TimeSeries **  pValues,
REAL4TimeSeries **  gammaBeta,
REAL4TimeSeries **  snrComps,
REAL4TimeSeries nullSNR,
REAL4TimeSeries traceSNR,
REAL4TimeSeries **  bankVeto,
REAL4TimeSeries **  autoVeto,
REAL4TimeSeries **  chiSquare,
REAL8Array **  PTFM,
REAL4  rightAscension,
REAL4  declination,
INT8  slideId,
INT4 timeOffsetPoints,
UINT4  currPos 
)

Definition at line 2571 of file coh_PTF_utils.c.

◆ coh_PTF_add_sngl_triggers()

UINT8 coh_PTF_add_sngl_triggers ( struct coh_PTF_params params,
SnglInspiralTable **  eventList,
SnglInspiralTable **  thisEvent,
REAL4TimeSeries cohSNR,
FindChirpTemplate fcTmplt,
InspiralTemplate  PTFTemplate,
UINT8  eventId,
REAL4TimeSeries **  pValues,
REAL4TimeSeries **  bankVeto,
REAL4TimeSeries **  autoVeto,
REAL4TimeSeries **  chiSquare,
REAL8Array **  PTFM,
UINT4  startPoint,
UINT4  endPoint 
)

Definition at line 2942 of file coh_PTF_utils.c.

◆ coh_PTF_create_sngl_event()

SnglInspiralTable * coh_PTF_create_sngl_event ( struct coh_PTF_params params,
REAL4TimeSeries cohSNR,
FindChirpTemplate fcTmplt,
InspiralTemplate  PTFTemplate,
UINT8 eventId,
REAL4TimeSeries **  pValues,
REAL4TimeSeries **  bankVeto,
REAL4TimeSeries **  autoVeto,
REAL4TimeSeries **  chiSquare,
REAL8Array **  PTFM,
UINT4  currPos 
)

Definition at line 3008 of file coh_PTF_utils.c.

◆ coh_PTF_accept_sngl_trig_check()

UINT4 coh_PTF_accept_sngl_trig_check ( struct coh_PTF_params params,
SnglInspiralTable **  eventList,
SnglInspiralTable  thisEvent 
)

Definition at line 3112 of file coh_PTF_utils.c.

◆ coh_PTF_cluster_sngl_triggers()

void coh_PTF_cluster_sngl_triggers ( struct coh_PTF_params params,
SnglInspiralTable **  eventList,
SnglInspiralTable **  thisEvent 
)

Definition at line 3153 of file coh_PTF_utils.c.

◆ coh_PTF_cleanup()

void coh_PTF_cleanup ( struct coh_PTF_params params,
ProcessParamsTable procpar,
REAL4FFTPlan *  fwdplan,
REAL4FFTPlan *  psdplan,
REAL4FFTPlan *  revplan,
COMPLEX8FFTPlan *  invPlan,
REAL4TimeSeries **  channel,
REAL4FrequencySeries **  invspec,
RingDataSegments **  segments,
MultiInspiralTable events,
SnglInspiralTable snglEvents,
InspiralTemplate PTFbankhead,
FindChirpTemplate fcTmplt,
FindChirpTmpltParams fcTmpltParams,
REAL8Array **  PTFM,
REAL8Array **  PTFN,
COMPLEX8VectorSequence **  PTFqVec,
REAL4 timeOffsets,
REAL4 slidTimeOffsets,
REAL4 Fplus,
REAL4 Fcross,
REAL4 Fplustrig,
REAL4 Fcrosstrig,
CohPTFSkyPositions skyPoints,
TimeSlide time_slide_head,
TimeSlideVectorList longTimeSlideList,
TimeSlideVectorList shortTimeSlideList,
REAL4 timeSlideVectors,
LALDetector **  detectors,
INT8 slideIDList,
TimeSlideSegmentMapTable time_slide_map_head,
SegmentTable segment_table_head 
)

Definition at line 3232 of file coh_PTF_utils.c.

◆ coh_PTF_get_fft_fwdplan()

REAL4FFTPlan * coh_PTF_get_fft_fwdplan ( struct coh_PTF_params params)

Definition at line 3417 of file coh_PTF_utils.c.

◆ coh_PTF_get_fft_psdplan()

REAL4FFTPlan * coh_PTF_get_fft_psdplan ( struct coh_PTF_params params)

Definition at line 3430 of file coh_PTF_utils.c.

◆ coh_PTF_get_fft_revplan()

REAL4FFTPlan * coh_PTF_get_fft_revplan ( struct coh_PTF_params params)

Definition at line 3444 of file coh_PTF_utils.c.

◆ coh_PTF_get_fft_invplan()

COMPLEX8FFTPlan * coh_PTF_get_fft_invplan ( struct coh_PTF_params params)

Definition at line 3457 of file coh_PTF_utils.c.

◆ is_in_list()

int is_in_list ( int  i,
const char list 
)

Definition at line 3472 of file coh_PTF_utils.c.

◆ conv_insp_tmpl_to_sngl_table()

SnglInspiralTable * conv_insp_tmpl_to_sngl_table ( InspiralTemplate template,
UINT4  eventNumber 
)

Definition at line 3516 of file coh_PTF_utils.c.

◆ coh_PTF_generate_sky_points()

CohPTFSkyPositions * coh_PTF_generate_sky_points ( struct coh_PTF_params params)

Definition at line 3545 of file coh_PTF_utils.c.

◆ coh_PTF_generate_sky_grid()

CohPTFSkyPositions * coh_PTF_generate_sky_grid ( struct coh_PTF_params params)

Definition at line 3614 of file coh_PTF_utils.c.

◆ coh_PTF_circular_grid()

CohPTFSkyPositions * coh_PTF_circular_grid ( REAL4  angularResolution,
REAL4  skyError 
)

Definition at line 3759 of file coh_PTF_utils.c.

◆ coh_PTF_parse_time_delays()

CohPTFSkyPositions * coh_PTF_parse_time_delays ( CohPTFSkyPositions skyPoints,
struct coh_PTF_params params 
)

Definition at line 3815 of file coh_PTF_utils.c.

◆ timeval_subtract()

long int timeval_subtract ( struct timeval *  t1)

Definition at line 3907 of file coh_PTF_utils.c.

◆ timeval_print()

void timeval_print ( struct timeval *  tv)

Definition at line 3916 of file coh_PTF_utils.c.

◆ coh_PTF_rotate_skyPoints()

void coh_PTF_rotate_skyPoints ( CohPTFSkyPositions skyPoints,
gsl_vector *  axis,
REAL8  angle 
)

Definition at line 3933 of file coh_PTF_utils.c.

◆ coh_PTF_rotate_SkyPosition()

void coh_PTF_rotate_SkyPosition ( SkyPosition skyPoint,
gsl_matrix *  matrix 
)

Definition at line 3954 of file coh_PTF_utils.c.

◆ cross_product()

void cross_product ( gsl_vector *  product,
const gsl_vector *  u,
const gsl_vector *  v 
)

Definition at line 3990 of file coh_PTF_utils.c.

◆ normalise()

void normalise ( gsl_vector *  vec)

Definition at line 4010 of file coh_PTF_utils.c.

◆ rotation_matrix()

void rotation_matrix ( gsl_matrix *  matrix,
gsl_vector *  axis,
REAL8  angle 
)

Definition at line 4022 of file coh_PTF_utils.c.

◆ coh_PTF_read_grid_from_file()

CohPTFSkyPositions * coh_PTF_read_grid_from_file ( const char fname,
UINT4  raColumn,
UINT4  decColumn 
)

Definition at line 4058 of file coh_PTF_utils.c.

◆ coh_PTF_two_det_sky_grid()

CohPTFSkyPositions * coh_PTF_two_det_sky_grid ( struct coh_PTF_params params)

Definition at line 4127 of file coh_PTF_utils.c.

◆ coh_PTF_three_det_sky_grid()

CohPTFSkyPositions * coh_PTF_three_det_sky_grid ( struct coh_PTF_params params)

Definition at line 4233 of file coh_PTF_utils.c.

◆ REALToGSLVector()

void REALToGSLVector ( const REAL8 input,
gsl_vector *  output,
size_t  size 
)

Definition at line 4392 of file coh_PTF_utils.c.

◆ findInjectionSegment()

void findInjectionSegment ( UINT4 start,
UINT4 end,
LIGOTimeGPS epoch,
struct coh_PTF_params params 
)

Definition at line 4405 of file coh_PTF_utils.c.

◆ coh_PTF_trig_time_check()

UINT4 coh_PTF_trig_time_check ( struct coh_PTF_params params,
LIGOTimeGPS  segStartTime,
LIGOTimeGPS  segEndTime 
)

Definition at line 4470 of file coh_PTF_utils.c.

◆ checkInjectionMchirp()

UINT4 checkInjectionMchirp ( struct coh_PTF_params params,
InspiralTemplate tmplt,
LIGOTimeGPS epoch 
)

Definition at line 4498 of file coh_PTF_utils.c.

◆ coh_PTF_set_null_input_REAL4TimeSeries()

void coh_PTF_set_null_input_REAL4TimeSeries ( REAL4TimeSeries **  timeSeries,
UINT4  length 
)

Definition at line 4564 of file coh_PTF_utils.c.

◆ coh_PTF_set_null_input_REAL4FrequencySeries()

void coh_PTF_set_null_input_REAL4FrequencySeries ( REAL4FrequencySeries **  freqSeries,
UINT4  length 
)

Definition at line 4576 of file coh_PTF_utils.c.

◆ coh_PTF_set_null_input_RingDataSegments()

void coh_PTF_set_null_input_RingDataSegments ( RingDataSegments **  segment,
UINT4  length 
)

Definition at line 4588 of file coh_PTF_utils.c.

◆ coh_PTF_set_null_input_REAL8Array()

void coh_PTF_set_null_input_REAL8Array ( REAL8Array **  array,
UINT4  length 
)

Definition at line 4600 of file coh_PTF_utils.c.

◆ coh_PTF_set_null_input_COMPLEX8VectorSequence()

void coh_PTF_set_null_input_COMPLEX8VectorSequence ( COMPLEX8VectorSequence **  vecSeq,
UINT4  length 
)

Definition at line 4612 of file coh_PTF_utils.c.

◆ coh_PTF_set_null_input_REAL4()

void coh_PTF_set_null_input_REAL4 ( REAL4 **  array,
UINT4  length 
)

Definition at line 4624 of file coh_PTF_utils.c.

◆ coh_PTF_set_null_input_UINT4()

void coh_PTF_set_null_input_UINT4 ( UINT4 **  array,
UINT4  length 
)

Definition at line 4636 of file coh_PTF_utils.c.

◆ coh_PTF_set_null_input_LALDetector()

void coh_PTF_set_null_input_LALDetector ( LALDetector **  detector,
UINT4  length 
)

Definition at line 4648 of file coh_PTF_utils.c.