38#ifndef CBMTOFADDRESS_H
39#define CBMTOFADDRESS_H 1
199 static uint32_t
GetUniqueAddress(uint32_t Sm, uint32_t Rpc, uint32_t Channel, uint32_t Side = 0, uint32_t SmType = 0,
200 uint32_t RpcType = 0)
242 static std::string
ToString(int32_t address);
XPU_D constexpr auto ToIntegralType(T enumerator) -> typename std::underlying_type< T >::type
@ kTof
Time-of-flight Detector.
Base class for interfaces to the unique address.
static const int32_t fgkSystemBits
CBM ToF interface class to the unique address.
static int32_t GetSmIdOffset()
static const int32_t fgkSmIdBits
static int32_t GetNofChannelIdBits()
static const int32_t fgkRpcTypeBits
static const int32_t fgkChannelIdOffset
static const int32_t fgkiRpcFullIdMask
static const int32_t fgkRpcIdOffset
static uint32_t GetUniqueAddress(uint32_t Sm, uint32_t Rpc, uint32_t Channel, uint32_t Side=0, uint32_t SmType=0, uint32_t RpcType=0)
static const int32_t fgkChannelSideBits
static const int32_t fgkiModFullIdMask
static const int32_t fgkSmTypeBitmask
static int32_t GetSystemIdBitmask()
static const int32_t fgkChannelSideBitmask
static int32_t GetChannelIdOffset()
static uint32_t ConvertCbmTofDetectorInfo(CbmTofDetectorInfo infoInput)
Sets the channel ID to the address.
static int32_t GetSmIdBitmask()
static const int32_t fgkSmIdOffset
static int32_t GetRpcType(uint32_t address)
static uint32_t ConvertCbmTofDetectorId(int32_t detIdInput)
static int32_t GetSmId(uint32_t address)
static int32_t GetSmTypeBitmask()
static int32_t GetModFullId(uint32_t address)
static const int32_t fgkChannelIdBits
static const int32_t fgkSmTypeOffset
static const int32_t fgkRpcTypeBitmask
static const int32_t fgkRpcIdBits
static int32_t GetRpcId(uint32_t address)
static const int32_t fgkSmIdBitmask
static const int32_t fgkRpcIdBitmask
static int32_t GetNofSmIdBits()
static bool SameModule(uint32_t addressA, uint32_t addressB)
static const int32_t fgkChannelIdBitmask
static int32_t GetRpcTypeOffset()
static int32_t GetRpcIdOffset()
static const int32_t fgkSystemIdBitmask
static int32_t GetStripFullId(uint32_t address)
static int32_t GetNofSmTypeBits()
static int32_t GetSmType(uint32_t address)
static int32_t GetRpcFullId(uint32_t address)
static int32_t GetChannelSide(uint32_t address)
static const int32_t fgkiStripFullIdMask
static std::string ToString(int32_t address)
static int32_t GetNofChSideBits()
static int32_t GetNofRpcIdBits()
static int32_t GetChannelSideBitmask()
static int32_t GetChannelId(uint32_t address)
static const int32_t fgkChannelSideOffset
static int32_t GetChannelIdBitmask()
static int32_t GetChannelSideOffset()
static int32_t GetRpcTypeBitmask()
static int32_t GetSmTypeOffset()
static const int32_t fgkSmTypeBits
static int32_t GetRpcIdBitmask()
static const int32_t fgkRpcTypeOffset
int32_t GetCounter(const int32_t detectorId)
int32_t GetSModule(const int32_t detectorId)
int32_t GetSMType(const int32_t detectorId)
int32_t GetCell(const int32_t detectorId)