|
BmnRoot
|
BmnFHCal interface class to the unique address. More...
#include <BmnFHCalAddress.h>
Public Member Functions | |
| virtual | ~BmnFHCalAddress () |
| virtual | ~BmnFHCalAddress () |
Static Public Member Functions | |
| static uint32_t | GetAddress (uint32_t ModuleType, 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 uint32_t | GetAddress (uint32_t ModuleType, 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. | |
BmnFHCal interface class to the unique address.
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.
|
inlinevirtual |
Definition at line 30 of file BmnFHCalAddress.h.
|
inlinestatic |
Return address from system ID, Module type, Module ID, Section ID, Scintillator ID (optional).
| [in] | Module | type. |
| [in] | Module | id. |
| [in] | Section | id. |
| [in] | Scintillator | id. |
Definition at line 39 of file BmnFHCalAddress.h.
References kFHCAL.
Referenced by BmnFHCalGeo::GetAddressFromPath(), light_yield(), and BmnFHCalRaw2Digit::ParseConfig().
|
inlinestatic |
Return address from system ID, Module type, Module ID, Section ID, Scintillator ID (optional).
| [in] | Module | type. |
| [in] | Module | id. |
| [in] | Section | id. |
| [in] | Scintillator | id. |
Definition at line 39 of file BmnFHCalAddress.h.
References kFHCAL.
|
inlinestatic |
Return a formatted string with all address components.
| [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 |
Return a formatted string with all address components.
| [in] | address | Unique channel address. |
Definition at line 55 of file BmnFHCalAddress.h.
References GetModuleId(), GetModuleType(), GetScintillatorId(), GetSectionId(), and GetSystemId().
|
inlinestatic |
Return Module id from address.
| [in] | address | Unique channel address. |
Definition at line 89 of file BmnFHCalAddress.h.
Referenced by calibrate_wfm(), GetInfoString(), BmnFHCalGeo::GetMaxModuleId(), BmnFHCalDigit::GetModuleId(), BmnFHCalPoint::GetModuleId(), BmnFHCalRaw2Digit::ParseCalibration(), and BmnFHCalReconstructor::ParseGeometry().
|
inlinestatic |
Return Module id from address.
| [in] | address | Unique channel address. |
Definition at line 89 of file BmnFHCalAddress.h.
|
inlinestatic |
Return Module id from address.
| [in] | address | Unique channel address. |
Definition at line 79 of file BmnFHCalAddress.h.
Referenced by GetInfoString(), BmnFHCalDigit::GetModuleType(), BmnFHCalPoint::GetModuleType(), and BmnFHCalReconstructor::ParseGeometry().
|
inlinestatic |
Return Module id from address.
| [in] | address | Unique channel address. |
Definition at line 79 of file BmnFHCalAddress.h.
|
inlinestatic |
Return Physical address (w/o scintillator id) from address.
| [in] | address | Unique channel address. |
Definition at line 119 of file BmnFHCalAddress.h.
Referenced by BmnFHCalGeo::ListNodesImpl().
|
inlinestatic |
Return Physical address (w/o scintillator id) from address.
| [in] | address | Unique channel address. |
Definition at line 119 of file BmnFHCalAddress.h.
|
inlinestatic |
Return Scintillator id from address.
| [in] | address | Unique channel address. |
Definition at line 109 of file BmnFHCalAddress.h.
Referenced by GetInfoString(), BmnFHCalPoint::GetScintillatorId(), and BmnFHCalGeo::ListNodesImpl().
|
inlinestatic |
Return Scintillator id from address.
| [in] | address | Unique channel address. |
Definition at line 109 of file BmnFHCalAddress.h.
|
inlinestatic |
Return Section id from address.
| [in] | address | Unique channel address. |
Definition at line 99 of file BmnFHCalAddress.h.
Referenced by GetInfoString(), BmnFHCalDigit::GetSectionId(), BmnFHCalPoint::GetSectionId(), BmnFHCalRaw2Digit::ParseCalibration(), and BmnFHCalReconstructor::ParseGeometry().
|
inlinestatic |
Return Section id from address.
| [in] | address | Unique channel address. |
Definition at line 99 of file BmnFHCalAddress.h.
|
inlinestatic |
Return System identifier from address.
| [in] | address | Unique channel address. |
Definition at line 69 of file BmnFHCalAddress.h.
Referenced by GetInfoString(), BmnFHCalDigit::GetSystemId(), and BmnFHCalPoint::GetSystemId().
|
inlinestatic |
Return System identifier from address.
| [in] | address | Unique channel address. |
Definition at line 69 of file BmnFHCalAddress.h.