ATLAS Offline Software
TGCPatchPanelOut.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 #ifndef TGCPatchPanelOut_hh
6 #define TGCPatchPanelOut_hh
7 
10 
11 namespace LVL1TGCTrigger {
12 
14 
15 class TGCPatchPanel;
16 
18  public:
21  TGCPatchPanelOut(const TGCPatchPanelOut& right) = default;
23 
24  const TGCHitPattern* getHitPattern(int connector) const;
25  TGCHitPattern* getHitPattern(int connector);
26  void setHitPattern(int connector, int nCh);
27 
28  const TGCPatchPanel* getOrigin() const;
29  void setOrigin(const TGCPatchPanel* pp);
30 
31  int getBid() const;
32  void setBid(const int bidIn);
33 
34  void print() const;
35  void deleteHitPattern(int i);
36  void clear();
37 
38  private:
40  const TGCPatchPanel* m_origin{nullptr};
42 };
43 
44 
45 inline
47 {
48  return m_signalPattern[connector];
49 }
50 
51 inline
53 {
54  return m_signalPattern[connector];
55 }
56 
57 inline
59 {
60  return m_origin;
61 }
62 
63 inline
64 void TGCPatchPanelOut::setBid(const int bidIn)
65 {
66  m_bid = bidIn;
67 }
68 
69 inline
70 void TGCPatchPanelOut::setHitPattern(int connector, int nCh)
71 {
72  if(m_signalPattern[connector]!=0) delete m_signalPattern[connector];
73  m_signalPattern[connector] = new TGCHitPattern(nCh);
74 }
75 
76 inline
78 {
79  return m_bid;
80 }
81 
82 inline
84 {
85  m_origin = pp;
86 }
87 
88 
89 } //end of namespace bracket
90 
91 #endif // TGCPatchPanelOut_hh
92 
93 
94 
95 
96 
LVL1TGCTrigger::TGCPatchPanelOut::getOrigin
const TGCPatchPanel * getOrigin() const
Definition: TGCPatchPanelOut.h:58
TgcDigit::BC_UNDEFINED
@ BC_UNDEFINED
Definition: TgcDigit.h:37
LVL1TGCTrigger::TGCPatchPanelOut::setOrigin
void setOrigin(const TGCPatchPanel *pp)
Definition: TGCPatchPanelOut.h:83
LVL1TGCTrigger::TGCPatchPanelOut::m_origin
const TGCPatchPanel * m_origin
pointer to Patch Panel generate this PatchPanelOut
Definition: TGCPatchPanelOut.h:40
LVL1TGCTrigger::TGCPatchPanelOut::~TGCPatchPanelOut
~TGCPatchPanelOut()
Definition: TGCPatchPanelOut.cxx:19
LVL1TGCTrigger::TGCPatchPanelOut::operator=
TGCPatchPanelOut & operator=(const TGCPatchPanelOut &right)
Definition: TGCPatchPanelOut.cxx:26
LVL1TGCTrigger::TGCPatchPanelOut::getBid
int getBid() const
Definition: TGCPatchPanelOut.h:77
LVL1TGCTrigger::TGCPatchPanelOut::setHitPattern
void setHitPattern(int connector, int nCh)
Definition: TGCPatchPanelOut.h:70
TGCHitPattern.h
lumiFormat.i
int i
Definition: lumiFormat.py:85
TgcDigit.h
LVL1TGCTrigger::NumberOfConnectorPerPPOut
const int NumberOfConnectorPerPPOut
Definition: TGCPatchPanelOut.h:13
LVL1TGCTrigger::TGCPatchPanelOut::clear
void clear()
LVL1TGCTrigger
Definition: LVL1TGCTrigger.cxx:47
LVL1TGCTrigger::TGCPatchPanelOut::m_signalPattern
TGCHitPattern * m_signalPattern[NumberOfConnectorPerPPOut]
Definition: TGCPatchPanelOut.h:41
LVL1TGCTrigger::TGCPatchPanelOut::print
void print() const
Definition: TGCPatchPanelOut.cxx:46
LVL1TGCTrigger::TGCHitPattern
Definition: TGCHitPattern.h:11
LVL1TGCTrigger::TGCPatchPanelOut::setBid
void setBid(const int bidIn)
Definition: TGCPatchPanelOut.h:64
LVL1TGCTrigger::TGCPatchPanel
Definition: TGCPatchPanel.h:38
LVL1TGCTrigger::TGCPatchPanelOut::m_bid
int m_bid
bunch ID number
Definition: TGCPatchPanelOut.h:39
LVL1TGCTrigger::TGCPatchPanelOut::TGCPatchPanelOut
TGCPatchPanelOut(const TGCPatchPanelOut &right)=default
LVL1TGCTrigger::TGCPatchPanelOut::getHitPattern
const TGCHitPattern * getHitPattern(int connector) const
Definition: TGCPatchPanelOut.h:46
LVL1TGCTrigger::TGCPatchPanelOut::deleteHitPattern
void deleteHitPattern(int i)
Definition: TGCPatchPanelOut.cxx:40
LVL1TGCTrigger::TGCPatchPanelOut::TGCPatchPanelOut
TGCPatchPanelOut()
Definition: TGCPatchPanelOut.cxx:13
LVL1TGCTrigger::TGCPatchPanelOut
Definition: TGCPatchPanelOut.h:17