Belle II Software development
|
This class provides ARICH mapping of HAPD modules to bias power supply channels. 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. | |
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 | getPinID (std::vector< int > channelID) 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 | getInnerID (std::vector< int > channel) const |
Get inner cable pin ID from bias power supply channel ID. | |
int | getConnectionID (std::vector< int > channel) const |
Get inner cable pin ID from bias power supply channel ID. | |
std::tuple< int, int, std::string > | getInnerConnection (std::vector< int > channel) const |
Get inner cable ID and type, connected to bias channel. | |
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. | |
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 | |
This class provides ARICH mapping of HAPD modules to bias power supply channels.
Definition at line 27 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.
[in] | crate | Crate ID number. |
[in] | slot | Slot ID number. |
[in] | channelID | Power supply channel ID number. |
[in] | pinID | Pin ID of inner cable. |
[in] | connectionID | Connection number. |
[in] | innerID | ID of inner cable. |
[in] | 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.
[in] | crate | Crate ID number. |
[in] | slot | Slot ID number. |
[in] | connectionID | Connection number. |
[in] | innerID | ID of inner cable. |
[in] | 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.
[in] | innerID | ID of inner cable. |
[in] | type | Type of inner cable. |
[in] | 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.
[in] | 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.
[in] | 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.
[in] | 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.
[in] | 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.
[in] | channel | Power supply channel numbers; crate, slot, channelID. |
Definition at line 36 of file ARICHBiasChannelsMapping.cc.
void print | ( | ) | const |
Print properties.
Definition at line 89 of file ARICHBiasChannelsMapping.cc.
|
private |
power suply channel ID link to inner cable
Definition at line 115 of file ARICHBiasChannelsMapping.h.