ATLAS Offline Software
Trigger
TrigT1
TrigT1Interfaces
src
Lvl1MuSectorLogicData.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include <cstdio>
6
#include <iostream>
7
#include <iomanip>
8
9
#include "
TrigT1Interfaces/Lvl1MuSectorLogicData.h
"
10
11
namespace
LVL1MUONIF
{
12
13
Lvl1MuSectorLogicData::Lvl1MuSectorLogicData
()
14
: m_2candidatesInSector ( false ), m_bcid( 0 ),
15
m_id_system( -1 ) {
16
17
for
(
size_t
i
= 0;
i
< 2; ++
i
) {
18
m_roi
[
i
] = -1;
19
m_ovl
[
i
] = -1;
20
m_pt
[
i
] = -1;
21
m_charge
[
i
] = + 1;
22
m_2candidates
[
i
] =
false
;
23
}
24
}
25
26
27
Lvl1MuSectorLogicData::Lvl1MuSectorLogicData
(
const
Lvl1MuSectorLogicData
& right ) {
28
*
this
= right;
29
}
30
31
Lvl1MuSectorLogicData
&
Lvl1MuSectorLogicData::operator=
(
const
Lvl1MuSectorLogicData
& right ) {
32
if
(
this
!= &right ) {
33
m_id_system
= right.
m_id_system
;
34
m_bcid
= right.
m_bcid
;
35
m_2candidatesInSector
= right.
m_2candidatesInSector
;
36
for
(
size_t
i
= 0;
i
< 2; ++
i
) {
37
m_roi
[
i
] = right.
m_roi
[
i
];
38
m_ovl
[
i
] = right.
m_ovl
[
i
];
39
m_pt
[
i
] = right.
m_pt
[
i
];
40
m_charge
[
i
] = right.
m_charge
[
i
];
41
m_2candidates
[
i
] = right.
m_2candidates
[
i
];
42
}
43
}
44
return
*
this
;
45
}
46
47
std::ostream&
operator<<
( std::ostream&
out
,
const
Lvl1MuSectorLogicData
& right ) {
48
49
right.
printOut
(
out
);
50
return
out
;
51
52
}
53
54
void
Lvl1MuSectorLogicData::printOut
( std::ostream&
out
)
const
{
55
56
out
<<
"Bit 0 "
<<
" >2candidates in a sector "
;
57
out
<< std::setw( 8 ) <<
m_2candidatesInSector
<< std::endl;
58
59
out
<<
"Bit 1-9 "
<<
" ROI<1> + OVL<1> "
;
60
out
<< std::setw( 8 ) <<
m_roi
[ 0 ] <<
" : "
<<
m_ovl
[ 0 ] << std::endl;
61
out
<<
"Bit 10-18 "
<<
" ROI<2> + OVL<2> "
;
62
out
<< std::setw( 8 ) <<
m_roi
[ 1 ] <<
" : "
<<
m_ovl
[ 1 ] << std::endl;
63
out
<<
"Bit 19-21 "
<<
" Pt1 "
;
64
out
<< std::setw( 8 ) <<
m_pt
[ 0 ] << std::endl;
65
out
<<
"Bit 22-24 "
<<
" Pt2 "
;
66
out
<< std::setw( 8 ) <<
m_pt
[ 1 ] << std::endl;
67
out
<<
"Bit 25 "
<<
" >2candidates in ROI1 "
;
68
out
<< std::setw( 8 ) <<
m_2candidates
[ 0 ] << std::endl;
69
out
<<
"Bit 26 "
<<
" >2candidates in ROI2 "
;
70
out
<< std::setw( 8 ) <<
m_2candidates
[ 1 ] << std::endl;
71
out
<<
"Bit 27-29 "
<<
" BCID "
;
72
out
<< std::setw( 8 ) <<
m_bcid
<< std::endl;
73
out
<<
"Bit 30 "
<<
" charge in ROI1 "
;
74
out
<< std::setw( 8 ) <<
m_charge
[ 0 ] << std::endl;
75
out
<<
"Bit 31 "
<<
" charge in ROI2 "
;
76
out
<< std::setw( 8 ) <<
m_charge
[ 1 ] << std::endl;
77
78
}
79
80
void
Lvl1MuSectorLogicData::clear
() {
81
m_2candidatesInSector
=
false
;
82
m_bcid
= 0;
83
for
(
size_t
i
= 0;
i
< 2; ++
i
) {
84
m_roi
[
i
] = -1;
85
m_ovl
[
i
] = -1;
86
m_pt
[
i
] = -1;
87
m_charge
[
i
] = -1;
88
m_2candidates
[
i
] =
false
;
89
}
90
}
91
92
}
// namespace LVL1MUONIF
LVL1MUONIF::Lvl1MuSectorLogicData
Base class for the data coming from one SL board.
Definition:
Lvl1MuSectorLogicData.h:34
LVL1MUONIF::Lvl1MuSectorLogicData::m_2candidatesInSector
bool m_2candidatesInSector
Definition:
Lvl1MuSectorLogicData.h:79
LVL1MUONIF
Namespace for the LVL1 muon interface classes.
Definition:
Lvl1MuBarrelSectorLogicData.cxx:9
python.AthDsoLogger.out
out
Definition:
AthDsoLogger.py:71
LVL1MUONIF::Lvl1MuSectorLogicData::m_2candidates
bool m_2candidates[2]
Definition:
Lvl1MuSectorLogicData.h:83
LVL1MUONIF::Lvl1MuSectorLogicData::m_charge
int m_charge[2]
Definition:
Lvl1MuSectorLogicData.h:85
LVL1MUONIF::Lvl1MuSectorLogicData::m_ovl
int m_ovl[2]
Definition:
Lvl1MuSectorLogicData.h:81
LVL1MUONIF::Lvl1MuSectorLogicData::m_pt
int m_pt[2]
Definition:
Lvl1MuSectorLogicData.h:82
LVL1MUONIF::Lvl1MuSectorLogicData::Lvl1MuSectorLogicData
Lvl1MuSectorLogicData()
Definition:
Lvl1MuSectorLogicData.cxx:13
LVL1MUONIF::Lvl1MuSectorLogicData::printOut
virtual void printOut(std::ostream &out) const
print out data
Definition:
Lvl1MuSectorLogicData.cxx:54
lumiFormat.i
int i
Definition:
lumiFormat.py:85
LVL1MUONIF::Lvl1MuSectorLogicData::m_id_system
int m_id_system
Definition:
Lvl1MuSectorLogicData.h:86
LVL1MUONIF::Lvl1MuSectorLogicData::clear
void clear()
Definition:
Lvl1MuSectorLogicData.cxx:80
Lvl1MuSectorLogicData.h
LVL1MUONIF::Lvl1MuSectorLogicData::m_roi
int m_roi[2]
Definition:
Lvl1MuSectorLogicData.h:80
LVL1MUONIF::Lvl1MuSectorLogicData::operator=
Lvl1MuSectorLogicData & operator=(const Lvl1MuSectorLogicData &right)
Definition:
Lvl1MuSectorLogicData.cxx:31
LVL1MUONIF::Lvl1MuSectorLogicData::m_bcid
int m_bcid
Definition:
Lvl1MuSectorLogicData.h:84
LVL1MUONIF::operator<<
std::ostream & operator<<(std::ostream &out, const Lvl1MuCTPIInput &right)
Definition:
Lvl1MuCTPIInput.cxx:218
Generated on Thu Nov 7 2024 21:20:20 for ATLAS Offline Software by
1.8.18