1#ifndef TRACKING_RECO_TRACKERDAQMAP_H_
2#define TRACKING_RECO_TRACKERDAQMAP_H_
8namespace tracking::reco {
46 bool has(uint8_t feb, uint8_t hybrid)
const {
55 const SensorInfo&
at(uint8_t feb, uint8_t hybrid)
const;
66 static uint16_t key(uint8_t feb, uint8_t hybrid) {
67 return static_cast<uint16_t
>((
static_cast<uint16_t
>(feb) << 8) | hybrid);
Tracker DAQ map: the correspondence between an electronics sensor address (feb, hybrid) and the detec...
std::map< uint16_t, SensorInfo > sensors_
key = (feb << 8) | hybrid
const SensorInfo & at(uint8_t feb, uint8_t hybrid) const
Look up the sensor read by (feb, hybrid).
std::size_t size() const
Number of sensors in the map.
const std::map< uint16_t, SensorInfo > & sensors() const
All sensors, keyed by (feb << 8) | hybrid.
bool has(uint8_t feb, uint8_t hybrid) const
True if the map has an entry for this electronics sensor.
static TrackerDaqMap fromJsonFile(const std::string &path)
Load a DAQ map from a JSON file.
Everything the mapper needs to know about one physical sensor.
int n_strips_
Number of bonded strips on the sensor.
int first_strip_
Sensor strip index that pchannel 0 maps to.
int layer_id_
Acts surface id (volume*1000 + layer*100 + sensor).
bool reversed_
True if the hybrid reads the sensor descending.