JANA2
|
A JHitMessage is an interface used by JTransport for streaming detector hits. More...
#include <JMessage.h>
Public Member Functions | |
virtual DetectorId | get_source_id () const =0 |
Extract the detector ID from the message payload. This is mandatory. | |
virtual Timestamp | get_timestamp () const =0 |
Extract the detector ID from the message payload. This is mandatory. | |
A JHitMessage is an interface used by JTransport for streaming detector hits.
Either we do event building ourselves using JEventBuilder, or we hydrate an existing event using JDiscreteJoin.
These methods extract the information necessary to figure out which JEvent this Hit belongs to, and also whether we've received data from all detectors needed before emitting a new Event. This works for both discrete-in-time data and continuous-in-time data.