gstlal-inspiral  1.9.2
 All Classes Namespaces Files Functions
Public Member Functions | Public Attributes | List of all members
lloidhandler.Handler Class Reference

A subclass of simplehandler.Handler to be used with e.g., gstlal_inspiral. More...

Inheritance diagram for lloidhandler.Handler:
[legend]
Collaboration diagram for lloidhandler.Handler:
[legend]

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
 

Public Attributes

 lock
 
 coincs_document
 
 pipeline
 
 tag
 
 verbose
 
 likelihood_snapshot_interval
 
 likelihood_snapshot_timestamp
 
 cluster
 
 cap_singles
 
 FAR_trialsfactor
 
 activation_counts
 
 gracedbwrapper
 
 segmentstracker
 
 latencytracker
 
 eye_candy
 
 stream_thinca
 
 ranking_stat_input_url
 
 ranking_stat_output_url
 
 rankingstat
 
 zerolag_rankingstatpdf
 
 zerolag_rankingstatpdf_url
 
 horizon_distance_func
 
 rankingstatpdf_url
 
 psds
 
 absent_instruments
 
 rankingstatpdf
 
 fapfar
 

Detailed Description

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.

Constructor & Destructor Documentation

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 
)
Parameters
mainloopThe main application's event loop
pipelineThe gstreamer pipeline that is being controlled by this handler
dataclassA Data class instance
tagThe tag to use for naming file snapshots, e.g. the description will be "%s_LLOID" % tag
verboseBe verbose

Definition at line 748 of file lloidhandler.py.

Member Function Documentation

def lloidhandler.Handler.checkpoint (   self,
  timestamp 
)

Checkpoint, e.g., flush segments and triggers to disk.

Parameters
timestampthe 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.

Parameters
busA reference to the pipeline's bus
messageA 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.

Parameters
elemA reference to the lal_gate element or None (only used for verbosity)
timestampA gstreamer time stamp that marks the state transition (in nanoseconds)
instrumentthe instrument this state transtion is to be attributed to, e.g., "H1", etc..
new_statethe 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.


The documentation for this class was generated from the following file: