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