CbmRoot
|
#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 |
Definition at line 33 of file CbmTrdAddress.h.
|
inlinestatic |
Return address from system ID, layer, module, sector, column and row IDs.
[in] | layerId | Layer ID. |
[in] | moduleId | Module ID. |
[in] | sectorId | Sector ID. |
[in] | rowId | Row ID. |
[in] | columnId | Column ID. |
Definition at line 44 of file CbmTrdAddress.h.
References fgkColumnIdLength, fgkColumnIdShift, fgkLayerIdLength, fgkLayerIdShift, fgkModuleIdLength, fgkModuleIdShift, fgkRowIdLength, fgkRowIdShift, fgkSectorIdLength, fgkSectorIdShift, fgkSystemIdShift, kTrd, and ToIntegralType().
Referenced by CbmTrdModuleSimR::AddCrosstalk(), CbmTrdModuleSimR::CheckMulti(), CbmTrdQa::Exec(), CbmTrdHitDensityQa::Finish(), CbmTrdDigi::GetAddressModule(), CbmTrdGeoHandler::GetModuleAddress(), CbmTrdModuleSimR::ProcessPulseBuffer(), cbm::trd::geo::ReadModuleInfo(), CbmTrdHitRateFastQa::ScanModulePlane(), CbmTrdModuleSimR::ScanPadPlane(), CbmTrdModuleSimR::SetAsicPar(), SetColumnId(), SetLayerId(), SetModuleId(), SetRowId(), and SetSectorId().
|
inlinestatic |
Return column ID from address.
[in] | address | Unique channel address. |
Definition at line 106 of file CbmTrdAddress.h.
References fgkColumnIdLength, and fgkColumnIdShift.
Referenced by CbmTrdModuleSimR::AddDigi(), CbmTrdModuleSimR::AddDigitoBuffer(), CbmTrdModuleSimR::CheckMulti(), CbmTrdDigiDraw::Exec(), CbmTrdHitDensityQa::Exec(), CbmTrdOccupancyQa::Exec(), CbmTrdRecoQa::Exec(), CbmTrdParModDigi::GetPadPosition(), CbmTrdModuleSimR::ProcessPulseBuffer(), SetLayerId(), SetModuleId(), SetRowId(), and SetSectorId().
|
inlinestatic |
Return layer ID from address.
[in] | address | Unique channel address. |
Definition at line 69 of file CbmTrdAddress.h.
References fgkLayerIdLength, and fgkLayerIdShift.
Referenced by CbmTrdModuleSimR::AddCrosstalk(), CbmTrdDigitizer::AddModule(), CbmTrdHitProducer::AddModule(), CbmTrdModuleSimR::CheckMulti(), CbmTrdQa::CreateLayerView(), CbmTrdQa::CreateLayerView(), CbmTrdUtils::CreateLayerView(), CbmTrdDigiDraw::Exec(), CbmTrdHitDensityQa::Exec(), CbmTrdHitRateFastQa::Exec(), CbmTrdHitRateQa::Exec(), CbmTrdOccupancyQa::Exec(), CbmTrdQa::Exec(), CbmLitMCTrackCreator::FillStationMaps(), CbmTrdHitDensityQa::Finish(), cbm::algo::trd::Hit::GetPlaneId(), CbmTrdHit::GetPlaneId(), CbmLitClusteringQa::GetStationId(), cbm::algo::trd::TrackingInterface::GetTrackingStation(), CbmTrdTrackingInterface::GetTrackingStationIndex(), CbmTrdParModDigi::Print(), CbmTrdMCQa::ProcessPoints(), CbmTrdModuleSimR::ProcessPulseBuffer(), CbmLitFitQa::ProcessTrdTrack(), CbmHadronAnalysis::ReconstructSecondaries(), CbmTrdCalibTracker::ResolutionQa(), CbmTrdHitRateFastQa::ScanModulePlane(), CbmTrdDigi::SetAddress(), SetColumnId(), SetModuleId(), SetRowId(), and SetSectorId().
|
inlinestatic |
Return unique module ID from address.
[in] | address | Unique channel 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().
|
inlinestatic |
Return module ID from address.
[in] | address | Unique channel address. |
Definition at line 79 of file CbmTrdAddress.h.
References fgkModuleIdLength, and fgkModuleIdShift.
Referenced by CbmTrdModuleSimR::AddCrosstalk(), CbmTrdModuleSimR::CheckMulti(), CbmTrdQa::Exec(), CbmTrdRecoQa::Exec(), CbmTrdHitDensityQa::Finish(), CbmTrdModuleSim2D::FlushBuffer(), CbmTrdParModDigi::Print(), CbmTrdModuleSimR::ProcessPulseBuffer(), CbmTrdHitRateFastQa::ScanModulePlane(), CbmTrdModuleSimR::ScanPadPlane(), CbmTrdDigi::SetAddress(), CbmTrdModuleSimR::SetAsicPar(), SetColumnId(), SetLayerId(), SetRowId(), and SetSectorId().
|
inlinestatic |
Return row ID from address.
[in] | address | Unique channel address. |
Definition at line 99 of file CbmTrdAddress.h.
References fgkRowIdLength, and fgkRowIdShift.
Referenced by CbmTrdModuleSimR::AddDigi(), CbmTrdModuleSimR::AddDigitoBuffer(), CbmTrdModuleSimR::CheckMulti(), CbmTrdDigiDraw::Exec(), CbmTrdHitDensityQa::Exec(), CbmTrdOccupancyQa::Exec(), CbmTrdRecoQa::Exec(), CbmTrdParModDigi::GetPadPosition(), CbmTrdModuleSimR::ProcessPulseBuffer(), SetColumnId(), SetLayerId(), SetModuleId(), and SetSectorId().
|
inlinestatic |
Return unique sector ID from address.
[in] | address | Unique channel address. |
Definition at line 126 of file CbmTrdAddress.h.
References fgkSectorAddressLength, and fgkSectorAddressStart.
|
inlinestatic |
Return sector ID from address.
[in] | address | Unique channel address. |
Definition at line 89 of file CbmTrdAddress.h.
References fgkSectorIdLength, and fgkSectorIdShift.
Referenced by CbmTrdModuleSimR::AddDigi(), CbmTrdModuleSimR::AddDigitoBuffer(), CbmTrdModuleSimR::CheckMulti(), CbmTrdDigiDraw::Exec(), CbmTrdHitDensityQa::Exec(), CbmTrdOccupancyQa::Exec(), CbmTrdRecoQa::Exec(), CbmTrdParModDigi::GetPadPosition(), CbmTrdModuleSimR::ProcessPulseBuffer(), SetColumnId(), SetLayerId(), SetModuleId(), and SetRowId().
|
inlinestatic |
Return System identifier from address.
[in] | address | Unique channel address. |
Definition at line 59 of file CbmTrdAddress.h.
References fgkSystemIdLength, and fgkSystemIdShift.
|
inlinestatic |
Set new column ID for address.
address | Current address. |
newColumnId | New value for column ID. |
Definition at line 185 of file CbmTrdAddress.h.
References fgkColumnIdLength, GetAddress(), GetLayerId(), GetModuleId(), GetRowId(), and GetSectorId().
|
inlinestatic |
Set new layer ID for address.
address | Current address. |
newLayerId | New value for layer ID. |
Definition at line 137 of file CbmTrdAddress.h.
References fgkLayerIdLength, GetAddress(), GetColumnId(), GetModuleId(), GetRowId(), and GetSectorId().
|
inlinestatic |
Set new module ID for address.
address | Current address. |
newModuleId | New value for module ID. |
Definition at line 149 of file CbmTrdAddress.h.
References fgkModuleIdLength, GetAddress(), GetColumnId(), GetLayerId(), GetRowId(), and GetSectorId().
|
inlinestatic |
Set new row ID for address.
address | Current address. |
newRowId | New value for row ID. |
Definition at line 173 of file CbmTrdAddress.h.
References fgkRowIdLength, GetAddress(), GetColumnId(), GetLayerId(), GetModuleId(), and GetSectorId().
|
inlinestatic |
Set new sector ID for address.
address | Current address. |
newSectorId | New value for sector ID. |
Definition at line 161 of file CbmTrdAddress.h.
References fgkSectorIdLength, GetAddress(), GetColumnId(), GetLayerId(), GetModuleId(), and GetRowId().
|
staticprivate |
Definition at line 198 of file CbmTrdAddress.h.
Referenced by GetAddress(), GetColumnId(), and SetColumnId().
|
staticprivate |
Definition at line 205 of file CbmTrdAddress.h.
Referenced by GetAddress(), and GetColumnId().
|
staticprivate |
Definition at line 194 of file CbmTrdAddress.h.
Referenced by GetAddress(), GetLayerId(), and SetLayerId().
|
staticprivate |
Definition at line 201 of file CbmTrdAddress.h.
Referenced by GetAddress(), and GetLayerId().
|
staticprivate |
Definition at line 209 of file CbmTrdAddress.h.
Referenced by GetModuleAddress().
|
staticprivate |
Definition at line 208 of file CbmTrdAddress.h.
Referenced by GetModuleAddress().
|
staticprivate |
Definition at line 195 of file CbmTrdAddress.h.
Referenced by GetAddress(), GetModuleId(), and SetModuleId().
|
staticprivate |
Definition at line 202 of file CbmTrdAddress.h.
Referenced by GetAddress(), and GetModuleId().
|
staticprivate |
Definition at line 197 of file CbmTrdAddress.h.
Referenced by GetAddress(), GetRowId(), and SetRowId().
|
staticprivate |
Definition at line 204 of file CbmTrdAddress.h.
Referenced by GetAddress(), and GetRowId().
|
staticprivate |
Definition at line 213 of file CbmTrdAddress.h.
Referenced by GetSectorAddress().
|
staticprivate |
Definition at line 212 of file CbmTrdAddress.h.
Referenced by GetSectorAddress().
|
staticprivate |
Definition at line 196 of file CbmTrdAddress.h.
Referenced by GetAddress(), GetSectorId(), and SetSectorId().
|
staticprivate |
Definition at line 203 of file CbmTrdAddress.h.
Referenced by GetAddress(), and GetSectorId().
|
staticprivate |
Definition at line 193 of file CbmTrdAddress.h.
Referenced by GetSystemId().
|
staticprivate |
Definition at line 200 of file CbmTrdAddress.h.
Referenced by GetAddress(), and GetSystemId().