A subclass of simplehandler.Handler to be used with e.g., gstlal_inspiral. More...
Public Member Functions | |
| def | __init__ |
| def | do_on_message |
| Handle application-specific message types, e.g., spectrum and checkpointing messages. More... | |
| def | load_rankingstat_pdf |
| def | appsink_new_buffer |
| def | record_horizon_distance |
| def | horizgatehandler |
| A handler that intercepts h(t) gate state transitions to 0 horizon distances. More... | |
| def | checkpoint |
| Checkpoint, e.g., flush segments and triggers to disk. More... | |
| def | web_get_psd_xml |
| def | web_get_rankingstat |
| def | web_get_zerolag_rankingstatpdf |
| def | web_get_sngls_snr_threshold |
| def | web_set_sngls_snr_threshold |
| def | write_output_url |
| def | snapshot_output_url |
A subclass of simplehandler.Handler to be used with e.g., gstlal_inspiral.
Implements additional message handling for dealing with spectrum messages and checkpoints for the online analysis including periodic dumps of segment information, trigger files and background distribution statistics.
Definition at line 738 of file lloidhandler.py.
| def lloidhandler.Handler.__init__ | ( | self, | |
| mainloop, | |||
| pipeline, | |||
| coincs_document, | |||
| rankingstat, | |||
| horizon_distance_func, | |||
| gracedbwrapper, | |||
zerolag_rankingstatpdf_url = None, |
|||
rankingstatpdf_url = None, |
|||
ranking_stat_output_url = None, |
|||
ranking_stat_input_url = None, |
|||
likelihood_snapshot_interval = None, |
|||
sngls_snr_threshold = None, |
|||
tag = "", |
|||
kafka_server = "10.14.0.112:9092", |
|||
cluster = False, |
|||
cap_singles = False, |
|||
FAR_trialsfactor = 1.0, |
|||
activation_counts = None, |
|||
track_latency = False, |
|||
verbose = False |
|||
| ) |
| mainloop | The main application's event loop |
| pipeline | The gstreamer pipeline that is being controlled by this handler |
| dataclass | A Data class instance |
| tag | The tag to use for naming file snapshots, e.g. the description will be "%s_LLOID" % tag |
| verbose | Be verbose |
Definition at line 748 of file lloidhandler.py.
| def lloidhandler.Handler.checkpoint | ( | self, | |
| timestamp | |||
| ) |
Checkpoint, e.g., flush segments and triggers to disk.
| timestamp | the LIGOTimeGPS timestamp of the current buffer in order to close off open segment intervals before writing to disk |
Definition at line 1352 of file lloidhandler.py.
| def lloidhandler.Handler.do_on_message | ( | self, | |
| bus, | |||
| message | |||
| ) |
Handle application-specific message types, e.g., spectrum and checkpointing messages.
| bus | A reference to the pipeline's bus |
| message | A reference to the incoming message |
Definition at line 974 of file lloidhandler.py.
| def lloidhandler.Handler.horizgatehandler | ( | self, | |
| elem, | |||
| timestamp, | |||
| instrument_tpl | |||
| ) |
A handler that intercepts h(t) gate state transitions to 0 horizon distances.
| elem | A reference to the lal_gate element or None (only used for verbosity) |
| timestamp | A gstreamer time stamp that marks the state transition (in nanoseconds) |
| instrument | the instrument this state transtion is to be attributed to, e.g., "H1", etc.. |
| new_state | the state transition, must be either True or False |
Definition at line 1281 of file lloidhandler.py.
| def lloidhandler.Handler.record_horizon_distance | ( | self, | |
| instrument, | |||
| timestamp, | |||
| horizon_distance | |||
| ) |
timestamp can be a float or a slice with float boundaries.
Definition at line 1273 of file lloidhandler.py.
1.8.5