Utility class for fast lookup of board data by fragment ID. More...
#include <PMTDecoderUtils.h>
Classes | |
| struct | BoardInfo_t |
| Record of information about a readout board. More... | |
Public Types | |
| using | FragmentID_t = unsigned int |
| using | Database_t = std::vector< BoardInfo_t > |
Public Member Functions | |
| BoardInfoLookup (Database_t &&database) | |
| unsigned int | nBoardInfo () const |
| Returns the number of registered boards. More... | |
| auto const & | allBoardInfo () const |
| Returns an object that can be iterated for all available information. More... | |
| BoardInfo_t const * | findBoardInfo (FragmentID_t fragmentID) const |
Returns a pointer to the information for board with fragmentID. More... | |
| BoardSetup_t const * | findBoardSetup (FragmentID_t fragmentID) const |
Returns a pointer to the setup information for board with fragmentID. More... | |
| sbn::V1730Configuration const * | findBoardConfig (FragmentID_t fragmentID) const |
Returns a pointer to the configuration of board with fragmentID. More... | |
Static Private Member Functions | |
| static Database_t | sortDatabase (Database_t &&db) |
| Sorts the database structure in the argument and returns it. More... | |
Private Attributes | |
| Database_t const | fDatabase |
Utility class for fast lookup of board data by fragment ID.
Definition at line 144 of file PMTDecoderUtils.h.
| using daq::details::BoardInfoLookup::Database_t = std::vector<BoardInfo_t> |
Definition at line 160 of file PMTDecoderUtils.h.
| using daq::details::BoardInfoLookup::FragmentID_t = unsigned int |
Definition at line 147 of file PMTDecoderUtils.h.
|
inlineexplicit |
Definition at line 163 of file PMTDecoderUtils.h.
|
inline |
Returns an object that can be iterated for all available information.
Definition at line 171 of file PMTDecoderUtils.h.
|
inline |
Returns a pointer to the configuration of board with fragmentID.
Definition at line 184 of file PMTDecoderUtils.h.
|
inline |
Returns a pointer to the information for board with fragmentID.
Definition at line 207 of file PMTDecoderUtils.h.
|
inline |
Returns a pointer to the setup information for board with fragmentID.
Definition at line 177 of file PMTDecoderUtils.h.
|
inline |
|
inlinestaticprivate |
Sorts the database structure in the argument and returns it.
Definition at line 196 of file PMTDecoderUtils.h.
|
private |
Definition at line 193 of file PMTDecoderUtils.h.
1.8.5