24#ifndef CBMTRDDETECTORID_H
25#define CBMTRDDETECTORID_H 1
44 static uint32_t
GetAddress(int32_t layerId, int32_t moduleId, int32_t sectorId, int32_t rowId, int32_t columnId)
137 static uint32_t
SetLayerId(uint32_t address, int32_t newLayerId)
149 static uint32_t
SetModuleId(uint32_t address, int32_t newModuleId)
161 static uint32_t
SetSectorId(uint32_t address, int32_t newSectorId)
173 static uint32_t
SetRowId(uint32_t address, int32_t newRowId)
185 static uint32_t
SetColumnId(uint32_t address, int32_t newColumnId)
XPU_D constexpr auto ToIntegralType(T enumerator) -> typename std::underlying_type< T >::type
@ kTrd
Transition Radiation Detector.
static uint32_t SetRowId(uint32_t address, int32_t newRowId)
Set new row ID for address.
static uint32_t GetModuleId(uint32_t address)
Return module ID from address.
static uint32_t GetSectorId(uint32_t address)
Return sector ID from address.
static uint32_t SetColumnId(uint32_t address, int32_t newColumnId)
Set new column ID for address.
static uint32_t SetModuleId(uint32_t address, int32_t newModuleId)
Set new module ID for address.
static uint32_t GetColumnId(uint32_t address)
Return column ID from address.
static const int32_t fgkSystemIdLength
static const int32_t fgkModuleAddressStart
static const int32_t fgkColumnIdShift
static const int32_t fgkRowIdLength
static uint32_t GetLayerId(uint32_t address)
Return layer ID from address.
static const int32_t fgkSystemIdShift
static const int32_t fgkColumnIdLength
static uint32_t SetSectorId(uint32_t address, int32_t newSectorId)
Set new sector ID for address.
static uint32_t SetLayerId(uint32_t address, int32_t newLayerId)
Set new layer ID for address.
static const int32_t fgkModuleIdShift
static const int32_t fgkRowIdShift
static uint32_t GetModuleAddress(uint32_t address)
Return unique module ID from address.
static const int32_t fgkSectorAddressLength
static const int32_t fgkModuleIdLength
static const int32_t fgkModuleAddressLength
static const int32_t fgkSectorIdLength
static uint32_t GetAddress(int32_t layerId, int32_t moduleId, int32_t sectorId, int32_t rowId, int32_t columnId)
Return address from system ID, layer, module, sector, column and row IDs.
static const int32_t fgkLayerIdShift
static const int32_t fgkSectorAddressStart
static const int32_t fgkLayerIdLength
static uint32_t GetSectorAddress(uint32_t address)
Return unique sector ID from address.
static uint32_t GetRowId(uint32_t address)
Return row ID from address.
static uint32_t GetSystemId(uint32_t address)
Return System identifier from address.
static const int32_t fgkSectorIdShift