Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
L1Trigger
L1TMuon
src
MicroGMTCaloIndexSelectionLUT.cc
Go to the documentation of this file.
1
#include "../interface/MicroGMTCaloIndexSelectionLUT.h"
2
3
l1t::MicroGMTCaloIndexSelectionLUT::MicroGMTCaloIndexSelectionLUT
(
const
std::string
&
fname
,
int
type
) :
MicroGMTLUT
()
4
{
5
if
(type ==
MicroGMTConfiguration::ETA
) {
6
m_angleInWidth
= 9;
7
m_outWidth
= 5;
8
m_inputs
.push_back(
MicroGMTConfiguration::ETA
);
9
}
else
{
10
m_angleInWidth
= 10;
11
m_outWidth
= 6;
12
m_inputs
.push_back(
MicroGMTConfiguration::PHI
);
13
}
14
15
m_totalInWidth
=
m_angleInWidth
;
16
17
if
(fname !=
std::string
(
""
)) {
18
load
(fname);
19
}
20
}
21
22
l1t::MicroGMTCaloIndexSelectionLUT::MicroGMTCaloIndexSelectionLUT
(
l1t::LUT
*
lut
,
int
type
) :
MicroGMTLUT
(lut)
23
{
24
if
(type ==
MicroGMTConfiguration::ETA
) {
25
m_angleInWidth
= 9;
26
m_outWidth
= 5;
27
m_inputs
.push_back(
MicroGMTConfiguration::ETA
);
28
}
else
{
29
m_angleInWidth
= 10;
30
m_outWidth
= 6;
31
m_inputs
.push_back(
MicroGMTConfiguration::PHI
);
32
}
33
34
m_totalInWidth
=
m_angleInWidth
;
35
36
m_initialized
=
true
;
37
}
38
39
int
40
l1t::MicroGMTCaloIndexSelectionLUT::lookup
(
int
angle
)
const
41
{
42
return
lookupPacked(angle);
43
}
type
type
Definition:
HCALResponse.h:21
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:21
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
l1t::MicroGMTLUT::m_inputs
std::vector< MicroGMTConfiguration::input_t > m_inputs
Definition:
MicroGMTLUT.h:36
l1t::MicroGMTLUT
Definition:
MicroGMTLUT.h:14
lumiPlot.lut
tuple lut
Definition:
lumiPlot.py:244
l1t::MicroGMTConfiguration::PHI
Definition:
MicroGMTConfiguration.h:20
l1t::LUT
Definition:
LUT.h:29
l1t::MicroGMTCaloIndexSelectionLUT::MicroGMTCaloIndexSelectionLUT
MicroGMTCaloIndexSelectionLUT()
Definition:
MicroGMTCaloIndexSelectionLUT.h:10
alignmentValidation.fname
string fname
main script
Definition:
alignmentValidation.py:957
l1t::MicroGMTLUT::m_outWidth
unsigned m_outWidth
Definition:
MicroGMTLUT.h:35
l1t::MicroGMTCaloIndexSelectionLUT::lookup
int lookup(int angle) const
Definition:
MicroGMTCaloIndexSelectionLUT.cc:40
l1t::MicroGMTConfiguration::ETA
Definition:
MicroGMTConfiguration.h:20
l1t::MicroGMTCaloIndexSelectionLUT::m_angleInWidth
int m_angleInWidth
Definition:
MicroGMTCaloIndexSelectionLUT.h:21
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