ATLAS Offline Software
Loading...
Searching...
No Matches
TGCConnectionSBToHPB.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5// Table of connection between Slave Board and High-Pt Board.
6#ifndef TrigT1TGC_ConnectionSBToHPB_H_
7#define TrigT1TGC_ConnectionSBToHPB_H_
8
11#include <stdexcept>
12
13namespace LVL1TGCTrigger {
14
16 public:
17 int getHPBPortToSB(int type, int index) const;
18 void setHPBPortToSB(int type, int index, int port);
19
20 int getHPBIdToSB(int type, int index) const;
21 void setHPBIdToSB(int type, int index, int id);
22
24 virtual ~TGCConnectionSBToHPB();
27
28 private:
31};
32
33inline
36 throw std::out_of_range("TGCConnectionSBToHPB::getHPBPortToSB: type out of range");
37 }
38 return m_HPBPortToSB[type][index];
39}
40
41inline
44 throw std::out_of_range("TGCConnectionSBToHPB::setHPBPortToSB: type out of range");
45 }
46 if(m_HPBPortToSB[type]==0) m_HPBPortToSB[type] = new int [m_id.at(type).size()];
47 m_HPBPortToSB[type][index] = port;
48}
49
50inline
53 throw std::out_of_range("TGCConnectionSBToHPB::getHPBIdToSB: type out of range");
54 }
55 return m_HPBIdToSB[type][index];
56}
57
58inline
61 throw std::out_of_range("TGCConnectionSBToHPB::setHPBIdToSB: type out of range");
62 }
63 if(m_HPBIdToSB[type]==0) m_HPBIdToSB[type] = new int [m_id.at(type).size()];
64 m_HPBIdToSB[type][index] = id;
65}
66
67} // end of namespace
68
69#endif // TrigT1TGC_ConnectionSBToHPB_H_
std::vector< std::vector< int > > m_id
void setHPBPortToSB(int type, int index, int port)
int getHPBPortToSB(int type, int index) const
void setHPBIdToSB(int type, int index, int id)
TGCConnectionSBToHPB & operator=(const TGCConnectionSBToHPB &right)
int getHPBIdToSB(int type, int index) const
int * m_HPBPortToSB[NumberOfSlaveBoardType]
int * m_HPBIdToSB[NumberOfSlaveBoardType]
Definition index.py:1