ATLAS Offline Software
Loading...
Searching...
No Matches
TGCConnectionPPToSB.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 Patch Panel and Slave Board.
6#ifndef TrigT1TGC_ConnectionPPToSB_H_
7#define TrigT1TGC_ConnectionPPToSB_H_
8
10#include "TrigT1TGC/TGCSector.h"
11
12namespace 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
33inline
34int TGCConnectionPPToSB::getSBIdToPP(int type, int port, int index) const
35{
36 return m_SBIdToPP[port][type][index];
37}
38
39inline
40void 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
std::vector< std::vector< int > > m_id
void setSBIdToPP(int type, int port, int index, int idIn)
int getSBIdToPP(int type, int port, int index) const
TGCConnectionPPToSB & operator=(const TGCConnectionPPToSB &right)
int * m_SBIdToPP[N_PP_PORTS][TGCSector::NumberOfPatchPanelType]
Definition index.py:1