Main Page
Namespaces
Classes
Package Documentation
DataFormats
L1GlobalCaloTrigger
src
L1GctEtHad.cc
Go to the documentation of this file.
1
2
#include "
DataFormats/L1GlobalCaloTrigger/interface/L1GctEtHad.h
"
3
4
L1GctEtHad::L1GctEtHad
() : m_data(0), m_bx(0) {}
5
6
L1GctEtHad::L1GctEtHad
(uint16_t
rawData
) :
m_data
(rawData &
kRawCtorMask
),
m_bx
(0) {}
7
8
L1GctEtHad::L1GctEtHad
(uint16_t
rawData
, int16_t
bx
) :
m_data
(rawData &
kRawCtorMask
),
m_bx
(bx) {}
9
10
L1GctEtHad::L1GctEtHad
(
unsigned
et
,
bool
oflow) :
m_data
(0),
m_bx
(0) {
11
m_data
= (et &
kEtHadMaxValue
) | ((oflow || et >
kEtHadMaxValue
) ?
kEtHadOFlowBit
: 0);
12
}
13
14
L1GctEtHad::L1GctEtHad
(
unsigned
et
,
bool
oflow, int16_t
bx
) :
m_data
(0),
m_bx
(bx) {
15
m_data
= (et &
kEtHadMaxValue
) | ((oflow || et >
kEtHadMaxValue
) ?
kEtHadOFlowBit
: 0);
16
}
17
18
L1GctEtHad::~L1GctEtHad
() {}
19
21
std::ostream&
operator<<
(std::ostream&
s
,
const
L1GctEtHad
&
c
) {
22
s <<
" L1GctEtHad: "
;
23
s <<
" ht="
<< c.
et
();
24
if
(c.
overFlow
()) {
25
s <<
"; overflow set"
;
26
}
27
return
s
;
28
}
l1tstage2_dqm_sourceclient-live_cfg.rawData
rawData
Definition:
l1tstage2_dqm_sourceclient-live_cfg.py:151
operator<<
std::ostream & operator<<(std::ostream &s, const L1GctEtHad &c)
Pretty-print operator for L1GctEtHad.
Definition:
L1GctEtHad.cc:21
L1GctEtHad.h
L1GctEtHad::L1GctEtHad
L1GctEtHad()
Definition:
L1GctEtHad.cc:4
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
L1GctEtHad::m_bx
int16_t m_bx
Definition:
L1GctEtHad.h:59
HltBtagPostValidation_cff.c
c
Definition:
HltBtagPostValidation_cff.py:31
L1GctEtHad::overFlow
bool overFlow() const
get the overflow
Definition:
L1GctEtHad.h:46
L1GctEtHad::kEtHadMaxValue
Definition:
L1GctEtHad.h:22
L1GctEtHad::et
unsigned et() const
get the Et
Definition:
L1GctEtHad.h:43
L1GctEtHad::kRawCtorMask
Definition:
L1GctEtHad.h:23
L1GctEtHad::kEtHadOFlowBit
Definition:
L1GctEtHad.h:21
L1GctEtHad::bx
int16_t bx() const
get bunch-crossing index
Definition:
L1GctEtHad.h:49
L1GctEtHad
Persistable copy of total Ht measured at Level-1.
Definition:
L1GctEtHad.h:17
L1GctEtHad::m_data
uint16_t m_data
Definition:
L1GctEtHad.h:58
L1GctEtHad::~L1GctEtHad
virtual ~L1GctEtHad()
Definition:
L1GctEtHad.cc:18
Generated for CMSSW Reference Manual by
1.8.11