ATLAS Offline Software
TGCHighPtChipOut.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TGCHighPtChipOut_hh
6 #define TGCHighPtChipOut_hh
7 
9 
10 
11 namespace LVL1TGCTrigger {
12 
14 
16 {
17  public:
18  static constexpr int s_NHitInTrackSelector = 2;
19 
20  public:
21  TGCHighPtChipOut(TGCHighPtBoard* hpt, int bidIn);
25 
27 
28  int getPt(int chip, int iCandidate) const;
29  int getPos(int chip, int iCandidate) const;
30  int getHitID(int chip, int iCandidate) const;
31  int getDev(int chip, int iCandidate) const;
32  int getSel(int chip, int iCandidate) const;
33 
34  void setPt(int chip, int iCandidate, int ptIn);
35  void setPos(int chip, int iCandidate, int posIn);
36  void setHitID(int chip, int iCandidate, int hitIdIn);
37  void setDev(int chip, int iCandidate, int devIn);
38  void setSel(int chip, int iCandidate, int selIn);
39 
40  int getBid() const;
41  void setBid(int bidIn){ m_bid=bidIn;};
42 
43  void clear();
44 
45  void setOrigin(const TGCHighPtBoard* originIn) { m_origin = originIn;};
46  const TGCHighPtBoard* getOrigin() const;
47 
48 private:
50  int m_bid;
51 
52  int m_pt[NumberOfChip][s_NHitInTrackSelector]; //[chip][iCandidate]
57 };
58 
59 inline
60 void TGCHighPtChipOut::setDev(int chip, int iCandidate, int devIn)
61 {
62  m_dev[chip][iCandidate] = devIn;
63 }
64 
65 inline
66 void TGCHighPtChipOut::setPos(int chip, int iCandidate, int posIn)
67 {
68  m_pos[chip][iCandidate] = posIn;
69 }
70 
71 inline
72 void TGCHighPtChipOut::setHitID(int chip, int iCandidate, int hitIdIn)
73 {
74  m_hitID[chip][iCandidate] = hitIdIn;
75 }
76 
77 inline
78 void TGCHighPtChipOut::setPt(int chip, int iCandidate, int ptIn)
79 {
80  m_pt[chip][iCandidate] =ptIn;
81 }
82 
83 inline
85 {
86  return m_origin;
87 }
88 
89 inline
90 int TGCHighPtChipOut::getDev(int chip, int iCandidate) const
91 {
92  return m_dev[chip][iCandidate];
93 }
94 
95 inline
96 int TGCHighPtChipOut::getPos(int chip, int iCandidate) const
97 {
98  return m_pos[chip][iCandidate];
99 }
100 
101 inline
102 int TGCHighPtChipOut::getHitID(int chip, int iCandidate) const
103 {
104  return m_hitID[chip][iCandidate];
105 }
106 
107 
108 inline
109 int TGCHighPtChipOut::getPt(int chip, int iCandidate) const
110 {
111  return m_pt[chip][iCandidate];
112 }
113 
114 inline
116 {
117  return m_bid;
118 }
119 
120 inline
121 int TGCHighPtChipOut::getSel(int chip, int iCandidate) const
122 {
123  return m_select[chip][iCandidate];
124 }
125 
126 inline
127 void TGCHighPtChipOut::setSel(int chip, int iCandidate, int selIn)
128 {
129  m_select[chip][iCandidate] = selIn;
130 }
131 
132 
133 } //end of namespace bracket
134 
135 #endif // TGCHighPtChipOut_hh
136 
LVL1TGCTrigger::TGCHighPtChipOut::setHitID
void setHitID(int chip, int iCandidate, int hitIdIn)
Definition: TGCHighPtChipOut.h:72
LVL1TGCTrigger::TGCHighPtChipOut::setPos
void setPos(int chip, int iCandidate, int posIn)
Definition: TGCHighPtChipOut.h:66
LVL1TGCTrigger::TGCHighPtChipOut::m_origin
const TGCHighPtBoard * m_origin
Definition: TGCHighPtChipOut.h:49
LVL1TGCTrigger::TGCHighPtChipOut::~TGCHighPtChipOut
~TGCHighPtChipOut()
Definition: TGCHighPtChipOut.cxx:53
LVL1TGCTrigger::TGCHighPtChipOut::m_bid
int m_bid
Definition: TGCHighPtChipOut.h:50
LVL1TGCTrigger::TGCHighPtChipOut::m_pt
int m_pt[NumberOfChip][s_NHitInTrackSelector]
Definition: TGCHighPtChipOut.h:52
LVL1TGCTrigger::TGCHighPtChipOut::s_NHitInTrackSelector
static constexpr int s_NHitInTrackSelector
Definition: TGCHighPtChipOut.h:18
LVL1TGCTrigger::TGCHighPtChipOut::getBid
int getBid() const
Definition: TGCHighPtChipOut.h:115
LVL1TGCTrigger::TGCHighPtChipOut::getOrigin
const TGCHighPtBoard * getOrigin() const
Definition: TGCHighPtChipOut.h:84
LVL1TGCTrigger::TGCHighPtChipOut::setOrigin
void setOrigin(const TGCHighPtBoard *originIn)
Definition: TGCHighPtChipOut.h:45
LVL1TGCTrigger::TGCHighPtChipOut::getPt
int getPt(int chip, int iCandidate) const
Definition: TGCHighPtChipOut.h:109
LVL1TGCTrigger::TGCHighPtChipOut::clear
void clear()
Definition: TGCHighPtChipOut.cxx:61
LVL1TGCTrigger::NumberOfChip
const int NumberOfChip
Definition: TGCHighPtBoard.h:20
LVL1TGCTrigger::TGCHighPtChipOut::m_select
int m_select[NumberOfChip][s_NHitInTrackSelector]
Definition: TGCHighPtChipOut.h:56
LVL1TGCTrigger::TGCHighPtChipOut
Definition: TGCHighPtChipOut.h:16
LVL1TGCTrigger::TGCHighPtChipOut::m_pos
int m_pos[NumberOfChip][s_NHitInTrackSelector]
Definition: TGCHighPtChipOut.h:53
LVL1TGCTrigger::TGCHighPtChipOut::getHitID
int getHitID(int chip, int iCandidate) const
Definition: TGCHighPtChipOut.h:102
LVL1TGCTrigger::FirstCandidate
@ FirstCandidate
Definition: TGCHighPtChipOut.h:13
LVL1TGCTrigger::TGCHighPtChipOut::setDev
void setDev(int chip, int iCandidate, int devIn)
Definition: TGCHighPtChipOut.h:60
LVL1TGCTrigger::TGCHighPtChipOut::setPt
void setPt(int chip, int iCandidate, int ptIn)
Definition: TGCHighPtChipOut.h:78
LVL1TGCTrigger
Definition: LVL1TGCTrigger.cxx:47
LVL1TGCTrigger::TGCHighPtChipOut::m_hitID
int m_hitID[NumberOfChip][s_NHitInTrackSelector]
Definition: TGCHighPtChipOut.h:54
LVL1TGCTrigger::TGCHighPtChipOut::m_dev
int m_dev[NumberOfChip][s_NHitInTrackSelector]
Definition: TGCHighPtChipOut.h:55
LVL1TGCTrigger::TGCHighPtChipOut::getDev
int getDev(int chip, int iCandidate) const
Definition: TGCHighPtChipOut.h:90
LVL1TGCTrigger::TGCHighPtChipOut::getSel
int getSel(int chip, int iCandidate) const
Definition: TGCHighPtChipOut.h:121
LVL1TGCTrigger::NCandidate
@ NCandidate
Definition: TGCHighPtChipOut.h:13
LVL1TGCTrigger::TGCHighPtChipOut::getPos
int getPos(int chip, int iCandidate) const
Definition: TGCHighPtChipOut.h:96
LVL1TGCTrigger::TGCHighPtBoard
Definition: TGCHighPtBoard.h:34
LVL1TGCTrigger::TGCHighPtChipOut::setBid
void setBid(int bidIn)
Definition: TGCHighPtChipOut.h:41
LVL1TGCTrigger::TGCHighPtChipOut::TGCHighPtChipOut
TGCHighPtChipOut()
Definition: TGCHighPtChipOut.cxx:16
LVL1TGCTrigger::TGCHighPtChipOut::setSel
void setSel(int chip, int iCandidate, int selIn)
Definition: TGCHighPtChipOut.h:127
LVL1TGCTrigger::TGCHighPtChipOut::operator=
TGCHighPtChipOut & operator=(const TGCHighPtChipOut &)
Definition: TGCHighPtChipOut.cxx:36
TGCHighPtBoard.h
LVL1TGCTrigger::SecondCandidate
@ SecondCandidate
Definition: TGCHighPtChipOut.h:13