Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
L1Trigger
L1TMuon
src
MicroGMTCaloIndexSelectionLUT.cc
Go to the documentation of this file.
1
#include "
L1Trigger/L1TMuon/interface/MicroGMTCaloIndexSelectionLUT.h
"
2
3
l1t::MicroGMTCaloIndexSelectionLUT::MicroGMTCaloIndexSelectionLUT
(
const
std::string
&
fname
,
int
type
) :
MicroGMTLUT
() {
4
if
(type ==
MicroGMTConfiguration::ETA
) {
5
m_angleInWidth
= 9;
6
m_outWidth
= 5;
7
m_inputs
.push_back(
MicroGMTConfiguration::ETA
);
8
}
else
{
9
m_angleInWidth
= 10;
10
m_outWidth
= 6;
11
m_inputs
.push_back(
MicroGMTConfiguration::PHI
);
12
}
13
14
m_totalInWidth
=
m_angleInWidth
;
15
16
if
(fname !=
std::string
(
""
)) {
17
load
(fname);
18
}
19
}
20
21
l1t::MicroGMTCaloIndexSelectionLUT::MicroGMTCaloIndexSelectionLUT
(
l1t::LUT
* lut,
int
type
) :
MicroGMTLUT
(lut) {
22
if
(type ==
MicroGMTConfiguration::ETA
) {
23
m_angleInWidth
= 9;
24
m_outWidth
= 5;
25
m_inputs
.push_back(
MicroGMTConfiguration::ETA
);
26
}
else
{
27
m_angleInWidth
= 10;
28
m_outWidth
= 6;
29
m_inputs
.push_back(
MicroGMTConfiguration::PHI
);
30
}
31
32
m_totalInWidth
=
m_angleInWidth
;
33
34
m_initialized
=
true
;
35
}
36
37
int
l1t::MicroGMTCaloIndexSelectionLUT::lookup
(
int
angle
)
const
{
return
lookupPacked(angle); }
l1t::MicroGMTLUT::m_totalInWidth
unsigned m_totalInWidth
Definition:
MicroGMTLUT.h:34
l1t::MicroGMTLUT::m_initialized
bool m_initialized
Definition:
MicroGMTLUT.h:37
l1t::MicroGMTLUT::load
int load(const std::string &inFileName)
Definition:
MicroGMTLUT.cc:15
type
type
Definition:
SiPixelVCal_PayloadInspector.cc:39
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
l1t::MicroGMTLUT::m_inputs
std::vector< MicroGMTConfiguration::input_t > m_inputs
Definition:
MicroGMTLUT.h:36
l1t::MicroGMTLUT
Definition:
MicroGMTLUT.h:14
MicroGMTCaloIndexSelectionLUT.h
l1t::MicroGMTConfiguration::PHI
Definition:
MicroGMTConfiguration.h:22
l1t::LUT
Definition:
LUT.h:29
l1t::MicroGMTCaloIndexSelectionLUT::MicroGMTCaloIndexSelectionLUT
MicroGMTCaloIndexSelectionLUT()
Definition:
MicroGMTCaloIndexSelectionLUT.h:10
alignmentValidation.fname
string fname
main script
Definition:
alignmentValidation.py:959
l1t::MicroGMTLUT::m_outWidth
unsigned m_outWidth
Definition:
MicroGMTLUT.h:35
l1t::MicroGMTCaloIndexSelectionLUT::lookup
int lookup(int angle) const
Definition:
MicroGMTCaloIndexSelectionLUT.cc:37
l1t::MicroGMTConfiguration::ETA
Definition:
MicroGMTConfiguration.h:23
l1t::MicroGMTCaloIndexSelectionLUT::m_angleInWidth
int m_angleInWidth
Definition:
MicroGMTCaloIndexSelectionLUT.h:22
angle
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition:
angle.h:11
Generated for CMSSW Reference Manual by
1.8.5