ATLAS Offline Software
TGCConnectionSBToHPB.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 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 
10 #include "TrigT1TGC/TGCNumbering.h"
11 
12 namespace LVL1TGCTrigger {
13 
15  public:
16  int getHPBPortToSB(int type, int index) const;
17  void setHPBPortToSB(int type, int index, int port);
18 
19  int getHPBIdToSB(int type, int index) const;
20  void setHPBIdToSB(int type, int index, int id);
21 
23  virtual ~TGCConnectionSBToHPB();
26 
27  private:
30 };
31 
32 inline
34  return m_HPBPortToSB[type][index];
35 }
36 
37 inline
39  if(m_HPBPortToSB[type]==0) m_HPBPortToSB[type] = new int [m_id.at(type).size()];
40  m_HPBPortToSB[type][index] = port;
41 }
42 
43 inline
45  return m_HPBIdToSB[type][index];
46 }
47 
48 inline
50  if(m_HPBIdToSB[type]==0) m_HPBIdToSB[type] = new int [m_id.at(type).size()];
52 }
53 
54 } // end of namespace
55 
56 #endif // TrigT1TGC_ConnectionSBToHPB_H_
LVL1TGCTrigger::TGCConnectionSBToHPB::m_HPBPortToSB
int * m_HPBPortToSB[NumberOfSlaveBoardType]
Definition: TGCConnectionSBToHPB.h:28
LVL1TGCTrigger::TGCConnectionSBToHPB::operator=
TGCConnectionSBToHPB & operator=(const TGCConnectionSBToHPB &right)
Definition: TGCConnectionSBToHPB.cxx:49
LVL1TGCTrigger::NumberOfSlaveBoardType
@ NumberOfSlaveBoardType
Definition: TGCNumbering.h:57
index
Definition: index.py:1
LVL1TGCTrigger::TGCBoardConnection
Definition: TGCBoardConnection.h:13
LVL1TGCTrigger::TGCConnectionSBToHPB::~TGCConnectionSBToHPB
virtual ~TGCConnectionSBToHPB()
Definition: TGCConnectionSBToHPB.cxx:9
LVL1TGCTrigger::TGCConnectionSBToHPB::getHPBIdToSB
int getHPBIdToSB(int type, int index) const
Definition: TGCConnectionSBToHPB.h:44
LVL1TGCTrigger::TGCBoardConnection::m_id
std::vector< std::vector< int > > m_id
Definition: TGCBoardConnection.h:30
LVL1TGCTrigger::TGCConnectionSBToHPB::m_HPBIdToSB
int * m_HPBIdToSB[NumberOfSlaveBoardType]
Definition: TGCConnectionSBToHPB.h:29
LVL1TGCTrigger
Definition: LVL1TGCTrigger.cxx:47
LVL1TGCTrigger::TGCConnectionSBToHPB::getHPBPortToSB
int getHPBPortToSB(int type, int index) const
Definition: TGCConnectionSBToHPB.h:33
LVL1TGCTrigger::TGCConnectionSBToHPB::setHPBPortToSB
void setHPBPortToSB(int type, int index, int port)
Definition: TGCConnectionSBToHPB.h:38
LVL1TGCTrigger::TGCConnectionSBToHPB
Definition: TGCConnectionSBToHPB.h:14
TGCBoardConnection.h
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:194
TGCNumbering.h
LVL1TGCTrigger::TGCConnectionSBToHPB::setHPBIdToSB
void setHPBIdToSB(int type, int index, int id)
Definition: TGCConnectionSBToHPB.h:49
DeMoScan.index
string index
Definition: DeMoScan.py:362
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
LVL1TGCTrigger::TGCConnectionSBToHPB::TGCConnectionSBToHPB
TGCConnectionSBToHPB()
Definition: TGCConnectionSBToHPB.cxx:21