9#include <framework/logging/Logger.h>
11#include <arich/dbobjects/ARICHHvCrateCableMapping.h>
24 return sectorCable[0];
30 return sectorCable[1];
35 int connectionID = -1;
37 if (i.second == sectorCable) connectionID = i.first;
45 m_connection2cable.insert(std::pair<
int, std::vector<int>>(connectionID, sectorCable));
51 int connectionID = x.first;
52 std::vector<int> cables = x.second;
53 B2INFO(
"Connection " << connectionID <<
": sector " << cables[0] <<
", cable " << cables[1]);
void addMapping(int connectionID, std::vector< int > sectorCable)
Add new entry to the mapping table.
int getCable(int connectionID) const
Get sector ID.
std::map< int, std::vector< int > > m_connection2cable
map of modules to cables
int getSector(int connectionID) const
Get sector ID.
void print() const
Print mapping parameters.
ARICHHvCrateCableMapping()
Default constructor.
int getConnectionID(const std::vector< int > §orCable) const
Get sector ID.
Abstract base class for different kinds of events.