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

A producer to read time-domain slices from an egg file and place them in time data buffers. More...

#include <egg3_reader.hh>

Inheritance diagram for egg3_reader:
Inheritance graph

Public Member Functions

 egg3_reader ()
 
virtual ~egg3_reader ()
 
 mv_accessible (const monarch3::Monarch3 *, egg)
 
 mv_accessible (std::string, egg_path)
 
 mv_accessible (uint64_t, read_n_records)
 
 mv_accessible (bool, repeat_egg)
 
 mv_accessible (uint64_t, length)
 
 mv_accessible (bool, start_paused)
 
virtual void initialize ()
 
virtual void execute (midge::diptera *a_midge=nullptr)
 
virtual void finalize ()
 
- Public Member Functions inherited from control_access
 control_access ()
 
virtual ~control_access ()
 

Private Member Functions

bool read_slice (time_data *t_data, const monarch3::M3Stream *t_stream, const monarch3::M3Record *t_record)
 
void cleanup_file ()
 

Private Attributes

bool f_paused
 
uint32_t f_record_length
 
uint64_t f_pkt_id_offset
 

Additional Inherited Members

- Public Types inherited from control_access
typedef std::shared_ptr< daq_controldc_ptr_t
 
- Static Public Member Functions inherited from control_access
static void set_daq_control (std::weak_ptr< daq_control > a_daq_control)
 
- Protected Member Functions inherited from control_access
dc_ptr_t use_daq_control ()
 
bool daq_control_expired ()
 
- Static Protected Attributes inherited from control_access
static std::weak_ptr< daq_controlf_daq_control = std::weak_ptr< daq_control >()
 

Detailed Description

A producer to read time-domain slices from an egg file and place them in time data buffers.

Author
B. H. LaRoque

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

Node type: "egg3-reader"

Available configuration values:

Output Streams:

Definition at line 51 of file egg3_reader.hh.

Constructor & Destructor Documentation

◆ egg3_reader()

Definition at line 29 of file egg3_reader.cc.

◆ ~egg3_reader()

~egg3_reader ( )
virtual

Definition at line 42 of file egg3_reader.cc.

Member Function Documentation

◆ cleanup_file()

void cleanup_file ( )
private

Definition at line 185 of file egg3_reader.cc.

◆ execute()

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

Definition at line 66 of file egg3_reader.cc.

◆ finalize()

void finalize ( )
virtual

Definition at line 141 of file egg3_reader.cc.

◆ initialize()

void initialize ( )
virtual

Definition at line 47 of file egg3_reader.cc.

◆ mv_accessible() [1/6]

mv_accessible ( const monarch3::Monarch3 *  ,
egg   
)

◆ mv_accessible() [2/6]

mv_accessible ( std::string  ,
egg_path   
)

◆ mv_accessible() [3/6]

mv_accessible ( uint64_t  ,
read_n_records   
)

◆ mv_accessible() [4/6]

mv_accessible ( bool  ,
repeat_egg   
)

◆ mv_accessible() [5/6]

mv_accessible ( uint64_t  ,
length   
)

◆ mv_accessible() [6/6]

mv_accessible ( bool  ,
start_paused   
)

◆ read_slice()

bool read_slice ( time_data t_data,
const monarch3::M3Stream *  t_stream,
const monarch3::M3Record *  t_record 
)
private

Definition at line 150 of file egg3_reader.cc.

Member Data Documentation

◆ f_paused

bool f_paused
private

Definition at line 66 of file egg3_reader.hh.

◆ f_pkt_id_offset

uint64_t f_pkt_id_offset
private

Definition at line 68 of file egg3_reader.hh.

◆ f_record_length

uint32_t f_record_length
private

Definition at line 67 of file egg3_reader.hh.


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