pflib v3.9.0-rc3-11-g2537d8f
Pretty Fine HGCROC Interaction Library
Loading...
Searching...
No Matches
pflib::Backend Class Referenceabstract

Abstract interface for various backend manipulations. More...

#include <Backend.h>

Inheritance diagram for pflib::Backend:
[legend]

Public Member Functions

virtual void fc_sendL1A ()=0
 send a single L1A
 
virtual void fc_linkreset ()=0
 send a link reset
 
virtual void fc_bufferclear ()=0
 send a single L1A
 
virtual void fc_calibpulse ()=0
 send a single calib pulse
 
virtual void fc_clear_run ()
 reset counters for a new run
 
virtual void fc_setup_calib (int pulse_len, int l1a_offset)=0
 calib pulse setup
 
virtual void fc_get_setup_calib (int &pulse_len, int &l1a_offset)=0
 calib pulse setup
 
virtual void fc_read_counters (int &spill_count, int &header_occ, int &event_count, int &vetoed_counter)
 read counters from the FC side
 
virtual void fc_enables_read (bool &ext_l1a, bool &ext_spill, bool &timer_l1a)
 check the enables for various trigger/spill sources
 
virtual void fc_enables (bool ext_l1a, bool ext_spill, bool timer_l1a)
 set the enables for various trigger/spill sources
 
virtual int fc_timer_setup_read ()
 get the period in us for the timer trigger
 
virtual void fc_timer_setup (int usdelay)
 set the period in us for the timer trigger
 
virtual void daq_reset ()=0
 reset the daq buffers
 
virtual void daq_advance_ptr ()=0
 advance the daq pointer along buffer
 
virtual void daq_status (bool &full, bool &empty, int &nevents, int &next_event_size)=0
 readout the daq status into the passed variables
 
virtual std::vector< uint32_t > daq_read_event ()=0
 read the aquired event and return it
 
virtual void daq_setup_event_tag (int run, int day, int month, int hour, int min)
 Set the event tagging information.
 

Detailed Description

Abstract interface for various backend manipulations.

All backend communication methods need to implement these functions.

Member Function Documentation

◆ daq_advance_ptr()

virtual void pflib::Backend::daq_advance_ptr ( )
pure virtual

advance the daq pointer along buffer

Implemented in pflib::rogue::RogueWishboneInterface.

◆ daq_read_event()

virtual std::vector< uint32_t > pflib::Backend::daq_read_event ( )
pure virtual

read the aquired event and return it

Implemented in pflib::rogue::RogueWishboneInterface.

◆ daq_reset()

virtual void pflib::Backend::daq_reset ( )
pure virtual

reset the daq buffers

Implemented in pflib::rogue::RogueWishboneInterface.

◆ daq_setup_event_tag()

void pflib::Backend::daq_setup_event_tag ( int run,
int day,
int month,
int hour,
int min )
virtual

Set the event tagging information.

Reimplemented in pflib::rogue::RogueWishboneInterface.

◆ daq_status()

virtual void pflib::Backend::daq_status ( bool & full,
bool & empty,
int & nevents,
int & next_event_size )
pure virtual

readout the daq status into the passed variables

Implemented in pflib::rogue::RogueWishboneInterface.

◆ fc_bufferclear()

virtual void pflib::Backend::fc_bufferclear ( )
pure virtual

send a single L1A

Implemented in pflib::rogue::RogueWishboneInterface.

◆ fc_calibpulse()

virtual void pflib::Backend::fc_calibpulse ( )
pure virtual

send a single calib pulse

Implemented in pflib::rogue::RogueWishboneInterface.

◆ fc_clear_run()

virtual void pflib::Backend::fc_clear_run ( )
inlinevirtual

reset counters for a new run

Reimplemented in pflib::rogue::RogueWishboneInterface.

◆ fc_enables()

virtual void pflib::Backend::fc_enables ( bool ext_l1a,
bool ext_spill,
bool timer_l1a )
inlinevirtual

set the enables for various trigger/spill sources

Reimplemented in pflib::rogue::RogueWishboneInterface.

◆ fc_enables_read()

virtual void pflib::Backend::fc_enables_read ( bool & ext_l1a,
bool & ext_spill,
bool & timer_l1a )
inlinevirtual

check the enables for various trigger/spill sources

Reimplemented in pflib::rogue::RogueWishboneInterface.

◆ fc_get_setup_calib()

virtual void pflib::Backend::fc_get_setup_calib ( int & pulse_len,
int & l1a_offset )
pure virtual

calib pulse setup

Implemented in pflib::rogue::RogueWishboneInterface.

◆ fc_linkreset()

virtual void pflib::Backend::fc_linkreset ( )
pure virtual

send a link reset

Implemented in pflib::rogue::RogueWishboneInterface.

◆ fc_read_counters()

virtual void pflib::Backend::fc_read_counters ( int & spill_count,
int & header_occ,
int & event_count,
int & vetoed_counter )
inlinevirtual

read counters from the FC side

Reimplemented in pflib::rogue::RogueWishboneInterface.

◆ fc_sendL1A()

virtual void pflib::Backend::fc_sendL1A ( )
pure virtual

send a single L1A

Implemented in pflib::rogue::RogueWishboneInterface.

◆ fc_setup_calib()

virtual void pflib::Backend::fc_setup_calib ( int pulse_len,
int l1a_offset )
pure virtual

calib pulse setup

Implemented in pflib::rogue::RogueWishboneInterface.

◆ fc_timer_setup()

virtual void pflib::Backend::fc_timer_setup ( int usdelay)
inlinevirtual

set the period in us for the timer trigger

Reimplemented in pflib::rogue::RogueWishboneInterface.

◆ fc_timer_setup_read()

virtual int pflib::Backend::fc_timer_setup_read ( )
inlinevirtual

get the period in us for the timer trigger

Reimplemented in pflib::rogue::RogueWishboneInterface.


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