pub fn master_trigger(
mt_address: &str,
mt_sender: &Sender<MasterTriggerEvent>,
moni_sender: &Sender<TofPacket>,
thread_control: Arc<Mutex<ThreadControl>>,
verbose: bool,
)
Expand description
Communications with the master trigger over Udp
The master trigger can send packets over the network. These packets contain timestamps as well as the eventid and a hitmaks to identify which LTBs have participated in the trigger. The packet format is described here
§Arguments
-
mt_address : Udp address of the MasterTriggerBoard
-
mt_sender : push retrieved MasterTriggerEvents to this channel
-
mtb_timeout_sec : reconnect to mtb when we don’t see events in mtb_timeout seconds.
-
verbose : Print “heartbeat” output