Belle II Software
release-08-01-10
|
The Class for ARICH mapping of bias power supply channels to modules. More...
#include <ARICHBiasChannelsMapping.h>
Public Member Functions | |
ARICHBiasChannelsMapping () | |
Default constructor. | |
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. More... | |
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. More... | |
int | getPinID (std::vector< int > channelID) const |
Get inner cable pin ID from bias power supply channel ID. More... | |
std::string | getType (std::vector< int > channel) const |
Get bias/guard type from channel. More... | |
int | getInnerID (std::vector< int > channel) const |
Get inner cable pin ID from bias power supply channel ID. More... | |
int | getConnectionID (std::vector< int > channel) const |
Get inner cable pin ID from bias power supply channel ID. More... | |
std::tuple< int, int, std::string > | getInnerConnection (std::vector< int > channel) const |
Get inner cable ID and type, connected to bias channel. More... | |
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. More... | |
void | print () const |
Print properties. | |
Private Member Functions | |
ClassDef (ARICHBiasChannelsMapping, 1) | |
ClassDef, must be the last term before the closing {}. | |
Private Attributes | |
std::map< std::vector< int >, std::tuple< int, int, int, std::string > > | m_channel2type |
power suply channel ID link to inner cable | |
The Class for ARICH mapping of bias power supply channels to modules.
This class provides ARICH mapping of HAPD modules to bias power supply channels.
Definition at line 26 of file ARICHBiasChannelsMapping.h.
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.
crate | crate ID number |
slot | slot ID number |
channelID | power supply channel ID number |
pinID | pin ID of inner cable |
connectionID | connection number |
innerID | ID of inner cable |
type | type of inner cable |
Definition at line 75 of file ARICHBiasChannelsMapping.cc.
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.
crate | crate ID number |
slot | slot ID number |
channelID | power supply channel ID number |
innerID | ID of inner cable |
type | type of inner cable |
Definition at line 51 of file ARICHBiasChannelsMapping.cc.
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.
innerID | ID of inner cable |
type | type of inner cable |
connectionID | connection number |
Definition at line 62 of file ARICHBiasChannelsMapping.cc.
int getConnectionID | ( | std::vector< int > | channel | ) | const |
Get inner cable pin ID from bias power supply channel ID.
channel | power supply channel numbers; crate, slot, channelID |
Definition at line 26 of file ARICHBiasChannelsMapping.cc.
std::tuple< int, int, std::string > getInnerConnection | ( | std::vector< int > | channel | ) | const |
Get inner cable ID and type, connected to bias channel.
channel | vector of crate, slot and power supply channel ID number |
Definition at line 43 of file ARICHBiasChannelsMapping.cc.
int getInnerID | ( | std::vector< int > | channel | ) | const |
Get inner cable pin ID from bias power supply channel ID.
channel | power supply channel numbers; crate, slot, channelID |
Definition at line 31 of file ARICHBiasChannelsMapping.cc.
int getPinID | ( | std::vector< int > | channelID | ) | const |
Get inner cable pin ID from bias power supply channel ID.
channelID | power supply channel ID number |
Definition at line 21 of file ARICHBiasChannelsMapping.cc.
std::string getType | ( | std::vector< int > | channel | ) | const |
Get bias/guard type from channel.
channel | power supply channel numbers; crate, slot, channelID |
type | type of inner cable |
Definition at line 36 of file ARICHBiasChannelsMapping.cc.