CbmRoot
CbmTrdAddress Class Reference

#include <CbmTrdAddress.h>

Static Public Member Functions

static UInt_t GetAddress (Int_t layerId, Int_t moduleId, Int_t sectorId, Int_t rowId, Int_t columnId)
 Return address from system ID, layer, module, sector, column and row IDs. More...
 
static UInt_t GetSystemId (UInt_t address)
 Return System identifier from address. More...
 
static UInt_t GetLayerId (UInt_t address)
 Return layer ID from address. More...
 
static UInt_t GetModuleId (UInt_t address)
 Return module ID from address. More...
 
static UInt_t GetSectorId (UInt_t address)
 Return sector ID from address. More...
 
static UInt_t GetRowId (UInt_t address)
 Return row ID from address. More...
 
static UInt_t GetColumnId (UInt_t address)
 Return column ID from address. More...
 
static UInt_t GetModuleAddress (UInt_t address)
 Return unique module ID from address. More...
 
static UInt_t GetSectorAddress (UInt_t address)
 Return unique sector ID from address. More...
 
static UInt_t SetLayerId (UInt_t address, Int_t newLayerId)
 Set new layer ID for address. More...
 
static UInt_t SetModuleId (UInt_t address, Int_t newModuleId)
 Set new module ID for address. More...
 
static UInt_t SetSectorId (UInt_t address, Int_t newSectorId)
 Set new sector ID for address. More...
 
static UInt_t SetRowId (UInt_t address, Int_t newRowId)
 Set new row ID for address. More...
 
static UInt_t SetColumnId (UInt_t address, Int_t newColumnId)
 Set new column ID for address. More...
 

Static Private Attributes

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

Detailed Description

Definition at line 27 of file CbmTrdAddress.h.

Member Function Documentation

◆ GetAddress()

static UInt_t CbmTrdAddress::GetAddress ( Int_t  layerId,
Int_t  moduleId,
Int_t  sectorId,
Int_t  rowId,
Int_t  columnId 
)
inlinestatic

◆ GetColumnId()

static UInt_t CbmTrdAddress::GetColumnId ( UInt_t  address)
inlinestatic

◆ GetLayerId()

◆ GetModuleAddress()

static UInt_t CbmTrdAddress::GetModuleAddress ( UInt_t  address)
inlinestatic

Return unique module ID from address.

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

Definition at line 117 of file CbmTrdAddress.h.

References fgkModuleAddressLength, and fgkModuleAddressStart.

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

◆ GetModuleId()

◆ GetRowId()

static UInt_t CbmTrdAddress::GetRowId ( UInt_t  address)
inlinestatic

◆ GetSectorAddress()

static UInt_t CbmTrdAddress::GetSectorAddress ( UInt_t  address)
inlinestatic

Return unique sector ID from address.

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

Definition at line 127 of file CbmTrdAddress.h.

References fgkSectorAddressLength, and fgkSectorAddressStart.

◆ GetSectorId()

static UInt_t CbmTrdAddress::GetSectorId ( UInt_t  address)
inlinestatic

◆ GetSystemId()

static UInt_t CbmTrdAddress::GetSystemId ( UInt_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 UInt_t CbmTrdAddress::SetColumnId ( UInt_t  address,
Int_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 198 of file CbmTrdAddress.h.

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

◆ SetLayerId()

static UInt_t CbmTrdAddress::SetLayerId ( UInt_t  address,
Int_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 138 of file CbmTrdAddress.h.

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

◆ SetModuleId()

static UInt_t CbmTrdAddress::SetModuleId ( UInt_t  address,
Int_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 153 of file CbmTrdAddress.h.

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

◆ SetRowId()

static UInt_t CbmTrdAddress::SetRowId ( UInt_t  address,
Int_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 183 of file CbmTrdAddress.h.

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

◆ SetSectorId()

static UInt_t CbmTrdAddress::SetSectorId ( UInt_t  address,
Int_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 168 of file CbmTrdAddress.h.

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

Member Data Documentation

◆ fgkColumnIdLength

const Int_t CbmTrdAddress::fgkColumnIdLength = 255
staticprivate

Definition at line 214 of file CbmTrdAddress.h.

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

◆ fgkColumnIdShift

const Int_t CbmTrdAddress::fgkColumnIdShift = 24
staticprivate

Definition at line 221 of file CbmTrdAddress.h.

Referenced by GetAddress(), and GetColumnId().

◆ fgkLayerIdLength

const Int_t CbmTrdAddress::fgkLayerIdLength = 15
staticprivate

Definition at line 210 of file CbmTrdAddress.h.

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

◆ fgkLayerIdShift

const Int_t CbmTrdAddress::fgkLayerIdShift = 4
staticprivate

Definition at line 217 of file CbmTrdAddress.h.

Referenced by GetAddress(), and GetLayerId().

◆ fgkModuleAddressLength

const Int_t CbmTrdAddress::fgkModuleAddressLength = 32767
staticprivate

Definition at line 225 of file CbmTrdAddress.h.

Referenced by GetModuleAddress().

◆ fgkModuleAddressStart

const Int_t CbmTrdAddress::fgkModuleAddressStart = 0
staticprivate

Definition at line 224 of file CbmTrdAddress.h.

Referenced by GetModuleAddress().

◆ fgkModuleIdLength

const Int_t CbmTrdAddress::fgkModuleIdLength = 127
staticprivate

Definition at line 211 of file CbmTrdAddress.h.

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

◆ fgkModuleIdShift

const Int_t CbmTrdAddress::fgkModuleIdShift = 8
staticprivate

Definition at line 218 of file CbmTrdAddress.h.

Referenced by GetAddress(), and GetModuleId().

◆ fgkRowIdLength

const Int_t CbmTrdAddress::fgkRowIdLength = 127
staticprivate

Definition at line 213 of file CbmTrdAddress.h.

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

◆ fgkRowIdShift

const Int_t CbmTrdAddress::fgkRowIdShift = 17
staticprivate

Definition at line 220 of file CbmTrdAddress.h.

Referenced by GetAddress(), and GetRowId().

◆ fgkSectorAddressLength

const Int_t CbmTrdAddress::fgkSectorAddressLength = 131071
staticprivate

Definition at line 229 of file CbmTrdAddress.h.

Referenced by GetSectorAddress().

◆ fgkSectorAddressStart

const Int_t CbmTrdAddress::fgkSectorAddressStart = 0
staticprivate

Definition at line 228 of file CbmTrdAddress.h.

Referenced by GetSectorAddress().

◆ fgkSectorIdLength

const Int_t CbmTrdAddress::fgkSectorIdLength = 3
staticprivate

Definition at line 212 of file CbmTrdAddress.h.

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

◆ fgkSectorIdShift

const Int_t CbmTrdAddress::fgkSectorIdShift = 15
staticprivate

Definition at line 219 of file CbmTrdAddress.h.

Referenced by GetAddress(), and GetSectorId().

◆ fgkSystemIdLength

const Int_t CbmTrdAddress::fgkSystemIdLength = 15
staticprivate

Definition at line 209 of file CbmTrdAddress.h.

Referenced by GetSystemId().

◆ fgkSystemIdShift

const Int_t CbmTrdAddress::fgkSystemIdShift = 0
staticprivate

Definition at line 216 of file CbmTrdAddress.h.

Referenced by GetAddress(), and GetSystemId().


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