4#ifndef ITkPixelCablingData_h
5#define ITkPixelCablingData_h
16#include "Identifier/Identifier.h"
20#include <unordered_map>
70 []([[maybe_unused]] uint16_t& col, uint16_t& row){row = 383 - row;},
71 []([[maybe_unused]] uint16_t& col, uint16_t& row){row = 383 - row; col += 400;},
72 []([[maybe_unused]] uint16_t& col, uint16_t& row){row = 767 - row;},
73 []([[maybe_unused]] uint16_t& col, uint16_t& row){row = 767 - row; col += 400;}
77 [](uint16_t& col, uint16_t& row){
78 row = 2 * (383 - row) + (col & 1);
83 [](uint16_t& col, uint16_t& row) {
112 std::size_t
size()
const;
std::vector< Identifier > ID
Hold mappings of ranges to condition objects.
#define CONDCONT_DEF(...)
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
ITkPixelOnlineId onlineId(const Identifier &id) const
ITkPixelCabling::ModuleInfo< ITkPixelOnlineId > onlineModuleInfo(const Identifier &id) const
Identifier offlineId(const ITkPixelOnlineId &id) const
std::unordered_map< ITkPixelOnlineId, ITkPixelCabling::ModuleInfo< Identifier > > m_online2ModuleInfoMap
void addEntryOnOff(const ITkPixelOnlineId &idOn, const Identifier &idOff)
std::unordered_map< Identifier, ITkPixelOnlineId > m_offline2OnlineMap
std::unordered_map< Identifier, ITkPixelCabling::ModuleInfo< ITkPixelOnlineId > > m_offline2ModuleInfoMap
friend std::ostream & operator<<(std::ostream &os, const ITkPixelCablingData &cabling)
stream insertion for debugging
std::unordered_map< Identifier, ITkPixelCabling::ModuleType > m_offline2ModuleType
std::unordered_map< ITkPixelOnlineId, Identifier > m_online2OfflineMap
std::unordered_map< ITkPixelOnlineId, ITkPixelCabling::ModuleType > m_online2ModuleType
ITkPixelCabling::ModuleInfo< Identifier > offlineModuleInfo(const ITkPixelOnlineId &id) const
friend std::istream & operator>>(std::istream &is, ITkPixelCablingData &cabling)
stream extraction to read value from stream into ITkPixelCablingData
void addEntryOffOn(const Identifier &idOff, const ITkPixelOnlineId &idOn)
static constexpr TransformFn nominalQuadTable[4]
static constexpr TransformFn ibTransformFn
static constexpr TransformFn iecTransformFn
static void chipToModuleTransform(const TransformType &transform, const uint8_t &chipID, uint16_t &col, uint16_t &row)
void(*)(uint16_t &, uint16_t &) TransformFn
void swap(ElementLinkVector< DOBJ > &lhs, ElementLinkVector< DOBJ > &rhs)