5#ifndef CBMMUCHADDRESS_H
6#define CBMMUCHADDRESS_H 1
67 static uint32_t
GetAddress(int32_t station = 0, int32_t layer = 0, int32_t side = 0, int32_t module = 0,
68 int32_t sector = 0, int32_t channel = 0);
71 static uint32_t
GetAddress(int32_t* elementIds);
115 return address & mask;
129 static uint32_t
SetElementId(uint32_t address, int32_t level, int32_t newId);
@ kMuchNofLevels
Number of MUCH levels.
@ kMuchLayerSide
LayerSide.
@ kMuchSystem
System = MUCH.
Base class for interfaces to the unique address.
Interface class to unique address for the MUCH.
static const int32_t fgkBits[kMuchNofLevels]
ClassDef(CbmMuchAddress, 1)
static int32_t GetModuleIndex(int32_t address)
static int32_t GetSectorIndex(int32_t address)
static uint32_t SetElementId(uint32_t address, int32_t level, int32_t newId)
static const int32_t fgkMask[kMuchNofLevels]
static const int32_t fgkShift[kMuchNofLevels]
static int32_t GetChannelIndex(int32_t address)
static int32_t GetLayerIndex(int32_t address)
static int32_t GetLayerSideIndex(int32_t address)
static int32_t GetNofBits(int32_t level)
static int32_t GetNofLevels()
static int32_t GetElementAddress(int32_t address, int32_t level)
static int32_t GetSystemIndex(int32_t address)
static uint32_t GetAddress(int32_t station=0, int32_t layer=0, int32_t side=0, int32_t module=0, int32_t sector=0, int32_t channel=0)
static int32_t GetStationIndex(int32_t address)
static int32_t GetElementId(uint32_t address, int32_t level)