|
BmnRoot 26.10.0-210-gc52d34b0
Software framework of the BM@N experiment
|
BmnFHCal interface class to the unique address. More...
#include <BmnFHCalAddress.h>
Public Member Functions | |
| virtual | ~BmnFHCalAddress () |
Static Public Member Functions | |
| static uint32_t | GetAddress (uint32_t ModuleTypeModuleType, uint32_t ModuleId, uint32_t SectionId, uint32_t ScintillatorId=0) |
| Return address from system ID, Module type, Module ID, Section ID, Scintillator ID (optional). | |
| 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 | GetModuleType (uint32_t address) |
| Return Module id from address. | |
| static uint32_t | GetModuleId (uint32_t address) |
| Return Module id from address. | |
| static uint32_t | GetSectionId (uint32_t address) |
| Return Section id from address. | |
| static uint32_t | GetScintillatorId (uint32_t address) |
| Return Scintillator id from address. | |
| static uint32_t | GetPhysicalAddress (uint32_t address) |
| Return Physical address (w/o scintillator id) from address. | |
Static Private Attributes | |
| static const uint32_t | fgkSystemIdLength = 31 |
| static const uint32_t | fgkModTypeLength = 3 |
| static const uint32_t | fgkModIdxLength = 127 |
| static const uint32_t | fgkSecIdxLength = 15 |
| static const uint32_t | fgkScintIdxLength = 7 |
| static const uint32_t | fgkSystemIdShift = 0 |
| static const uint32_t | fgkModTypeShift = 5 |
| static const uint32_t | fgkModIdxShift = 7 |
| static const uint32_t | fgkSecIdxShift = 14 |
| static const uint32_t | fgkScintIdxShift = 18 |
BmnFHCalAddress is the class for the concrete interfaces to the unique address, which is encoded in a 32-bit field (uint32_t), for the FHCal detector elements.
3 2 1 0 Shift Bits Values
Current definition: 10987654321098765432109876543210 System id on bits 0- 4 00000000000000000000000000011111 << 0 5 31 ModType on bits 5- 6 00000000000000000000000001100000 << 5 2 3 ModIdx on bits 7-13 00000000000000000011111110000000 << 7 7 127 SecIdx on bits 14-17 00000000000000111100000000000000 <<14 4 15 ScintIdx on bits 18-20 00000000000111000000000000000000 <<18 3 7
Definition at line 27 of file BmnFHCalAddress.h.
|
inlinevirtual |
Definition at line 30 of file BmnFHCalAddress.h.
|
inlinestatic |
| [in] | ModuleType | Module type. |
| [in] | ModuleId | Module id. |
| [in] | SectionId | Section id. |
| [in] | ScintillatorId | Scintillator id. |
Definition at line 39 of file BmnFHCalAddress.h.
References fgkModIdxLength, fgkModIdxShift, fgkModTypeLength, fgkModTypeShift, fgkScintIdxLength, fgkScintIdxShift, fgkSecIdxLength, fgkSecIdxShift, fgkSystemIdLength, fgkSystemIdShift, and kFHCAL.
Referenced by BmnFHCalGeo::GetAddressFromPath(), light_yield(), and BmnFHCalRaw2Digit::ParseConfig().
|
inlinestatic |
| [in] | address | Unique channel address. |
Definition at line 55 of file BmnFHCalAddress.h.
References GetModuleId(), GetModuleType(), GetScintillatorId(), GetSectionId(), and GetSystemId().
Referenced by BmnFHCalDigitizer::Exec(), BmnFHCalPoint::Print(), and BmnFHCal::ProcessHits().
|
inlinestatic |
| [in] | address | Unique channel address. |
Definition at line 89 of file BmnFHCalAddress.h.
References fgkModIdxLength, and fgkModIdxShift.
Referenced by calibrate_wfm(), GetInfoString(), BmnFHCalGeo::GetMaxModuleId(), BmnFHCalDigit::GetModuleId(), BmnFHCalPoint::GetModuleId(), BmnFHCalRaw2Digit::ParseCalibration(), and BmnFHCalReconstructor::ParseGeometry().
|
inlinestatic |
| [in] | address | Unique channel address. |
Definition at line 79 of file BmnFHCalAddress.h.
References fgkModTypeLength, and fgkModTypeShift.
Referenced by GetInfoString(), BmnFHCalDigit::GetModuleType(), BmnFHCalPoint::GetModuleType(), and BmnFHCalReconstructor::ParseGeometry().
|
inlinestatic |
| [in] | address | Unique channel address. |
Definition at line 119 of file BmnFHCalAddress.h.
References fgkScintIdxShift.
Referenced by BmnFHCalDigitizer::FillHitMap(), and BmnFHCalGeo::ListNodesImpl().
|
inlinestatic |
| [in] | address | Unique channel address. |
Definition at line 109 of file BmnFHCalAddress.h.
References fgkScintIdxLength, and fgkScintIdxShift.
Referenced by GetInfoString(), BmnFHCalPoint::GetScintillatorId(), and BmnFHCalGeo::ListNodesImpl().
|
inlinestatic |
| [in] | address | Unique channel address. |
Definition at line 99 of file BmnFHCalAddress.h.
References fgkSecIdxLength, and fgkSecIdxShift.
Referenced by GetInfoString(), BmnFHCalDigit::GetSectionId(), BmnFHCalPoint::GetSectionId(), BmnFHCalRaw2Digit::ParseCalibration(), and BmnFHCalReconstructor::ParseGeometry().
|
inlinestatic |
| [in] | address | Unique channel address. |
Definition at line 69 of file BmnFHCalAddress.h.
References fgkSystemIdLength, and fgkSystemIdShift.
Referenced by GetInfoString(), BmnFHCalDigit::GetSystemId(), and BmnFHCalPoint::GetSystemId().
|
staticprivate |
Definition at line 125 of file BmnFHCalAddress.h.
Referenced by GetAddress(), and GetModuleId().
|
staticprivate |
Definition at line 132 of file BmnFHCalAddress.h.
Referenced by GetAddress(), and GetModuleId().
|
staticprivate |
Definition at line 124 of file BmnFHCalAddress.h.
Referenced by GetAddress(), and GetModuleType().
|
staticprivate |
Definition at line 131 of file BmnFHCalAddress.h.
Referenced by GetAddress(), and GetModuleType().
|
staticprivate |
Definition at line 127 of file BmnFHCalAddress.h.
Referenced by GetAddress(), and GetScintillatorId().
|
staticprivate |
Definition at line 134 of file BmnFHCalAddress.h.
Referenced by GetAddress(), GetPhysicalAddress(), and GetScintillatorId().
|
staticprivate |
Definition at line 126 of file BmnFHCalAddress.h.
Referenced by GetAddress(), and GetSectionId().
|
staticprivate |
Definition at line 133 of file BmnFHCalAddress.h.
Referenced by GetAddress(), and GetSectionId().
|
staticprivate |
Definition at line 123 of file BmnFHCalAddress.h.
Referenced by GetAddress(), and GetSystemId().
|
staticprivate |
Definition at line 130 of file BmnFHCalAddress.h.
Referenced by GetAddress(), and GetSystemId().