Package pylal :: Module sngl_tmplt_far
[hide private]
[frames] | no frames]

Module sngl_tmplt_far

source code

A collection of utilities that allow one to estimate a false alarm rate from triggers of a single template without the need for doing time-slides.

Functions [hide private]
 
get_newsnr(snr, chisq, chisq_dof) source code
 
get_effsnr(snr, chisq, chisq_dof) source code
 
get_snr(snr, chisq, chisq_dof) source code
 
get_snr_over_chi(snr, chisq, chisq_dof) source code
 
set_getsnr_function(connection, statistic)
Set the get_snr SQL function.
source code
 
quadrature_sum(tuple) source code
 
end_time_w_ns(end_time, end_time_ns) source code
 
compute_cumrate(hist, T) source code
 
calc_far(snrs, cn_snr, snr_bins, far_column, t_fgd, t_bkgd) source code
 
sngl_snr_hist(connection, ifo, mchirp, eta, min_snr, snr_stat=None, sngls_width=None, usertag="FULL_DATA", datatype=None, sngls_bins=None)
Creates a histogram of sngl_inspiral triggers and returns a list of counts and the associated snr bins.
source code
 
all_sngl_snr_hist(connection, mchirp, eta, all_ifos, min_snr=5.5, sngls_width=0.01, snr_stat=None)
Creates a pair of dictionaries containing single-ifo snr histograms and their associated snr bins.
source code
 
coinc_snr_hist(connection, ifos, mchirp, eta, min_snr=5.5, datatype=None, slide_id=None, combined_bins=None, snr_stat=None)
Creates a histogram of coinc_inspiral triggers and returns a list of counts in each of the snr bins.
source code
 
all_possible_coincs(sngl_ifo_hist, sngl_ifo_midbins, combined_bins, ifos)
Creates a histogram of all possible coincident events and returns a list of counts in each of the snr bins.
source code
 
coinc_time(connection, datatype, inc_ifo_list, unit, tsid=None) source code
 
get_singles_times(connection, verbose=False) source code
 
get_coinc_window(connection, ifos) source code
 
eff_bkgd_time(T_i, tau_ij, ifos, unit) source code
Function Details [hide private]

set_getsnr_function(connection, statistic)

source code 

Set the get_snr SQL function. Available options are: -- "rawsnr", "newsnr", "effsnr", "snroverchi"

all_sngl_snr_hist(connection, mchirp, eta, all_ifos, min_snr=5.5, sngls_width=0.01, snr_stat=None)

source code 

Creates a pair of dictionaries containing single-ifo snr histograms and their associated snr bins. The keys are the instruments filtered in the analysis.

all_possible_coincs(sngl_ifo_hist, sngl_ifo_midbins, combined_bins, ifos)

source code 

Creates a histogram of all possible coincident events and returns a list of counts in each of the snr bins. This is made using the single-ifo snr histograms.