ATLAS Offline Software
TGCHighPtChipOut.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
7 
8 namespace LVL1TGCTrigger {
9 
11  :m_origin(hpt), m_bid(bidIn)
12 {
13  clear();
14 }
15 
17  :m_origin(0), m_bid(-1)
18 {
19  clear();
20 }
21 
23  :m_origin(right.m_origin), m_bid(right.m_bid)
24 {
25  for(int i=0; i<NumberOfChip ; i+=1) {
26  for(int j=0; j<s_NHitInTrackSelector; j+=1){
27  m_pt[i][j] = right.m_pt[i][j];
28  m_pos[i][j] = right.m_pos[i][j];
29  m_hitID[i][j] = right.m_hitID[i][j];
30  m_dev[i][j] = right.m_dev[i][j];
31  m_select[i][j] = right.m_select[i][j];
32  }
33  }
34 }
35 
37 {
38  if (this != &right){
39  m_origin = right.m_origin;
40  m_bid = right.m_bid;
41  for(int i=0; i<NumberOfChip ; i+=1) {
42  for(int j=0; j<s_NHitInTrackSelector; j+=1){
43  m_pt[i][j] = right.m_pt[i][j];
44  m_pos[i][j] = right.m_pos[i][j];
45  m_hitID[i][j] = right.m_hitID[i][j];
46  m_dev[i][j] = right.m_dev[i][j];
47  m_select[i][j] = right.m_select[i][j];
48  }
49  }
50  }
51  return *this;
52 }
54 {
55  m_origin=0;
56  m_bid = -1;
57  clear();
58 }
59 
60 
62 {
63  for(int i=0; i<NumberOfChip ; i+=1) {
64  for(int j=0; j<s_NHitInTrackSelector; j+=1){
65  m_pt[i][j] = 0;
66  m_pos[i][j] = 0;
67  m_hitID[i][j] = 0;
68  m_dev[i][j] = 0;
69  m_select[i][j] = 0;
70  }
71  }
72 }
73 
74 } //end of namespace bracket
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::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
lumiFormat.i
int i
Definition: lumiFormat.py:85
LVL1TGCTrigger::TGCHighPtChipOut
Definition: TGCHighPtChipOut.h:16
LVL1TGCTrigger::TGCHighPtChipOut::m_pos
int m_pos[NumberOfChip][s_NHitInTrackSelector]
Definition: TGCHighPtChipOut.h:53
LVL1TGCTrigger
Definition: LVL1TGCTrigger.cxx:47
TGCHighPtChipOut.h
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::TGCHighPtBoard
Definition: TGCHighPtBoard.h:34
LVL1TGCTrigger::TGCHighPtChipOut::TGCHighPtChipOut
TGCHighPtChipOut()
Definition: TGCHighPtChipOut.cxx:16
LVL1TGCTrigger::TGCHighPtChipOut::operator=
TGCHighPtChipOut & operator=(const TGCHighPtChipOut &)
Definition: TGCHighPtChipOut.cxx:36
TGCHighPtBoard.h