#include <TGCConnectionSBToHPB.h>
|
| int | getHPBPortToSB (int type, int index) const |
| void | setHPBPortToSB (int type, int index, int port) |
| int | getHPBIdToSB (int type, int index) const |
| void | setHPBIdToSB (int type, int index, int id) |
| | TGCConnectionSBToHPB () |
| virtual | ~TGCConnectionSBToHPB () |
| | TGCConnectionSBToHPB (const TGCConnectionSBToHPB &right) |
| TGCConnectionSBToHPB & | operator= (const TGCConnectionSBToHPB &right) |
| int | getNumberOfType () const |
| int | getNumber (const unsigned int type) const |
| int | getId (const unsigned int type, const unsigned int board) const |
| void | setNumberOfType (int ntype) |
| void | setNumber (const unsigned int type, int nBoard) |
| void | setId (const unsigned int type, const unsigned int board, int idIn) |
|
| std::vector< std::vector< int > > | m_id |
Definition at line 15 of file TGCConnectionSBToHPB.h.
◆ TGCConnectionSBToHPB() [1/2]
| LVL1TGCTrigger::TGCConnectionSBToHPB::TGCConnectionSBToHPB |
( |
| ) |
|
Definition at line 21 of file TGCConnectionSBToHPB.cxx.
22{
23
25
26 int j;
30 }
31}
void setNumberOfType(int ntype)
int * m_HPBPortToSB[NumberOfSlaveBoardType]
int * m_HPBIdToSB[NumberOfSlaveBoardType]
◆ ~TGCConnectionSBToHPB()
| LVL1TGCTrigger::TGCConnectionSBToHPB::~TGCConnectionSBToHPB |
( |
| ) |
|
|
virtual |
◆ TGCConnectionSBToHPB() [2/2]
Definition at line 33 of file TGCConnectionSBToHPB.cxx.
33 :
35{
36 int j;
42 for(
unsigned int k=0;
k <
m_id.at(j).size();
k++) {
45 }
46 }
47}
std::vector< std::vector< int > > m_id
◆ getHPBIdToSB()
| int LVL1TGCTrigger::TGCConnectionSBToHPB::getHPBIdToSB |
( |
int | type, |
|
|
int | index ) const |
|
inline |
Definition at line 51 of file TGCConnectionSBToHPB.h.
51 {
53 throw std::out_of_range("TGCConnectionSBToHPB::getHPBIdToSB: type out of range");
54 }
56}
◆ getHPBPortToSB()
| int LVL1TGCTrigger::TGCConnectionSBToHPB::getHPBPortToSB |
( |
int | type, |
|
|
int | index ) const |
|
inline |
Definition at line 34 of file TGCConnectionSBToHPB.h.
34 {
36 throw std::out_of_range("TGCConnectionSBToHPB::getHPBPortToSB: type out of range");
37 }
39}
◆ getId()
| int LVL1TGCTrigger::TGCBoardConnection::getId |
( |
const unsigned int | type, |
|
|
const unsigned int | board ) const |
|
inlineinherited |
Definition at line 41 of file TGCBoardConnection.h.
41 {
42 if (
m_id.size() <= type ||
43 m_id.at(type).size() <= board) {
44 std::cerr << "TGCBoardConnection::getId : Undefined board is provided" << std::endl;
45 return -1;
46 }
47 return m_id.at(type).at(board);
48}
◆ getNumber()
| int LVL1TGCTrigger::TGCBoardConnection::getNumber |
( |
const unsigned int | type | ) |
const |
|
inlineinherited |
Definition at line 33 of file TGCBoardConnection.h.
33 {
34 if (
m_id.size() <= type) {
35 std::cerr << "TGCBoardConnection::getNumber : No defined type provided" << std::endl;
36 return -1;
37 }
38 return m_id.at(type).size();
39}
◆ getNumberOfType()
| int LVL1TGCTrigger::TGCBoardConnection::getNumberOfType |
( |
| ) |
const |
|
inlineinherited |
◆ operator=()
Definition at line 49 of file TGCConnectionSBToHPB.cxx.
50{
51 if(this!=&right){
53 int j;
59 for (
unsigned int k=0;
k<
m_id.at(j).size();
k++) {
62 }
63 }
64 }
65 return *this;
66}
TGCBoardConnection & operator=(const TGCBoardConnection &right)
◆ setHPBIdToSB()
| void LVL1TGCTrigger::TGCConnectionSBToHPB::setHPBIdToSB |
( |
int | type, |
|
|
int | index, |
|
|
int | id ) |
|
inline |
Definition at line 59 of file TGCConnectionSBToHPB.h.
59 {
61 throw std::out_of_range("TGCConnectionSBToHPB::setHPBIdToSB: type out of range");
62 }
65}
◆ setHPBPortToSB()
| void LVL1TGCTrigger::TGCConnectionSBToHPB::setHPBPortToSB |
( |
int | type, |
|
|
int | index, |
|
|
int | port ) |
|
inline |
Definition at line 42 of file TGCConnectionSBToHPB.h.
42 {
44 throw std::out_of_range("TGCConnectionSBToHPB::setHPBPortToSB: type out of range");
45 }
48}
◆ setId()
| void LVL1TGCTrigger::TGCBoardConnection::setId |
( |
const unsigned int | type, |
|
|
const unsigned int | board, |
|
|
int | idIn ) |
|
inherited |
Definition at line 36 of file TGCBoardConnection.cxx.
36 {
37 if (type <
m_id.size()) {
38 if (board <
m_id.at(type).size()) {
39 m_id.at(type).at(board) = idIn;
40 } else {
41 m_id.at(type).resize(board+1);
42 m_id.at(type).at(board) = idIn;
43 }
44 } else {
46 m_id.at(type).resize(board+1);
47 m_id.at(type).at(board) = idIn;
48 }
49}
◆ setNumber()
| void LVL1TGCTrigger::TGCBoardConnection::setNumber |
( |
const unsigned int | type, |
|
|
int | nBoard ) |
|
inherited |
◆ setNumberOfType()
| void LVL1TGCTrigger::TGCBoardConnection::setNumberOfType |
( |
int | ntype | ) |
|
|
inherited |
◆ m_HPBIdToSB
◆ m_HPBPortToSB
◆ m_id
| std::vector<std::vector<int> > LVL1TGCTrigger::TGCBoardConnection::m_id |
|
protectedinherited |
The documentation for this class was generated from the following files: