16#ifndef O2_MID_CRATEMAPPER_H
17#define O2_MID_CRATEMAPPER_H
21#include <unordered_map>
22#include <unordered_set>
39 uint8_t
deLocalBoardToRO(uint8_t deId, uint8_t columnId, uint8_t lineId)
const;
49 bool hasDirectInputY(uint8_t uniqueLocId)
const {
return mLocIdsWithDirectInputY.find(getROBoardIdRight(uniqueLocId)) != mLocIdsWithDirectInputY.end(); }
58 std::vector<uint8_t>
getROBoardIds(uint16_t gbtUniqueId = 0xFFFF)
const;
65 uint8_t getROBoardIdRight(uint8_t uniqueLocId)
const {
return uniqueLocId % 0x80; }
67 std::unordered_map<uint8_t, uint16_t> mROToDEMap;
68 std::unordered_map<uint16_t, uint8_t> mDEToROMap;
69 std::unordered_set<uint8_t> mLocIdsWithDirectInputY;
std::vector< uint8_t > getROBoardIds(uint16_t gbtUniqueId=0xFFFF) const
Returns the list of local board IDs (RO convention)
bool hasDirectInputY(uint8_t uniqueLocId) const
Checks if local board ID (RO convention) has direct input from FEE y strips.
std::unordered_set< uint8_t > getLocalBoardsWithDirectInputY() const
Gets the local boards with a direct input from FEE y strips.
uint8_t deLocalBoardToRO(uint8_t deId, uint8_t columnId, uint8_t lineId) const
Converts the LOC ID expressed in the offline convention into the readout convention.
uint16_t roLocalBoardToDE(uint8_t uniqueLocId) const
Converts the LOC ID expressed in readout convention into the LOC ID in MT11 right in the offline conv...
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...