ATLAS Offline Software
Trigger
TrigT1
TrigT1TGC
src
TGCBoardConnection.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
TrigT1TGC/TGCBoardConnection.h
"
6
7
namespace
LVL1TGCTrigger
{
8
9
TGCBoardConnection::TGCBoardConnection
() {
10
m_id
.clear();
11
}
12
13
TGCBoardConnection::~TGCBoardConnection
() {
14
for
(
unsigned
int
i
=0;
i
<
m_id
.size();
i
++){
15
m_id
.at(
i
).clear();
16
}
17
m_id
.clear();
18
}
19
20
void
TGCBoardConnection::setNumberOfType
(
int
ntype) {
21
for
(
unsigned
int
i
=0;
i
<
m_id
.size();
i
++) {
22
m_id
.at(
i
).clear();
23
}
24
m_id
.resize(ntype);
25
}
26
27
void
TGCBoardConnection::setNumber
(
const
unsigned
int
type
,
int
nBoard) {
28
if
(
type
<
m_id
.size()) {
29
m_id
.at(
type
).resize(nBoard);
30
}
else
{
31
m_id
.resize(
type
+1);
32
m_id
.at(
type
).resize(nBoard);
33
}
34
}
35
36
void
TGCBoardConnection::setId
(
const
unsigned
int
type
,
const
unsigned
int
board,
int
idIn) {
37
if
(
type
<
m_id
.size()) {
38
if
(board <
m_id
.at(
type
).size()) {
39
m_id
.at(
type
).at(board) = idIn;
40
}
else
{
41
m_id
.at(
type
).resize(board+1);
42
m_id
.at(
type
).at(board) = idIn;
43
}
44
}
else
{
45
m_id
.resize(
type
+1);
46
m_id
.at(
type
).resize(board+1);
47
m_id
.at(
type
).at(board) = idIn;
48
}
49
}
50
51
TGCBoardConnection::TGCBoardConnection
(
const
TGCBoardConnection
& right) {
52
m_id
.resize(right.
m_id
.size());
53
for
(
unsigned
int
i
=0;
i
<
m_id
.size();
i
++) {
54
m_id
.at(
i
).resize(right.
m_id
.at(
i
).size());
55
for
(
unsigned
int
j=0; j <
m_id
.at(
i
).
size
(); j++) {
56
m_id
.at(
i
).at(j) = right.
m_id
.at(
i
).at(j);
57
}
58
}
59
}
60
61
TGCBoardConnection
&
TGCBoardConnection::operator =
(
const
TGCBoardConnection
& right) {
62
if
(
this
!= &right) {
63
m_id
.resize(right.
m_id
.size());
64
for
(
unsigned
int
i
=0;
i
<
m_id
.size();
i
++) {
65
m_id
.at(
i
).resize(right.
m_id
.at(
i
).size());
66
for
(
unsigned
int
j=0; j <
m_id
.at(
i
).
size
(); j++) {
67
m_id
.at(
i
).at(j) = right.
m_id
.at(
i
).at(j);
68
}
69
}
70
}
71
return
*
this
;
72
}
73
74
}
// end of namespace
LVL1TGCTrigger::TGCBoardConnection::setNumberOfType
void setNumberOfType(int ntype)
Definition:
TGCBoardConnection.cxx:20
LVL1TGCTrigger::TGCBoardConnection::setNumber
void setNumber(const unsigned int type, int nBoard)
Definition:
TGCBoardConnection.cxx:27
LVL1TGCTrigger::TGCBoardConnection::operator=
TGCBoardConnection & operator=(const TGCBoardConnection &right)
Definition:
TGCBoardConnection.cxx:61
LVL1TGCTrigger::TGCBoardConnection
Definition:
TGCBoardConnection.h:13
LVL1TGCTrigger::TGCBoardConnection::TGCBoardConnection
TGCBoardConnection()
Definition:
TGCBoardConnection.cxx:9
LVL1TGCTrigger::TGCBoardConnection::m_id
std::vector< std::vector< int > > m_id
Definition:
TGCBoardConnection.h:30
python.setupRTTAlg.size
int size
Definition:
setupRTTAlg.py:39
lumiFormat.i
int i
Definition:
lumiFormat.py:85
LVL1TGCTrigger::TGCBoardConnection::setId
void setId(const unsigned int type, const unsigned int board, int idIn)
Definition:
TGCBoardConnection.cxx:36
LVL1TGCTrigger
Definition:
LVL1TGCTrigger.cxx:47
TGCBoardConnection.h
LVL1TGCTrigger::TGCBoardConnection::~TGCBoardConnection
virtual ~TGCBoardConnection()
Definition:
TGCBoardConnection.cxx:13
python.CaloScaleNoiseConfig.type
type
Definition:
CaloScaleNoiseConfig.py:78
Generated on Sun Dec 22 2024 21:19:20 for ATLAS Offline Software by
1.8.18