|
pflib v3.13.3-1-gf856638
Pretty Fine HGCROC Interaction Library
|
An HcalTarget is a Target with access to the biasing chips. More...
#include <HcalTarget.h>
Public Member Functions | |
| virtual Bias & | bias (int which)=0 |
Public Member Functions inherited from pflib::Target | |
| virtual int | nrocs ()=0 |
| number of boards | |
| virtual int | necons ()=0 |
| number of econds | |
| virtual bool | have_roc (int iroc) const =0 |
| do we have a roc with this id? | |
| virtual bool | have_econ (int iecon) const =0 |
| do we have an econ with this id? | |
| virtual std::vector< int > | roc_ids () const =0 |
| get a list of the IDs we have set up | |
| virtual std::vector< int > | econ_ids () const =0 |
| get a list of the econ IDs we have set up | |
| virtual ROC & | roc (int which)=0 |
| Get a ROC interface for the given HGCROC board. | |
| virtual ECON & | econ (int which)=0 |
| get a ECON interface for the given econ board | |
| virtual void | hardResetROCs ()=0 |
| Generate a hard reset to all the HGCROC boards. | |
| virtual void | hardResetECONs ()=0 |
| generate a hard reset to all the ECON boards | |
| virtual uint32_t | getFirmwareVersion () |
| Get the firmware version. | |
| virtual void | softResetROC (int which=-1)=0 |
| Generate a soft reset to a specific HGCROC board, -1 for all. | |
| virtual void | softResetECON (int which=-1)=0 |
| Generate a soft reset to a specific ECON board, -1 for all. | |
| virtual Elinks & | elinks ()=0 |
| get the Elinks object | |
| virtual FastControl & | fc ()=0 |
| get the FastControl object | |
| virtual DAQ & | daq ()=0 |
| get the DAQ object | |
| virtual TRIG * | trig (int itrig=0) |
| get the TRIG object, if it exists (may return NULL) | |
| std::vector< std::string > | i2c_bus_names () |
| names of different I2C busses we could talk to | |
| I2C & | get_i2c_bus (const std::string &name) |
| get an I2C bus by name | |
| std::vector< std::string > | opto_link_names () const |
| names of different Optical Links we could talk to | |
| OptoLink & | get_opto_link (const std::string &name) const |
| get an OptoLink by name | |
| virtual const std::vector< std::pair< int, int > > & | getHardwareRocErxMappingDAQ ()=0 |
| Define the ROC-half -> eRx input into the ECON-D for the hardware. | |
| virtual const std::vector< std::pair< int, std::vector< int > > > & | getHardwareRocErxMappingTRG ()=0 |
| Define the ROC-TRG -> eRx input into the ECON-T for the hardware. | |
| const packing::SingleECONDRocErxMapping & | getRocErxMapping () |
| get the mapping that can be used to convert between (i_erx, link_chan) and (i_roc, chan) indices | |
| virtual void | setup_run (int irun, DaqFormat format, int contrib_id=-1)=0 |
| virtual std::vector< uint32_t > | read_event ()=0 |
| virtual bool | has_event () |
| TempParametersAllROCs | tempApplyAllROCs (const std::map< std::string, std::map< std::string, uint64_t > > ¶meters) |
| temporarily apply the same parameters to all the ROCs these parameters are unset when the returned object goes out of scope | |
| TempParametersAllROCs | tempApplyAllROCs (const std::map< int, std::map< std::string, std::map< std::string, uint64_t > > > ¶meters) |
| temporarily apply some parameters (varying depending on ROC) these parameters are unset when the returned object goes out of scope | |
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")} |
An HcalTarget is a Target with access to the biasing chips.
|
pure virtual |
Implemented in pflib::HcalBackplane.