Main Page
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Properties
_
a
c
d
e
f
l
m
o
p
s
t
u
v
+
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
DataFormats
L1GlobalCaloTrigger
src
L1GctEtMiss.cc
Go to the documentation of this file.
1
2
#include "
DataFormats/L1GlobalCaloTrigger/interface/L1GctEtMiss.h
"
3
4
L1GctEtMiss::L1GctEtMiss
() : m_data(0), m_bx(0) {}
5
6
// The raw data is masked off so as only the MET magnitude, overflow + phi bits are stored.
7
// This is because the raw data stream also contains a BC0 flag on bit 31, and bit 15 is always
8
// set to 1. This data is masked off so as to match an L1GctEtMiss object constructed using
9
// the L1GctEtMiss(unsigned et, unsigned phi, bool oflow) constructor.
10
L1GctEtMiss::L1GctEtMiss
(uint32_t
rawData
) : m_data(
rawData
& kRawCtorMask), m_bx(0) {}
11
12
L1GctEtMiss::L1GctEtMiss
(uint32_t
rawData
, int16_t
bx
) : m_data(
rawData
& kRawCtorMask), m_bx(
bx
) {}
13
14
L1GctEtMiss::L1GctEtMiss
(
unsigned
et
,
unsigned
phi
,
bool
oflow) : m_data(0), m_bx(0) {
15
if
((
et
<=
kEtMissMaxValue
) && (
phi
<
kEtMissPhiNBins
)) {
16
m_data
=
et
| (oflow ?
kEtMissOFlowBit
: 0) | ((
phi
&
kETMissPhiMask
) <<
kEtMissPhiShift
);
17
}
else
{
18
m_data
= (
et
&
kEtMissMaxValue
) |
kEtMissOFlowBit
;
19
}
20
}
21
22
L1GctEtMiss::L1GctEtMiss
(
unsigned
et
,
unsigned
phi
,
bool
oflow, int16_t
bx
) : m_data(0), m_bx(
bx
) {
23
if
((
et
<=
kEtMissMaxValue
) && (
phi
<
kEtMissPhiNBins
)) {
24
m_data
=
et
| (oflow ?
kEtMissOFlowBit
: 0) | ((
phi
&
kETMissPhiMask
) <<
kEtMissPhiShift
);
25
}
else
{
26
m_data
= (
et
&
kEtMissMaxValue
) |
kEtMissOFlowBit
;
27
}
28
}
29
30
L1GctEtMiss::~L1GctEtMiss
() {}
31
33
std::ostream&
operator<<
(std::ostream&
s
,
const
L1GctEtMiss
&
c
) {
34
s
<<
" L1GctEtMiss: "
;
35
s
<<
" mag="
<<
c
.et() <<
", phi="
<<
c
.phi();
36
if
(
c
.overFlow()) {
37
s
<<
"; overflow set"
;
38
}
39
return
s
;
40
}
L1GctEtMiss::phi
unsigned phi() const
get the Et
Definition:
L1GctEtMiss.h:62
l1tstage2_dqm_sourceclient-live_cfg.rawData
rawData
Definition:
l1tstage2_dqm_sourceclient-live_cfg.py:163
EgHLTOffHistBins_cfi.et
et
Definition:
EgHLTOffHistBins_cfi.py:8
L1GctEtMiss::et
unsigned et() const
get the magnitude
Definition:
L1GctEtMiss.h:56
PVValHelper::phi
Definition:
PVValidationHelpers.h:69
L1GctEtMiss::kEtMissMaxValue
Definition:
L1GctEtMiss.h:24
L1GctEtMiss::kEtMissPhiNBins
Definition:
L1GctEtMiss.h:28
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
L1GctEtMiss
Persistable copy of missing Et measured at Level-1.
Definition:
L1GctEtMiss.h:17
nano_mu_digi_cff.bx
bx
Definition:
nano_mu_digi_cff.py:39
L1GctEtMiss::kETMissPhiMask
Definition:
L1GctEtMiss.h:27
HltBtagPostValidation_cff.c
c
Definition:
HltBtagPostValidation_cff.py:35
operator<<
std::ostream & operator<<(std::ostream &s, const L1GctEtMiss &c)
Pretty-print operator for L1GctEtMiss.
Definition:
L1GctEtMiss.cc:33
L1GctEtMiss::kEtMissOFlowBit
Definition:
L1GctEtMiss.h:23
L1GctEtMiss::m_data
uint32_t m_data
Definition:
L1GctEtMiss.h:74
L1GctEtMiss::~L1GctEtMiss
virtual ~L1GctEtMiss()
Definition:
L1GctEtMiss.cc:30
L1GctEtMiss::kEtMissPhiShift
Definition:
L1GctEtMiss.h:25
L1GctEtMiss.h
L1GctEtMiss::L1GctEtMiss
L1GctEtMiss()
Definition:
L1GctEtMiss.cc:4
Generated for CMSSW Reference Manual by
1.8.14