ATLAS Offline Software
TGCConnectionHPBToSL.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 High-Pt Board and Sector Logic
6 #ifndef TrigT1TGC_ConnectionHPBToSL_H_
7 #define TrigT1TGC_ConnectionHPBToSL_H_
8 
10 #include "TrigT1TGC/TGCSector.h"
11 
12 namespace LVL1TGCTrigger {
13 
15 {
16  public:
19  virtual ~TGCConnectionHPBToSL();
20 
21  int getSLPortToHPB(int type, int index) const;
22  void setSLPortToHPB(int type, int index, int port);
23 
25 
26  private:
28 };
29 
30 inline
32  return m_SLPortToHPB[type][index];
33 }
34 
35 inline
37  if (m_SLPortToHPB[type] == 0) m_SLPortToHPB[type] = new int [m_id.at(type).size()];
38  m_SLPortToHPB[type][index] = port;
39 }
40 
41 } // end of namespace
42 
43 #endif // TrigT1TGC_ConnectionHPBToSL_H_
LVL1TGCTrigger::TGCConnectionHPBToSL::TGCConnectionHPBToSL
TGCConnectionHPBToSL()
Definition: TGCConnectionHPBToSL.cxx:10
LVL1TGCTrigger::TGCConnectionHPBToSL::m_SLPortToHPB
int * m_SLPortToHPB[TGCSector::NumberOfHighPtBoardType]
Definition: TGCConnectionHPBToSL.h:27
LVL1TGCTrigger::TGCConnectionHPBToSL::operator=
TGCConnectionHPBToSL & operator=(const TGCConnectionHPBToSL &right)
Definition: TGCConnectionHPBToSL.cxx:37
index
Definition: index.py:1
TGCSector.h
LVL1TGCTrigger::TGCConnectionHPBToSL::~TGCConnectionHPBToSL
virtual ~TGCConnectionHPBToSL()
Definition: TGCConnectionHPBToSL.cxx:29
LVL1TGCTrigger::TGCBoardConnection
Definition: TGCBoardConnection.h:13
LVL1TGCTrigger::TGCConnectionHPBToSL
Definition: TGCConnectionHPBToSL.h:15
LVL1TGCTrigger::TGCBoardConnection::m_id
std::vector< std::vector< int > > m_id
Definition: TGCBoardConnection.h:30
LVL1TGCTrigger
Definition: LVL1TGCTrigger.cxx:47
TGCBoardConnection.h
DeMoScan.index
string index
Definition: DeMoScan.py:364
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
LVL1TGCTrigger::TGCConnectionHPBToSL::setSLPortToHPB
void setSLPortToHPB(int type, int index, int port)
Definition: TGCConnectionHPBToSL.h:36
LVL1TGCTrigger::TGCSector::NumberOfHighPtBoardType
@ NumberOfHighPtBoardType
Definition: TGCSector.h:34
LVL1TGCTrigger::TGCConnectionHPBToSL::getSLPortToHPB
int getSLPortToHPB(int type, int index) const
Definition: TGCConnectionHPBToSL.h:31