15#define N_BIASCHANNELS 48
45 int getChannelID(
int crate,
int slot,
int connectionID,
int innerID,
const std::string& type)
const;
55 std::vector<int>
getChannelValues(
int connectionID,
int innerID,
const std::string& type)
const;
62 int getPinID(std::vector<int> channelID)
const;
69 std::string
getType(std::vector<int> channel)
const;
76 int getInnerID(std::vector<int> channel)
const;
105 void addMapping(
int crate,
int slot,
int channelID,
int pinID,
int connectionID,
int innerID,
const std::string& type);
114 std::map<std::vector<int>, std::tuple<int, int, int, std::string>>
This class provides ARICH mapping of HAPD modules to bias power supply channels.
std::vector< int > getChannelValues(int connectionID, int innerID, const std::string &type) const
Get bias power supply cratem slot and channel ID from inner cable type and ID.
int getConnectionID(std::vector< int > channel) const
Get inner cable pin ID from bias power supply channel ID.
int getInnerID(std::vector< int > channel) const
Get inner cable pin ID from bias power supply channel ID.
std::string getType(std::vector< int > channel) const
Get bias/guard type from channel.
int getChannelID(int crate, int slot, int connectionID, int innerID, const std::string &type) const
Get bias power supply channel ID from inner cable type and ID.
std::tuple< int, int, std::string > getInnerConnection(std::vector< int > channel) const
Get inner cable ID and type, connected to bias channel.
int getPinID(std::vector< int > channelID) const
Get inner cable pin ID from bias power supply channel ID.
ARICHBiasChannelsMapping()
Default constructor.
ClassDef(ARICHBiasChannelsMapping, 1)
ClassDef, must be the last term before the closing {}.
void addMapping(int crate, int slot, int channelID, int pinID, int connectionID, int innerID, const std::string &type)
Add new entry to the mapping table.
void print() const
Print properties.
std::map< std::vector< int >, std::tuple< int, int, int, std::string > > m_channel2type
power suply channel ID link to inner cable
Abstract base class for different kinds of events.