|
BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
|
BmnHodo interface class to the unique address. More...
#include <BmnHodoAddress.h>
Static Public Member Functions | |
| static uint32_t | GetAddress (uint32_t StripId, uint32_t StripSide, uint32_t Gain) |
| Return address from system ID, StripId, StripSide, Gain. | |
| static uint32_t | GetSystemId (uint32_t address) |
| Return System identifier from address. | |
| static uint32_t | GetStripId (uint32_t address) |
| Return Strip id from address. | |
| static uint32_t | GetStripSide (uint32_t address) |
| Return Strip side from address. | |
| static uint32_t | GetGain (uint32_t address) |
| Return Gain from address. | |
| static uint32_t | GetAddress (uint32_t StripId, uint32_t StripSide, uint32_t Gain) |
| Return address from system ID, StripId, StripSide, Gain. | |
| static uint32_t | GetSystemId (uint32_t address) |
| Return System identifier from address. | |
| static uint32_t | GetStripId (uint32_t address) |
| Return Strip id from address. | |
| static uint32_t | GetStripSide (uint32_t address) |
| Return Strip side from address. | |
| static uint32_t | GetGain (uint32_t address) |
| Return Gain from address. | |
Static Private Attributes | |
| static const uint32_t | fgkSystemIdLength = 31 |
| static const uint32_t | fgkStripIdLength = 31 |
| static const uint32_t | fgkStripSideLength = 1 |
| static const uint32_t | fgkGainLength = 1 |
| static const uint32_t | fgkSystemIdShift = 0 |
| static const uint32_t | fgkStripIdShift = 6 |
| static const uint32_t | fgkStripSideShift = 11 |
| static const uint32_t | fgkGainShift = 12 |
BmnHodoAddress is the class for the concrete interfaces to the unique address, which is encoded in a 32-bit field (uint32_t), for the Hodo detector elements.
3 2 1 0 Shift Bits Values
Current definition: 10987654321098765432109876543210 System id on bits 0- 4 00000000000000000000000000011111 << 0 5 31 Strip idx on bits 6-10 00000000000000000000011111000000 << 6 5 31 Strip side on bits 11-11 00000000000000000000100000000000 <<11 1 1 Gain on bits 12-12 00000000000000000001000000000000 <<12 1 1
Definition at line 25 of file BmnHodoAddress.h.
|
inlinestatic |
| [in] | StripId | Strip id. |
| [in] | StripSide | Strip side. |
| [in] | Gain | Gain. |
Definition at line 35 of file BmnHodoAddress.h.
References fgkGainLength, fgkGainShift, fgkStripIdLength, fgkStripIdShift, fgkStripSideLength, fgkStripSideShift, fgkSystemIdLength, fgkSystemIdShift, and kHODO.
Referenced by BmnHistHodo::~BmnHistHodo(), BmnHistHodo::ClearRefRun(), BmnHistHodo::CreateHistos(), BmnHistHodo::DrawBoth(), BmnHodoDigitizer::Exec(), BmnHistHodo::FillFromDigi(), BmnHodoGeo::GetAddressFromPath(), make_flat_index(), BmnHodoRaw2Digit::ParseCalibrationJson(), BmnHodoRaw2Digit::ParseConfig(), BmnHistHodo::Reset(), BmnHistHodo::SetDir(), and simple_analysis().
|
inlinestatic |
| [in] | StripId | Strip id. |
| [in] | StripSide | Strip side. |
| [in] | Gain | Gain. |
Definition at line 35 of file BmnHodoAddress.h.
References fgkGainLength, fgkGainShift, fgkStripIdLength, fgkStripIdShift, fgkStripSideLength, fgkStripSideShift, fgkSystemIdLength, fgkSystemIdShift, and kHODO.
|
inlinestatic |
| [in] | address | Unique channel address. |
Definition at line 80 of file BmnHodoAddress.h.
References fgkGainLength, and fgkGainShift.
Referenced by BmnHodoDigi::GetGain(), and BmnHodoDigit::GetGain().
|
inlinestatic |
| [in] | address | Unique channel address. |
Definition at line 80 of file BmnHodoAddress.h.
References fgkGainLength, and fgkGainShift.
|
inlinestatic |
| [in] | address | Unique channel address. |
Definition at line 60 of file BmnHodoAddress.h.
References fgkStripIdLength, and fgkStripIdShift.
Referenced by BmnHodoGeo::GetMaxStripId(), BmnHodoDigit::GetStripId(), BmnHodoReconstructor::MarkPileup(), and BmnHodoReconstructor::ParseGeometry().
|
inlinestatic |
| [in] | address | Unique channel address. |
Definition at line 60 of file BmnHodoAddress.h.
References fgkStripIdLength, and fgkStripIdShift.
|
inlinestatic |
| [in] | address | Unique channel address. |
Definition at line 70 of file BmnHodoAddress.h.
References fgkStripSideLength, and fgkStripSideShift.
Referenced by BmnHodoDigi::GetStripSide(), and BmnHodoDigit::GetStripSide().
|
inlinestatic |
| [in] | address | Unique channel address. |
Definition at line 70 of file BmnHodoAddress.h.
References fgkStripSideLength, and fgkStripSideShift.
|
inlinestatic |
| [in] | address | Unique channel address. |
Definition at line 50 of file BmnHodoAddress.h.
References fgkSystemIdLength, and fgkSystemIdShift.
Referenced by BmnHodoDigit::GetSystemId().
|
inlinestatic |
| [in] | address | Unique channel address. |
Definition at line 50 of file BmnHodoAddress.h.
References fgkSystemIdLength, and fgkSystemIdShift.
|
staticprivate |
Definition at line 87 of file BmnHodoAddress.h.
Referenced by GetAddress(), and GetGain().
|
staticprivate |
Definition at line 93 of file BmnHodoAddress.h.
Referenced by GetAddress(), and GetGain().
|
staticprivate |
Definition at line 85 of file BmnHodoAddress.h.
Referenced by GetAddress(), and GetStripId().
|
staticprivate |
Definition at line 91 of file BmnHodoAddress.h.
Referenced by GetAddress(), and GetStripId().
|
staticprivate |
Definition at line 86 of file BmnHodoAddress.h.
Referenced by GetAddress(), and GetStripSide().
|
staticprivate |
Definition at line 92 of file BmnHodoAddress.h.
Referenced by GetAddress(), and GetStripSide().
|
staticprivate |
Definition at line 84 of file BmnHodoAddress.h.
Referenced by GetAddress(), and GetSystemId().
|
staticprivate |
Definition at line 90 of file BmnHodoAddress.h.
Referenced by GetAddress(), and GetSystemId().