A class to keep paths to nodes vs. hardware addresses for different detectors.
More...
#include <CbmGeoNodeMap.h>
|
| | GeoNodeMap (std::unordered_map< uint32_t, std::string > &&nodeMap) |
| | Constructor.
|
| |
| const std::string & | GetNodePath (uint32_t address) const |
| | A common function to get a path of a node.
|
| |
| const auto & | GetNodeMap () const |
| | An accessor to the node map.
|
| |
| algo::GeoVolume | ReadGeoVolume (uint32_t address) |
| | Read volume properties of the node.
|
| |
| template<class Visitor> |
| auto | GetVolumeProperties (Visitor &&visitor, ECbmModuleId moduleId) const |
| | Read volume properties for a given ModuleId.
|
| |
|
| std::unordered_map< uint32_t, std::string > | fNodeMap |
| | Map of geometrical nodes vs hardware address.
|
| |
A class to keep paths to nodes vs. hardware addresses for different detectors.
Definition at line 27 of file CbmGeoNodeMap.h.
◆ GeoNodeMap()
| GeoNodeMap::GeoNodeMap |
( |
std::unordered_map< uint32_t, std::string > && | nodeMap | ) |
|
|
explicit |
Constructor.
- Parameters
-
| nodeMap | A map for address->geo node |
Definition at line 18 of file CbmGeoNodeMap.cxx.
◆ AlignableMask()
| static uint32_t cbm::GeoNodeMap::AlignableMask |
( |
| ) |
|
|
inlinestaticprivate |
◆ ApplyMask() [1/2]
| static uint32_t cbm::GeoNodeMap::ApplyMask |
( |
uint32_t | address | ) |
|
|
inlinestatic |
Applies mask.
- Parameters
-
| address | Software address of detector element |
Definition at line 87 of file CbmGeoNodeMap.h.
◆ ApplyMask() [2/2]
| static uint32_t cbm::GeoNodeMap::ApplyMask |
( |
uint32_t | address, |
|
|
ECbmModuleId | moduleId ) |
|
inlinestatic |
Applies mask.
- Parameters
-
| address | Software address of detector element |
| moduleId | CBM module identifier |
Definition at line 73 of file CbmGeoNodeMap.h.
◆ GetNodeMap()
| const auto & cbm::GeoNodeMap::GetNodeMap |
( |
| ) |
const |
|
inline |
◆ GetNodePath()
| const std::string & cbm::GeoNodeMap::GetNodePath |
( |
uint32_t | address | ) |
const |
|
inline |
A common function to get a path of a node.
- Parameters
-
| address | Software address of detector element |
Definition at line 35 of file CbmGeoNodeMap.h.
◆ GetVolumeProperties()
template<class Visitor>
| auto cbm::GeoNodeMap::GetVolumeProperties |
( |
Visitor && | visitor, |
|
|
ECbmModuleId | moduleId ) const |
|
inline |
Read volume properties for a given ModuleId.
- Template Parameters
-
| Visitor | A type of callable, which returns a desired volume property |
- Parameters
-
| visitor | A callable object |
| moduleId | CBM module identifier for a subsystem to read nodes |
- Returns
- A map of volume properties
Definition at line 58 of file CbmGeoNodeMap.h.
◆ ReadGeoVolume()
Read volume properties of the node.
- Parameters
-
Definition at line 25 of file CbmGeoNodeMap.cxx.
◆ fNodeMap
| std::unordered_map<uint32_t, std::string> cbm::GeoNodeMap::fNodeMap |
|
private |
Map of geometrical nodes vs hardware address.
Definition at line 94 of file CbmGeoNodeMap.h.
The documentation for this class was generated from the following files: