![]() |
Project
|
#include <SurfaceIndexMap.h>
Public Member Functions | |
| void | add (int sensorID, const Acts::Surface &surface) |
| const Acts::Surface * | getSurface (int sensorID) const |
| Acts::GeometryIdentifier | getGeometryId (int sensorID) const |
| const std::vector< int > & | getSensorIDs (Acts::GeometryIdentifier geoId) const |
| bool | empty () const |
| std::size_t | size () const |
| Number of mapped sensors. | |
| std::size_t | getNSurfaces () const |
| Number of distinct surfaces the sensors map onto. | |
| void | clear () |
Static Public Attributes | |
| static constexpr int | InvalidSensorID = -1 |
Lookup between an O2 sensor index (chip ID, as used by the detector's DetMatrixCache-derived geometry helper) and the ACTS surface it sits on.
The relation is many-to-one, not one-to-one. A planar sensor becomes its own ACTS surface, but a sub-detector modelled as a whole cylindrical or disc layer – as the ALICE 3 vertex detector is – becomes a single surface that backs every chip of that layer. Hence getSurface() takes a sensor and getSensorIDs() gives back a list.
ACTS assigns the Acts::GeometryIdentifier inside Acts::Blueprint::construct(), so this map can only be filled once the TrackingGeometry is complete. See makeSurfaceIndex().
Definition at line 56 of file SurfaceIndexMap.h.
| void o2::acts::SurfaceIndexMap::add | ( | int | sensorID, |
| const Acts::Surface & | surface | ||
| ) |
| std::runtime_error | if the sensor is already mapped |
Definition at line 48 of file SurfaceIndexMap.cxx.
| void o2::acts::SurfaceIndexMap::clear | ( | ) |
Definition at line 77 of file SurfaceIndexMap.cxx.
|
inline |
Definition at line 73 of file SurfaceIndexMap.h.
| Acts::GeometryIdentifier o2::acts::SurfaceIndexMap::getGeometryId | ( | int | sensorID | ) | const |
Definition at line 65 of file SurfaceIndexMap.cxx.
|
inline |
Number of distinct surfaces the sensors map onto.
Definition at line 77 of file SurfaceIndexMap.h.
| const std::vector< int > & o2::acts::SurfaceIndexMap::getSensorIDs | ( | Acts::GeometryIdentifier | geoId | ) | const |
All sensors sitting on the given surface, in increasing sensor order.
Definition at line 71 of file SurfaceIndexMap.cxx.
| const Acts::Surface * o2::acts::SurfaceIndexMap::getSurface | ( | int | sensorID | ) | const |
Definition at line 59 of file SurfaceIndexMap.cxx.
|
inline |
Number of mapped sensors.
Definition at line 75 of file SurfaceIndexMap.h.
|
staticconstexpr |
Definition at line 59 of file SurfaceIndexMap.h.