|
BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
|
BmnNdet interface class to the unique address. More...
#include <BmnNdetAddress.h>
Public Member Functions | |
| virtual | ~BmnNdetAddress () |
| virtual | ~BmnNdetAddress () |
Static Public Member Functions | |
| static uint32_t | GetAddress (uint32_t ArmId, uint32_t RowId, uint32_t ColumnId, uint32_t LayerId) |
| Return address. | |
| static std::string | GetInfoString (uint32_t address) |
| Return a formatted string with all address components. | |
| static uint32_t | GetSystemId (uint32_t address) |
| Return System identifier from address. | |
| static uint32_t | GetArmId (uint32_t address) |
| Return Arm 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 | GetLayerId (uint32_t address) |
| Return Layer id from address. | |
| static uint32_t | GetAddress (uint32_t ArmId, uint32_t RowId, uint32_t ColumnId, uint32_t LayerId) |
| Return address. | |
| static std::string | GetInfoString (uint32_t address) |
| Return a formatted string with all address components. | |
| static uint32_t | GetSystemId (uint32_t address) |
| Return System identifier from address. | |
| static uint32_t | GetArmId (uint32_t address) |
| Return Arm 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 | GetLayerId (uint32_t address) |
| Return Layer id from address. | |
Static Private Attributes | |
| static const uint32_t | fgkSystemIdLength = 31 |
| static const uint32_t | fgkArmIdLength = 3 |
| static const uint32_t | fgkRowIdLength = 15 |
| static const uint32_t | fgkColumnIdLength = 15 |
| static const uint32_t | fgkLayerIdLength = 31 |
| static const uint32_t | fgkSystemIdShift = 0 |
| static const uint32_t | fgkArmIdShift = 5 |
| static const uint32_t | fgkRowIdShift = 7 |
| static const uint32_t | fgkColumnIdShift = 11 |
| static const uint32_t | fgkLayerIdShift = 15 |
BmnNdetAddress is the class for the concrete interfaces to the unique address, which is encoded in a 32-bit field (uint32_t), for the Ndet detector elements.
3 2 1 0 Shift Bits Values
Current definition: 10987654321098765432109876543210 System id on bits 0- 4 00000000000000000000000000011111 << 0 5 31 ArmId on bits 5- 6 00000000000000000000000001100000 << 5 2 3 RowId on bits 7-10 00000000000000000000011110000000 << 7 4 15 ColumnId on bits 11-14 00000000000000000111100000000000 << 11 4 15 LayerId on bits 15-19 00000000000011111000000000000000 <<15 5 31
Definition at line 27 of file BmnNdetAddress.h.
|
inlinevirtual |
Definition at line 30 of file BmnNdetAddress.h.
|
inlinevirtual |
Definition at line 30 of file BmnNdetAddress.h.
|
inlinestatic |
| [in] | ArmId | arm id. |
| [in] | RowId | row id. |
| [in] | ColumnId | column id. |
| [in] | LayerId | layer id. |
Definition at line 39 of file BmnNdetAddress.h.
References fgkArmIdLength, fgkArmIdShift, fgkColumnIdLength, fgkColumnIdShift, fgkLayerIdLength, fgkLayerIdShift, fgkRowIdLength, fgkRowIdShift, fgkSystemIdLength, fgkSystemIdShift, and kNDET.
Referenced by BmnHistHgnd::FillFromDigi(), BmnNdetGeo::GetAddressFromPath(), BmnNdetEvent::GetCell(), BmnHistHgnd::InitializeAddresses(), BmnHgndRaw2Digit::ParseCalibration(), BmnNdetRaw2Digit::ParseCalibration(), BmnHgndRaw2Digit::ParseConfig(), and BmnNdetRaw2Digit::ParseConfig().
|
inlinestatic |
| [in] | ArmId | arm id. |
| [in] | RowId | row id. |
| [in] | ColumnId | column id. |
| [in] | LayerId | layer id. |
Definition at line 39 of file BmnNdetAddress.h.
References fgkArmIdLength, fgkArmIdShift, fgkColumnIdLength, fgkColumnIdShift, fgkLayerIdLength, fgkLayerIdShift, fgkRowIdLength, fgkRowIdShift, fgkSystemIdLength, fgkSystemIdShift, and kNDET.
|
inlinestatic |
| [in] | address | Unique channel address. |
Definition at line 79 of file BmnNdetAddress.h.
References fgkArmIdLength, and fgkArmIdShift.
Referenced by BmnHistHgnd::CreateHistos(), BmnNdetAddressMixin< T >::GetArmId(), and GetInfoString().
|
inlinestatic |
| [in] | address | Unique channel address. |
Definition at line 79 of file BmnNdetAddress.h.
References fgkArmIdLength, and fgkArmIdShift.
|
inlinestatic |
| [in] | address | Unique channel address. |
Definition at line 99 of file BmnNdetAddress.h.
References fgkColumnIdLength, and fgkColumnIdShift.
Referenced by BmnHistHgnd::CreateHistos(), BmnNdetAddressMixin< T >::GetColumnId(), and GetInfoString().
|
inlinestatic |
| [in] | address | Unique channel address. |
Definition at line 99 of file BmnNdetAddress.h.
References fgkColumnIdLength, and fgkColumnIdShift.
|
inlinestatic |
| [in] | address | Unique channel address. |
Definition at line 55 of file BmnNdetAddress.h.
References GetArmId(), GetColumnId(), GetLayerId(), GetRowId(), and GetSystemId().
Referenced by BmnNdetDigi::DrawWfm(), BmnNdetDigitizer::Exec(), BmnNdet::FinaliseTrackProcessing(), BmnNdetCell::Print(), BmnNdetDigit::Print(), BmnNdetPoint::Print(), and BmnNdet::ProcessHits().
|
inlinestatic |
| [in] | address | Unique channel address. |
Definition at line 55 of file BmnNdetAddress.h.
References GetArmId(), GetColumnId(), GetLayerId(), GetRowId(), and GetSystemId().
|
inlinestatic |
| [in] | address | Unique channel address. |
Definition at line 109 of file BmnNdetAddress.h.
References fgkLayerIdLength, and fgkLayerIdShift.
Referenced by BmnHistHgnd::CreateHistos(), BmnHgndRaw2Digit::FillEvent(), GetInfoString(), and BmnNdetAddressMixin< T >::GetLayerId().
|
inlinestatic |
| [in] | address | Unique channel address. |
Definition at line 109 of file BmnNdetAddress.h.
References fgkLayerIdLength, and fgkLayerIdShift.
|
inlinestatic |
| [in] | address | Unique channel address. |
Definition at line 89 of file BmnNdetAddress.h.
References fgkRowIdLength, and fgkRowIdShift.
Referenced by BmnHistHgnd::CreateHistos(), GetInfoString(), and BmnNdetAddressMixin< T >::GetRowId().
|
inlinestatic |
| [in] | address | Unique channel address. |
Definition at line 89 of file BmnNdetAddress.h.
References fgkRowIdLength, and fgkRowIdShift.
|
inlinestatic |
| [in] | address | Unique channel address. |
Definition at line 69 of file BmnNdetAddress.h.
References fgkSystemIdLength, and fgkSystemIdShift.
Referenced by GetInfoString(), and BmnNdetAddressMixin< T >::GetSystemId().
|
inlinestatic |
| [in] | address | Unique channel address. |
Definition at line 69 of file BmnNdetAddress.h.
References fgkSystemIdLength, and fgkSystemIdShift.
|
staticprivate |
Definition at line 117 of file BmnNdetAddress.h.
Referenced by GetAddress(), and GetArmId().
|
staticprivate |
Definition at line 124 of file BmnNdetAddress.h.
Referenced by GetAddress(), and GetArmId().
|
staticprivate |
Definition at line 119 of file BmnNdetAddress.h.
Referenced by GetAddress(), and GetColumnId().
|
staticprivate |
Definition at line 126 of file BmnNdetAddress.h.
Referenced by GetAddress(), and GetColumnId().
|
staticprivate |
Definition at line 120 of file BmnNdetAddress.h.
Referenced by GetAddress(), and GetLayerId().
|
staticprivate |
Definition at line 127 of file BmnNdetAddress.h.
Referenced by GetAddress(), and GetLayerId().
|
staticprivate |
Definition at line 118 of file BmnNdetAddress.h.
Referenced by GetAddress(), and GetRowId().
|
staticprivate |
Definition at line 125 of file BmnNdetAddress.h.
Referenced by GetAddress(), and GetRowId().
|
staticprivate |
Definition at line 116 of file BmnNdetAddress.h.
Referenced by GetAddress(), and GetSystemId().
|
staticprivate |
Definition at line 123 of file BmnNdetAddress.h.
Referenced by GetAddress(), and GetSystemId().