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

Public Member Functions

 EcalSMMTargetBW (int itarget, uint8_t roc_mask, const char *dev)
 
virtual Elinkselinks () override
 get the Elinks object
 
virtual DAQdaq () override
 get the DAQ object
 
virtual FastControlfc () override
 get the FastControl object
 
virtual std::vector< uint32_t > read_event () override
 
- Public Member Functions inherited from pflib::EcalSingleModuleMotherboard
void init (lpGBT &daq_lpgbt, lpGBT &trg_lpgbt, int module_i2c_bus, int roc_mask)
 common initialization given the DAQ/TRG lpGBTs and a mask labeling which ROCs on the module are active
 
virtual const std::vector< std::pair< int, int > > & getHardwareRocErxMapping () override
 Define the ROC-half -> eRx input into the ECON-D for the hardware.
 
virtual int nrocs () override
 number of boards
 
virtual int necons () override
 number of econds
 
virtual bool have_roc (int iroc) const override
 do we have a roc with this id?
 
virtual bool have_econ (int iecon) const override
 do we have an econ with this id?
 
virtual std::vector< int > roc_ids () const override
 get a list of the IDs we have set up
 
virtual std::vector< int > econ_ids () const override
 get a list of the econ IDs we have set up
 
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 void softResetROC (int which) override
 Generate a soft reset to a specific HGCROC board, -1 for all.
 
virtual void softResetECON (int which=-1) override
 Generate a soft reset to a specific ECON board, -1 for all.
 
virtual void hardResetROCs () override
 Generate a hard reset to all the HGCROC boards.
 
virtual void hardResetECONs () override
 generate a hard reset to all the ECON boards
 
virtual void setup_run (int irun, Target::DaqFormat format, int contrib_id) override
 
- Public Member Functions inherited from pflib::Target
virtual uint32_t getFirmwareVersion ()
 Get the firmware version.
 
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
 
const packing::SingleECONDRocErxMappinggetRocErxMapping ()
 get the mapping that can be used to convert between (i_erx, link_chan) and (i_roc, chan) indices
 
virtual bool has_event ()
 

Private Attributes

logging::logger the_log_ {logging::get("EcalSMMBW")}
 
std::unique_ptr< lpGBTdaq_lpgbt_
 
std::unique_ptr< lpGBTtrig_lpgbt_
 
std::unique_ptr< pflib::bittware::OptoElinksBWelinks_
 
std::unique_ptr< bittware::HcalBackplaneBW_Capturedaq_
 
std::shared_ptr< pflib::bittware::BWFastControlfc_
 

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::EcalSingleModuleMotherboard
std::shared_ptr< EcalModulethe_module_
 handle to the hexa-module that we are connected to
 
Target::DaqFormat format_
 the format we are using for DAQ
 
int contrib_id_
 the contributor ID for DAQ
 
- 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::EcalSMMTargetBW::daq ( )
inlineoverridevirtual

get the DAQ object

Implements pflib::Target.

◆ elinks()

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

get the Elinks object

Implements pflib::Target.

◆ fc()

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

get the FastControl object

Implements pflib::Target.

◆ read_event()

virtual std::vector< uint32_t > pflib::EcalSMMTargetBW::read_event ( )
inlineoverridevirtual

Implements pflib::Target.


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