ATLAS Offline Software
TGCHighPtBoardOut.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TGCHighPtBoardOut_hh
6 #define TGCHighPtBoardOut_hh
7 
9 
10 namespace LVL1TGCTrigger {
11 
12 const int MaxNumberOfHPBData = 6;
13 const int SizeOfHitID = 3;
14 const int SizeOfDeltaR = 4;
15 
16 enum TGCHPBBlock {
20 
22 {
23  return rs = (TGCHPBBlock)(rs + 1);
24 }
25 
27 
28 public:
29  TGCHighPtBoardOut(TGCHighPtBoard* hpt, int bidIn);
31  virtual ~TGCHighPtBoardOut() = default;
32 
33  int getPt(int chip, int iData) const;
34  int getPos(int chip, int iData) const;
35  int getDev(int chip, int iData) const;
36  bool getHit(int chip, int iData) const;
37  int getSel(int chip, int iData) const;
38 
39  void setPt(int chip, int iData, int ptIn);
40  void setPos(int chip, int iData, int posIn);
41  void setDev(int chip, int iData, int devIn);
42  void setHit(int chip, int iData, bool hitIn);
43  void setSel(int chip, int iData, int selIn);
44 
45  int getBid() const;
46  void setBid(int bidIn){ m_bid=bidIn;};
47 
48  void clear();
49 
50  void setOrigin(const TGCHighPtBoard* originIn) { m_origin = originIn;};
51  const TGCHighPtBoard* getOrigin() const;
52 
53 private:
55  int m_bid;
56 
57  int m_pt[NumberOfChip][MaxNumberOfHPBData]{}; //[chip][block]
61  // enable when the track is selected in trackselector.
63 };
64 
65 inline
66 void TGCHighPtBoardOut::setDev(int chip, int iData, int devIn)
67 {
68  if(!m_hit[chip][iData]) m_hit[chip][iData]=true; //[chip][block]
69  m_dev[chip][iData] = devIn;
70 }
71 
72 inline
73 void TGCHighPtBoardOut::setPos(int chip, int iData, int posIn)
74 {
75  if(!m_hit[chip][iData]) m_hit[chip][iData]=true;
76  m_pos[chip][iData] = posIn;
77 }
78 
79 inline
80 void TGCHighPtBoardOut::setPt(int chip, int iData, int ptIn)
81 {
82  if(!m_hit[chip][iData]) m_hit[chip][iData]=true;
83  m_pt[chip][iData] =ptIn;
84 }
85 
86 inline
88 {
89  return m_origin;
90 }
91 
92 inline
93 int TGCHighPtBoardOut::getDev(int chip, int iData) const
94 {
95  return m_dev[chip][iData];
96 }
97 
98 inline
99 int TGCHighPtBoardOut::getPos(int chip, int iData) const
100 {
101  return m_pos[chip][iData];
102 }
103 
104 inline
105 int TGCHighPtBoardOut::getPt(int chip, int iData) const
106 {
107  return m_pt[chip][iData];
108 }
109 
110 inline
112 {
113  return m_bid;
114 }
115 
116 inline
117 bool TGCHighPtBoardOut::getHit(int chip, int iData) const
118 {
119  return m_hit[chip][iData];
120 }
121 
122 inline
123 void TGCHighPtBoardOut::setHit(int chip, int iData, bool hitIn)
124 {
125  m_hit[chip][iData] = hitIn;
126 }
127 
128 inline
129 int TGCHighPtBoardOut::getSel(int chip, int iData) const
130 {
131  return m_select[chip][iData];
132 }
133 
134 inline
135 void TGCHighPtBoardOut::setSel(int chip, int iData, int selIn)
136 {
137  m_select[chip][iData] = selIn;
138 }
139 
140 } //end of namespace bracket
141 
142 #endif // TGCHighPtBoardOut_hh
143 
144 
145 
146 
147 
148 
LVL1TGCTrigger::TGCHighPtBoardOut::~TGCHighPtBoardOut
virtual ~TGCHighPtBoardOut()=default
LVL1TGCTrigger::TGCHighPtBoardOut::setDev
void setDev(int chip, int iData, int devIn)
Definition: TGCHighPtBoardOut.h:66
LVL1TGCTrigger::TGCHighPtBoardOut::setSel
void setSel(int chip, int iData, int selIn)
Definition: TGCHighPtBoardOut.h:135
LVL1TGCTrigger::TGCHighPtBoardOut::getDev
int getDev(int chip, int iData) const
Definition: TGCHighPtBoardOut.h:93
LVL1TGCTrigger::TGCHighPtBoardOut::m_bid
int m_bid
Definition: TGCHighPtBoardOut.h:55
LVL1TGCTrigger::HPBBlockF
@ HPBBlockF
Definition: TGCHighPtBoardOut.h:18
LVL1TGCTrigger::TGCHighPtBoardOut::getBid
int getBid() const
Definition: TGCHighPtBoardOut.h:111
LVL1TGCTrigger::HPBBlockB
@ HPBBlockB
Definition: TGCHighPtBoardOut.h:17
LVL1TGCTrigger::TGCHighPtBoardOut::setOrigin
void setOrigin(const TGCHighPtBoard *originIn)
Definition: TGCHighPtBoardOut.h:50
LVL1TGCTrigger::TGCHPBBlock
TGCHPBBlock
Definition: TGCHighPtBoardOut.h:16
LVL1TGCTrigger::TGCHighPtBoardOut::setBid
void setBid(int bidIn)
Definition: TGCHighPtBoardOut.h:46
LVL1TGCTrigger::TGCHighPtBoardOut::getOrigin
const TGCHighPtBoard * getOrigin() const
Definition: TGCHighPtBoardOut.h:87
LVL1TGCTrigger::NumberOfChip
const int NumberOfChip
Definition: TGCHighPtBoard.h:20
LVL1TGCTrigger::TGCHighPtBoardOut::setPos
void setPos(int chip, int iData, int posIn)
Definition: TGCHighPtBoardOut.h:73
LVL1TGCTrigger::TGCHighPtBoardOut::TGCHighPtBoardOut
TGCHighPtBoardOut()
Definition: TGCHighPtBoardOut.cxx:14
LVL1TGCTrigger::SizeOfHitID
const int SizeOfHitID
Definition: TGCHighPtBoardOut.h:13
LVL1TGCTrigger::TGCHighPtBoardOut::getSel
int getSel(int chip, int iData) const
Definition: TGCHighPtBoardOut.h:129
LVL1TGCTrigger::TGCHighPtBoardOut::m_select
int m_select[NumberOfChip][MaxNumberOfHPBData]
Definition: TGCHighPtBoardOut.h:62
LVL1TGCTrigger::SizeOfDeltaR
const int SizeOfDeltaR
Definition: TGCHighPtBoardOut.h:14
LVL1TGCTrigger::TGCHighPtBoardOut::m_pt
int m_pt[NumberOfChip][MaxNumberOfHPBData]
Definition: TGCHighPtBoardOut.h:57
LVL1TGCTrigger::TGCHighPtBoardOut
Definition: TGCHighPtBoardOut.h:26
LVL1TGCTrigger
Definition: LVL1TGCTrigger.cxx:47
LVL1TGCTrigger::HPBBlockE
@ HPBBlockE
Definition: TGCHighPtBoardOut.h:18
LVL1TGCTrigger::TGCHighPtBoardOut::getHit
bool getHit(int chip, int iData) const
Definition: TGCHighPtBoardOut.h:117
LVL1TGCTrigger::operator++
TGCHBChip operator++(TGCHBChip &rs, int)
Definition: TGCHighPtBoard.h:28
LVL1TGCTrigger::TGCHighPtBoardOut::getPt
int getPt(int chip, int iData) const
Definition: TGCHighPtBoardOut.h:105
LVL1TGCTrigger::MaxNumberOfHPBData
const int MaxNumberOfHPBData
Definition: TGCHighPtBoardOut.h:12
LVL1TGCTrigger::TGCHighPtBoardOut::getPos
int getPos(int chip, int iData) const
Definition: TGCHighPtBoardOut.h:99
LVL1TGCTrigger::TGCHighPtBoardOut::clear
void clear()
Definition: TGCHighPtBoardOut.cxx:19
LVL1TGCTrigger::HPBBlockD
@ HPBBlockD
Definition: TGCHighPtBoardOut.h:18
LVL1TGCTrigger::TGCHighPtBoard
Definition: TGCHighPtBoard.h:34
LVL1TGCTrigger::HPBBlockC
@ HPBBlockC
Definition: TGCHighPtBoardOut.h:17
LVL1TGCTrigger::TotalNumTGCHPBBlock
@ TotalNumTGCHPBBlock
Definition: TGCHighPtBoardOut.h:19
LVL1TGCTrigger::TGCHighPtBoardOut::setPt
void setPt(int chip, int iData, int ptIn)
Definition: TGCHighPtBoardOut.h:80
LVL1TGCTrigger::HPBBlockA
@ HPBBlockA
Definition: TGCHighPtBoardOut.h:17
LVL1TGCTrigger::TGCHighPtBoardOut::m_dev
int m_dev[NumberOfChip][MaxNumberOfHPBData]
Definition: TGCHighPtBoardOut.h:59
LVL1TGCTrigger::TGCHighPtBoardOut::m_origin
const TGCHighPtBoard * m_origin
Definition: TGCHighPtBoardOut.h:54
LVL1TGCTrigger::TGCHighPtBoardOut::m_hit
bool m_hit[NumberOfChip][MaxNumberOfHPBData]
Definition: TGCHighPtBoardOut.h:60
TGCHighPtBoard.h
LVL1TGCTrigger::TGCHighPtBoardOut::m_pos
int m_pos[NumberOfChip][MaxNumberOfHPBData]
Definition: TGCHighPtBoardOut.h:58
LVL1TGCTrigger::TGCHighPtBoardOut::setHit
void setHit(int chip, int iData, bool hitIn)
Definition: TGCHighPtBoardOut.h:123