Data Structures | |
class | InstrumentBins |
Example: More... | |
class | LnLRDensity |
class | StringCoincParamsDistributions |
Functions | |
def | triangulators (timing_uncertainties) |
Return a dictionary of snglcoinc.TOATriangulator objects initialized for a variety of instrument combinations. More... | |
def | load_likelihood_data (filenames, verbose=False) |
def | time_slides_livetime (seglists, time_slides, min_instruments, verbose=False, clip=None) |
seglists is a segmentlistdict of times when each of a set of instruments were on, time_slides is a sequence of instrument-->offset dictionaries, each vector of offsets in the sequence is applied to the segmentlists and the total time during which at least min_instruments were on is summed and returned. More... | |
def | time_slides_livetime_for_instrument_combo (seglists, time_slides, instruments, verbose=False, clip=None) |
like time_slides_livetime() except computes the time for which exactly the instruments given by the sequence instruments were on (and nothing else). More... | |
def | create_recovered_ln_likelihood_ratio_table (connection, coinc_def_id) |
Create a temporary table named "recovered_ln_likelihood_ratio" containing two columns: "simulation_id", the simulation_id of an injection, and "ln_likelihood_ratio", the highest log likelihood ratio at which that injection was recovered by a coincidence of type coinc_def_id. More... | |
def | create_sim_burst_best_string_sngl_map (connection, coinc_def_id) |
Construct a sim_burst --> best matching coinc_event mapping. More... | |
def | create_sim_burst_best_string_coinc_map (connection, coinc_def_id) |
Construct a sim_burst --> best matching coinc_event mapping for string cusp injections and coincs. More... | |
Variables | |
NegInf = float("-inf") | |
def lalburst.stringutils.triangulators | ( | timing_uncertainties | ) |
Return a dictionary of snglcoinc.TOATriangulator objects initialized for a variety of instrument combinations.
timing_uncertainties is a dictionary of instrument->$\Delta t$ pairs. The return value is a dictionary of (instrument tuple)->TOATrangulator mappings. The instrument names in each tuple are sorted in alphabetical order, and the triangulators are constructed with the instruments in that order (the the documentation for snglcoinc.TOATriangulator for more information).
Example:
x = triangulators({"H1": 0.005, "L1": 0.005, "V1": 0.005})
constructs a dictionary of triangulators for every combination of two or more instruments that can be constructed from those three.
The program lalapps_string_plot_binj can be used to measure the timing uncertainties for the instruments in a search.
Definition at line 88 of file stringutils.py.
def lalburst.stringutils.load_likelihood_data | ( | filenames, | |
verbose = False |
|||
) |
Definition at line 396 of file stringutils.py.
def lalburst.stringutils.time_slides_livetime | ( | seglists, | |
time_slides, | |||
min_instruments, | |||
verbose = False , |
|||
clip = None |
|||
) |
seglists is a segmentlistdict of times when each of a set of instruments were on, time_slides is a sequence of instrument-->offset dictionaries, each vector of offsets in the sequence is applied to the segmentlists and the total time during which at least min_instruments were on is summed and returned.
If clip is not None, after each offset vector is applied to seglists the result is intersected with clip before computing the livetime. If verbose is True then progress reports are printed to stderr.
Definition at line 436 of file stringutils.py.
def lalburst.stringutils.time_slides_livetime_for_instrument_combo | ( | seglists, | |
time_slides, | |||
instruments, | |||
verbose = False , |
|||
clip = None |
|||
) |
like time_slides_livetime() except computes the time for which exactly the instruments given by the sequence instruments were on (and nothing else).
Definition at line 460 of file stringutils.py.
def lalburst.stringutils.create_recovered_ln_likelihood_ratio_table | ( | connection, | |
coinc_def_id | |||
) |
Create a temporary table named "recovered_ln_likelihood_ratio" containing two columns: "simulation_id", the simulation_id of an injection, and "ln_likelihood_ratio", the highest log likelihood ratio at which that injection was recovered by a coincidence of type coinc_def_id.
Definition at line 499 of file stringutils.py.
def lalburst.stringutils.create_sim_burst_best_string_sngl_map | ( | connection, | |
coinc_def_id | |||
) |
Construct a sim_burst --> best matching coinc_event mapping.
Definition at line 534 of file stringutils.py.
def lalburst.stringutils.create_sim_burst_best_string_coinc_map | ( | connection, | |
coinc_def_id | |||
) |
Construct a sim_burst --> best matching coinc_event mapping for string cusp injections and coincs.
Definition at line 575 of file stringutils.py.
lalburst.stringutils.NegInf = float("-inf") |
Definition at line 30 of file stringutils.py.