ATLAS Offline Software
TGCConnectionPPToSB.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // Table of connection between Patch Panel and Slave Board.
6 #ifndef TrigT1TGC_ConnectionPPToSB_H_
7 #define TrigT1TGC_ConnectionPPToSB_H_
8 
10 #include "TrigT1TGC/TGCSector.h"
11 
12 namespace LVL1TGCTrigger {
13 
15 {
16  public:
17  int getSBIdToPP(int type, int port, int index) const;
18  void setSBIdToPP(int type, int port, int index, int idIn);
19 
24 
25 
26  inline int getNumberOfPort() const { return N_PP_PORTS; }
27 
28  private:
29  static constexpr int N_PP_PORTS = 2;
31 };
32 
33 inline
34 int TGCConnectionPPToSB::getSBIdToPP(int type, int port, int index) const
35 {
36  return m_SBIdToPP[port][type][index];
37 }
38 
39 inline
40 void TGCConnectionPPToSB::setSBIdToPP(int type, int port, int index, int idIn)
41 {
42  if(m_SBIdToPP[port][type]==0)
43  m_SBIdToPP[port][type] = new int [m_id.at(type).size()];
44  m_SBIdToPP[port][type][index] = idIn;
45 }
46 
47 
48 } //end of namespace bracket
49 
50 #endif // TGCConnectionPPToSB_hh
LVL1TGCTrigger::TGCConnectionPPToSB::~TGCConnectionPPToSB
~TGCConnectionPPToSB()
Definition: TGCConnectionPPToSB.cxx:9
LVL1TGCTrigger::TGCConnectionPPToSB::getSBIdToPP
int getSBIdToPP(int type, int port, int index) const
Definition: TGCConnectionPPToSB.h:34
index
Definition: index.py:1
TGCSector.h
LVL1TGCTrigger::TGCConnectionPPToSB
Definition: TGCConnectionPPToSB.h:15
LVL1TGCTrigger::TGCBoardConnection
Definition: TGCBoardConnection.h:13
LVL1TGCTrigger::TGCConnectionPPToSB::N_PP_PORTS
static constexpr int N_PP_PORTS
Definition: TGCConnectionPPToSB.h:29
LVL1TGCTrigger::TGCConnectionPPToSB::getNumberOfPort
int getNumberOfPort() const
Definition: TGCConnectionPPToSB.h:26
LVL1TGCTrigger::TGCBoardConnection::m_id
std::vector< std::vector< int > > m_id
Definition: TGCBoardConnection.h:30
LVL1TGCTrigger::TGCConnectionPPToSB::setSBIdToPP
void setSBIdToPP(int type, int port, int index, int idIn)
Definition: TGCConnectionPPToSB.h:40
LVL1TGCTrigger::TGCConnectionPPToSB::operator=
TGCConnectionPPToSB & operator=(const TGCConnectionPPToSB &right)
Definition: TGCConnectionPPToSB.cxx:40
LVL1TGCTrigger
Definition: LVL1TGCTrigger.cxx:47
TGCBoardConnection.h
LVL1TGCTrigger::TGCConnectionPPToSB::m_SBIdToPP
int * m_SBIdToPP[N_PP_PORTS][TGCSector::NumberOfPatchPanelType]
Definition: TGCConnectionPPToSB.h:30
LVL1TGCTrigger::TGCConnectionPPToSB::TGCConnectionPPToSB
TGCConnectionPPToSB()
Definition: TGCConnectionPPToSB.cxx:19
DeMoScan.index
string index
Definition: DeMoScan.py:364
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
LVL1TGCTrigger::TGCSector::NumberOfPatchPanelType
@ NumberOfPatchPanelType
Definition: TGCSector.h:37