pflib v3.9.5-8-gf71a60f
Pretty Fine HGCROC Interaction Library
Loading...
Searching...
No Matches
pflib::HcalFiberless Class Reference
Inheritance diagram for pflib::HcalFiberless:
[legend]
Collaboration diagram for pflib::HcalFiberless:
[legend]

Public Member Functions

const std::vector< std::pair< int, int > > & getRocErxMapping () override
 
virtual Bias bias (int which)
 
virtual ROCroc (int which) override
 Get a ROC interface for the given HGCROC board.
 
virtual ECONecon (int which) override
 get a ECON interface for the given econ board
 
virtual GPIOgpio ()
 
virtual int nrocs () override
 number of boards
 
virtual bool have_roc (int i) const override
 do we have a roc with this id?
 
virtual std::vector< int > roc_ids () const override
 get a list of the IDs we have set up
 
virtual int necons () override
 number of econds
 
virtual bool have_econ (int iecon) const override
 do we have an econ with this id?
 
virtual std::vector< int > econ_ids () const override
 get a list of the econ IDs we have set up
 
virtual void hardResetROCs () override
 Generate a hard reset to all the HGCROC boards.
 
virtual void softResetROC (int which) override
 Generate a soft reset to a specific HGCROC board, -1 for all.
 
virtual Elinkselinks () override
 get the Elinks object
 
virtual DAQdaq () override
 get the DAQ object
 
virtual FastControlfc () override
 get the FastControl object
 
virtual void setup_run (int run, Target::DaqFormat format, int contrib_id)
 
virtual std::vector< uint32_t > read_event ()
 
- Public Member Functions inherited from pflib::Target
virtual void hardResetECONs ()
 generate a hard reset to all the ECON boards
 
virtual uint32_t getFirmwareVersion ()
 Get the firmware version.
 
virtual void softResetECON (int which=-1)
 Generate a soft reset to a specific ECON board, -1 for all.
 
std::vector< std::stringi2c_bus_names ()
 names of different I2C busses we could talk to
 
I2Cget_i2c_bus (const std::string &name)
 get an I2C bus by name
 
std::vector< std::stringopto_link_names () const
 names of different Optical Links we could talk to
 
OptoLinkget_opto_link (const std::string &name) const
 get an OptoLink by name
 
virtual bool has_event ()
 

Public Attributes

std::unique_ptr< GPIOgpio_
 
std::shared_ptr< FastControlfc_
 
std::shared_ptr< FiberlessCapturecapture_
 
std::unique_ptr< ROCroc_
 
std::unique_ptr< Biasbias_
 
int run_
 
Target::DaqFormat daqformat_
 
int ievt_
 
int l1a_
 
int contribid_
 
packing::ECONDFormatter formatter_ {true}
 

Static Public Attributes

static constexpr const char * GPO_HGCROC_RESET_HARD = "HGCROC_HARD_RSTB"
 
static constexpr const char * GPO_HGCROC_RESET_SOFT = "HGCROC_SOFT_RSTB"
 
static constexpr const char * GPO_HGCROC_RESET_I2C = "HGCROC_RSTB_I2C"
 

Additional Inherited Members

- Public Types inherited from pflib::Target
enum class  DaqFormat { SIMPLEROC = 1 , ECOND_SW_HEADERS = 2 }
 types of daq formats that we can do More...
 
- Protected Attributes inherited from pflib::Target
std::map< std::string, std::shared_ptr< I2C > > i2c_
 
std::map< std::string, std::shared_ptr< OptoLink > > opto_
 
logging::logger the_log_ {logging::get("Target")}
 

Member Function Documentation

◆ daq()

virtual DAQ & pflib::HcalFiberless::daq ( )
inlineoverridevirtual

get the DAQ object

Implements pflib::Target.

◆ econ()

virtual ECON & pflib::HcalFiberless::econ ( int which)
inlineoverridevirtual

get a ECON interface for the given econ board

Reimplemented from pflib::Target.

◆ econ_ids()

virtual std::vector< int > pflib::HcalFiberless::econ_ids ( ) const
inlineoverridevirtual

get a list of the econ IDs we have set up

Reimplemented from pflib::Target.

◆ elinks()

virtual Elinks & pflib::HcalFiberless::elinks ( )
inlineoverridevirtual

get the Elinks object

Implements pflib::Target.

◆ fc()

virtual FastControl & pflib::HcalFiberless::fc ( )
inlineoverridevirtual

get the FastControl object

Implements pflib::Target.

◆ getRocErxMapping()

const std::vector< std::pair< int, int > > & pflib::HcalFiberless::getRocErxMapping ( )
inlineoverridevirtual

Implements pflib::Target.

◆ hardResetROCs()

virtual void pflib::HcalFiberless::hardResetROCs ( )
inlineoverridevirtual

Generate a hard reset to all the HGCROC boards.

Reimplemented from pflib::Target.

◆ have_econ()

virtual bool pflib::HcalFiberless::have_econ ( int iecon) const
inlineoverridevirtual

do we have an econ with this id?

Reimplemented from pflib::Target.

◆ have_roc()

virtual bool pflib::HcalFiberless::have_roc ( int iroc) const
inlineoverridevirtual

do we have a roc with this id?

Reimplemented from pflib::Target.

◆ necons()

virtual int pflib::HcalFiberless::necons ( )
inlineoverridevirtual

number of econds

Reimplemented from pflib::Target.

◆ nrocs()

virtual int pflib::HcalFiberless::nrocs ( )
inlineoverridevirtual

number of boards

Reimplemented from pflib::Target.

◆ read_event()

std::vector< uint32_t > pflib::HcalFiberless::read_event ( )
virtual

Implements pflib::Target.

◆ roc()

virtual ROC & pflib::HcalFiberless::roc ( int which)
inlineoverridevirtual

Get a ROC interface for the given HGCROC board.

Reimplemented from pflib::Target.

◆ roc_ids()

virtual std::vector< int > pflib::HcalFiberless::roc_ids ( ) const
inlineoverridevirtual

get a list of the IDs we have set up

Reimplemented from pflib::Target.

◆ setup_run()

void pflib::HcalFiberless::setup_run ( int run,
Target::DaqFormat format,
int contrib_id )
virtual

Reimplemented from pflib::Target.

◆ softResetROC()

virtual void pflib::HcalFiberless::softResetROC ( int which)
inlineoverridevirtual

Generate a soft reset to a specific HGCROC board, -1 for all.

Reimplemented from pflib::Target.


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