|
BmnRoot
|
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. | |
BmnHodo interface class to the unique address.
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 |
Return address from system ID, StripId, StripSide, Gain.
| [in] | StripId. | |
| [in] | StripSide. | |
| [in] | Gain. |
Definition at line 35 of file BmnHodoAddress.h.
References kHODO.
Referenced by BmnHistHodo::ClearRefRun(), BmnHistHodo::CreateHistos(), BmnHistHodo::DrawBoth(), BmnHodoDigitizer::Exec(), BmnHistHodo::FillFromDigi(), BmnHodoGeo::GetAddressFromPath(), BmnHodoDigitizer::LoadCalibration(), make_flat_index(), BmnHodoRaw2Digit::ParseCalibration(), BmnHodoRaw2Digit::ParseConfig(), BmnHistHodo::Reset(), BmnHistHodo::SetDir(), simple_analysis(), and BmnHistHodo::~BmnHistHodo().
|
inlinestatic |
Return address from system ID, StripId, StripSide, Gain.
| [in] | StripId. | |
| [in] | StripSide. | |
| [in] | Gain. |
Definition at line 35 of file BmnHodoAddress.h.
References kHODO.
|
inlinestatic |
Return Gain from address.
| [in] | address | Unique channel address. |
Definition at line 80 of file BmnHodoAddress.h.
Referenced by BmnHodoDigitizer::Exec(), BmnHodoDigi::GetGain(), and BmnHodoDigit::GetGain().
|
inlinestatic |
Return Gain from address.
| [in] | address | Unique channel address. |
Definition at line 80 of file BmnHodoAddress.h.
|
inlinestatic |
Return Strip id from address.
| [in] | address | Unique channel address. |
Definition at line 60 of file BmnHodoAddress.h.
Referenced by BmnHodoDigitizer::Exec(), BmnHodoGeo::GetMaxStripId(), and BmnHodoDigit::GetStripId().
|
inlinestatic |
Return Strip id from address.
| [in] | address | Unique channel address. |
Definition at line 60 of file BmnHodoAddress.h.
|
inlinestatic |
Return Strip side from address.
| [in] | address | Unique channel address. |
Definition at line 70 of file BmnHodoAddress.h.
Referenced by BmnHodoDigitizer::Exec(), BmnHodoDigi::GetStripSide(), and BmnHodoDigit::GetStripSide().
|
inlinestatic |
Return Strip side from address.
| [in] | address | Unique channel address. |
Definition at line 70 of file BmnHodoAddress.h.
|
inlinestatic |
Return System identifier from address.
| [in] | address | Unique channel address. |
Definition at line 50 of file BmnHodoAddress.h.
Referenced by BmnHodoDigit::GetSystemId().
|
inlinestatic |
Return System identifier from address.
| [in] | address | Unique channel address. |
Definition at line 50 of file BmnHodoAddress.h.