12#ifndef O2_MCH_RAW_ELECMAP_MAPPER_H
13#define O2_MCH_RAW_ELECMAP_MAPPER_H
20#include <fmt/format.h>
A DsDetId is just a pair (detection element id, dual sampa id)
std::optional< uint16_t > solarIndex2Id(uint16_t solarIndex)
std::array< int, 2 > deIdsOfCH1L
std::array< int, 9 > deIdsOfCH5L
std::array< int, 2 > deIdsOfCH2L
std::array< int, 9 > deIdsOfCH6R
std::array< int, 2 > deIdsOfCH3R
std::array< int, 2 > deIdsOfCH1R
std::array< int, 9 > deIdsOfCH5R
std::function< std::optional< DsDetId >(DsElecId)> Elec2DetMapper
std::array< int, 13 > deIdsOfCH7R
std::array< int, 13 > deIdsOfCH8R
std::optional< uint16_t > solarId2Index(uint16_t solarId)
std::array< int, 9 > deIdsOfCH6L
std::set< DsElecId > getAllDs()
std::array< int, 2 > deIdsOfCH3L
Solar2FeeLinkMapper createSolar2FeeLinkMapper()
std::set< DsDetId > getDualSampasPerFeeId(uint16_t feeId)
List of Dual Sampa handled by a given FeeId.
std::array< int, 2 > deIdsOfCH2R
std::vector< std::string > solar2FeeLinkConsistencyCheck()
std::set< DsDetId > getDualSampas(uint16_t solarId)
List of Dual Sampa handled by a given Solar.
FeeLink2SolarMapper createFeeLink2SolarMapper()
Det2ElecMapper createDet2ElecMapper()
std::function< std::optional< DsElecId >(DsDetId id)> Det2ElecMapper
From (deId,dsId) to (solarId,groupId,index)
std::array< int, 13 > deIdsOfCH8L
Elec2DetMapper createElec2DetMapper(uint64_t timestamp=0)
std::array< int, 13 > deIdsOfCH10L
std::array< int, 13 > deIdsOfCH9L
std::set< uint16_t > getSolarUIDsPerFeeId(uint16_t feeId)
List of Solar Unique Ids for a given FeeId.
std::array< int, 13 > deIdsOfCH10R
std::array< int, 2 > deIdsOfCH4L
std::function< std::optional< uint16_t >(FeeLinkId id)> FeeLink2SolarMapper
From (feeId,linkId) to solarId.
std::array< int, 13 > deIdsOfCH9R
std::function< std::optional< FeeLinkId >(uint16_t solarId)> Solar2FeeLinkMapper
From solarId to (feeId,linkId)
std::array< int, 2 > deIdsOfCH4R
std::array< int, 13 > deIdsOfCH7L
std::set< uint16_t > getSolarUIDs()
List of Solar Unique Ids for all MCH.
static std::string sCruMap
static std::string sFecMap