CbmRoot
Loading...
Searching...
No Matches
CbmTrdAddress Class Reference

#include <CbmTrdAddress.h>

Static Public Member Functions

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 uint32_t GetSystemId (uint32_t address)
 Return System identifier from address.
 
static uint32_t GetLayerId (uint32_t address)
 Return layer ID from 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 GetRowId (uint32_t address)
 Return row ID from address.
 
static uint32_t GetColumnId (uint32_t address)
 Return column ID from address.
 
static uint32_t GetModuleAddress (uint32_t address)
 Return unique module ID from address.
 
static uint32_t GetSectorAddress (uint32_t address)
 Return unique sector ID from address.
 
static uint32_t SetLayerId (uint32_t address, int32_t newLayerId)
 Set new layer ID for address.
 
static uint32_t SetModuleId (uint32_t address, int32_t newModuleId)
 Set new module ID for address.
 
static uint32_t SetSectorId (uint32_t address, int32_t newSectorId)
 Set new sector ID for address.
 
static uint32_t SetRowId (uint32_t address, int32_t newRowId)
 Set new row ID for address.
 
static uint32_t SetColumnId (uint32_t address, int32_t newColumnId)
 Set new column ID for address.
 

Static Private Attributes

static const int32_t fgkSystemIdLength = 15
 
static const int32_t fgkLayerIdLength = 15
 
static const int32_t fgkModuleIdLength = 127
 
static const int32_t fgkSectorIdLength = 3
 
static const int32_t fgkRowIdLength = 127
 
static const int32_t fgkColumnIdLength = 255
 
static const int32_t fgkSystemIdShift = 0
 
static const int32_t fgkLayerIdShift = 4
 
static const int32_t fgkModuleIdShift = 8
 
static const int32_t fgkSectorIdShift = 15
 
static const int32_t fgkRowIdShift = 17
 
static const int32_t fgkColumnIdShift = 24
 
static const int32_t fgkModuleAddressStart = 0
 
static const int32_t fgkModuleAddressLength = 32767
 
static const int32_t fgkSectorAddressStart = 0
 
static const int32_t fgkSectorAddressLength = 131071
 

Detailed Description

Definition at line 33 of file CbmTrdAddress.h.

Member Function Documentation

◆ GetAddress()

static uint32_t CbmTrdAddress::GetAddress ( int32_t layerId,
int32_t moduleId,
int32_t sectorId,
int32_t rowId,
int32_t columnId )
inlinestatic

◆ GetColumnId()

static uint32_t CbmTrdAddress::GetColumnId ( uint32_t address)
inlinestatic

◆ GetLayerId()

◆ GetModuleAddress()

static uint32_t CbmTrdAddress::GetModuleAddress ( uint32_t address)
inlinestatic

Return unique module ID from address.

Parameters
[in]addressUnique channel address.
Returns
Unique module ID from address.

Definition at line 116 of file CbmTrdAddress.h.

References fgkModuleAddressLength, and fgkModuleAddressStart.

Referenced by CbmTrdDigiDraw::Exec(), CbmTrdHitDensityQa::Exec(), CbmTrdOccupancyQa::Exec(), CbmTrdQa::Exec(), CbmTrdRecoQa::Exec(), and CbmTrdCalibTracker::ResolutionQa().

◆ GetModuleId()

◆ GetRowId()

static uint32_t CbmTrdAddress::GetRowId ( uint32_t address)
inlinestatic

◆ GetSectorAddress()

static uint32_t CbmTrdAddress::GetSectorAddress ( uint32_t address)
inlinestatic

Return unique sector ID from address.

Parameters
[in]addressUnique channel address.
Returns
Unique sector ID from address.

Definition at line 126 of file CbmTrdAddress.h.

References fgkSectorAddressLength, and fgkSectorAddressStart.

◆ GetSectorId()

static uint32_t CbmTrdAddress::GetSectorId ( uint32_t address)
inlinestatic

◆ GetSystemId()

static uint32_t CbmTrdAddress::GetSystemId ( uint32_t address)
inlinestatic

Return System identifier from address.

Parameters
[in]addressUnique channel address.
Returns
System identifier from address.

Definition at line 59 of file CbmTrdAddress.h.

References fgkSystemIdLength, and fgkSystemIdShift.

◆ SetColumnId()

static uint32_t CbmTrdAddress::SetColumnId ( uint32_t address,
int32_t newColumnId )
inlinestatic

Set new column ID for address.

Parameters
addressCurrent address.
newColumnIdNew value for column ID.
Returns
New address with modified column ID.

Definition at line 185 of file CbmTrdAddress.h.

References fgkColumnIdLength, GetAddress(), GetLayerId(), GetModuleId(), GetRowId(), and GetSectorId().

◆ SetLayerId()

static uint32_t CbmTrdAddress::SetLayerId ( uint32_t address,
int32_t newLayerId )
inlinestatic

Set new layer ID for address.

Parameters
addressCurrent address.
newLayerIdNew value for layer ID.
Returns
New address with modified layer ID.

Definition at line 137 of file CbmTrdAddress.h.

References fgkLayerIdLength, GetAddress(), GetColumnId(), GetModuleId(), GetRowId(), and GetSectorId().

◆ SetModuleId()

static uint32_t CbmTrdAddress::SetModuleId ( uint32_t address,
int32_t newModuleId )
inlinestatic

Set new module ID for address.

Parameters
addressCurrent address.
newModuleIdNew value for module ID.
Returns
New address with modified module ID.

Definition at line 149 of file CbmTrdAddress.h.

References fgkModuleIdLength, GetAddress(), GetColumnId(), GetLayerId(), GetRowId(), and GetSectorId().

◆ SetRowId()

static uint32_t CbmTrdAddress::SetRowId ( uint32_t address,
int32_t newRowId )
inlinestatic

Set new row ID for address.

Parameters
addressCurrent address.
newRowIdNew value for row ID.
Returns
New address with modified row ID.

Definition at line 173 of file CbmTrdAddress.h.

References fgkRowIdLength, GetAddress(), GetColumnId(), GetLayerId(), GetModuleId(), and GetSectorId().

◆ SetSectorId()

static uint32_t CbmTrdAddress::SetSectorId ( uint32_t address,
int32_t newSectorId )
inlinestatic

Set new sector ID for address.

Parameters
addressCurrent address.
newSectorIdNew value for sector ID.
Returns
New address with modified sector ID.

Definition at line 161 of file CbmTrdAddress.h.

References fgkSectorIdLength, GetAddress(), GetColumnId(), GetLayerId(), GetModuleId(), and GetRowId().

Member Data Documentation

◆ fgkColumnIdLength

const int32_t CbmTrdAddress::fgkColumnIdLength = 255
staticprivate

Definition at line 198 of file CbmTrdAddress.h.

Referenced by GetAddress(), GetColumnId(), and SetColumnId().

◆ fgkColumnIdShift

const int32_t CbmTrdAddress::fgkColumnIdShift = 24
staticprivate

Definition at line 205 of file CbmTrdAddress.h.

Referenced by GetAddress(), and GetColumnId().

◆ fgkLayerIdLength

const int32_t CbmTrdAddress::fgkLayerIdLength = 15
staticprivate

Definition at line 194 of file CbmTrdAddress.h.

Referenced by GetAddress(), GetLayerId(), and SetLayerId().

◆ fgkLayerIdShift

const int32_t CbmTrdAddress::fgkLayerIdShift = 4
staticprivate

Definition at line 201 of file CbmTrdAddress.h.

Referenced by GetAddress(), and GetLayerId().

◆ fgkModuleAddressLength

const int32_t CbmTrdAddress::fgkModuleAddressLength = 32767
staticprivate

Definition at line 209 of file CbmTrdAddress.h.

Referenced by GetModuleAddress().

◆ fgkModuleAddressStart

const int32_t CbmTrdAddress::fgkModuleAddressStart = 0
staticprivate

Definition at line 208 of file CbmTrdAddress.h.

Referenced by GetModuleAddress().

◆ fgkModuleIdLength

const int32_t CbmTrdAddress::fgkModuleIdLength = 127
staticprivate

Definition at line 195 of file CbmTrdAddress.h.

Referenced by GetAddress(), GetModuleId(), and SetModuleId().

◆ fgkModuleIdShift

const int32_t CbmTrdAddress::fgkModuleIdShift = 8
staticprivate

Definition at line 202 of file CbmTrdAddress.h.

Referenced by GetAddress(), and GetModuleId().

◆ fgkRowIdLength

const int32_t CbmTrdAddress::fgkRowIdLength = 127
staticprivate

Definition at line 197 of file CbmTrdAddress.h.

Referenced by GetAddress(), GetRowId(), and SetRowId().

◆ fgkRowIdShift

const int32_t CbmTrdAddress::fgkRowIdShift = 17
staticprivate

Definition at line 204 of file CbmTrdAddress.h.

Referenced by GetAddress(), and GetRowId().

◆ fgkSectorAddressLength

const int32_t CbmTrdAddress::fgkSectorAddressLength = 131071
staticprivate

Definition at line 213 of file CbmTrdAddress.h.

Referenced by GetSectorAddress().

◆ fgkSectorAddressStart

const int32_t CbmTrdAddress::fgkSectorAddressStart = 0
staticprivate

Definition at line 212 of file CbmTrdAddress.h.

Referenced by GetSectorAddress().

◆ fgkSectorIdLength

const int32_t CbmTrdAddress::fgkSectorIdLength = 3
staticprivate

Definition at line 196 of file CbmTrdAddress.h.

Referenced by GetAddress(), GetSectorId(), and SetSectorId().

◆ fgkSectorIdShift

const int32_t CbmTrdAddress::fgkSectorIdShift = 15
staticprivate

Definition at line 203 of file CbmTrdAddress.h.

Referenced by GetAddress(), and GetSectorId().

◆ fgkSystemIdLength

const int32_t CbmTrdAddress::fgkSystemIdLength = 15
staticprivate

Definition at line 193 of file CbmTrdAddress.h.

Referenced by GetSystemId().

◆ fgkSystemIdShift

const int32_t CbmTrdAddress::fgkSystemIdShift = 0
staticprivate

Definition at line 200 of file CbmTrdAddress.h.

Referenced by GetAddress(), and GetSystemId().


The documentation for this class was generated from the following file: