Psyllid  v1.12.4
Project 8 Data Acquisisition Software
Public Member Functions | Private Attributes | List of all members
roach_time_monitor Class Reference

A consumer to check the continuity of the time-packet stream from a ROACH. More...

#include <tf_roach_monitor.hh>

Inheritance diagram for roach_time_monitor:
Inheritance graph

Public Member Functions

 roach_time_monitor ()
 
virtual ~roach_time_monitor ()
 
virtual void initialize ()
 
virtual void execute (midge::diptera *a_midge=nullptr)
 
virtual void finalize ()
 

Private Attributes

uint64_t f_last_pkt_in_batch
 
uint64_t f_packet_count
 
uint64_t f_acquisition_count
 

Detailed Description

A consumer to check the continuity of the time-packet stream from a ROACH.

Author
N. S. Oblath

Notifies if the current pkt_in_batch is not the last pkt_in_batch + 1.

A missed packet that is not recovered will produce one notification (e.g. 1 2 [4] 5 6 ).

An out-of-order packet will produce three notifications (e.g. 1 2 [4] [3] [5] 6 7 ).

Parameter setting is not thread-safe. Executing is thread-safe.

Node type: "roach-time-monitor"

Available configuration values: (none)

Output Streams: (none)

Definition at line 41 of file tf_roach_monitor.hh.

Constructor & Destructor Documentation

◆ roach_time_monitor()

Definition at line 31 of file tf_roach_monitor.cc.

◆ ~roach_time_monitor()

~roach_time_monitor ( )
virtual

Definition at line 38 of file tf_roach_monitor.cc.

Member Function Documentation

◆ execute()

void execute ( midge::diptera *  a_midge = nullptr)
virtual

Definition at line 48 of file tf_roach_monitor.cc.

◆ finalize()

void finalize ( )
virtual

Definition at line 115 of file tf_roach_monitor.cc.

◆ initialize()

void initialize ( )
virtual

Definition at line 42 of file tf_roach_monitor.cc.

Member Data Documentation

◆ f_acquisition_count

uint64_t f_acquisition_count
private

Definition at line 58 of file tf_roach_monitor.hh.

◆ f_last_pkt_in_batch

uint64_t f_last_pkt_in_batch
private

Definition at line 56 of file tf_roach_monitor.hh.

◆ f_packet_count

uint64_t f_packet_count
private

Definition at line 57 of file tf_roach_monitor.hh.


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