Main Page
Namespaces
Classes
Package Documentation
DataFormats
L1GlobalCaloTrigger
interface
L1GctEtTotal.h
Go to the documentation of this file.
1
#ifndef L1GCTETTOTAL_H
2
#define L1GCTETTOTAL_H
3
4
#include <ostream>
5
#include <cstdint>
6
15
18
class
L1GctEtTotal
{
19
public
:
20
21
enum
numberOfBits
{
22
kEtTotalNBits
= 12,
23
kEtTotalOFlowBit
= 1 <<
kEtTotalNBits
,
24
kEtTotalMaxValue
=
kEtTotalOFlowBit
- 1,
25
kRawCtorMask
=
kEtTotalOFlowBit
|
kEtTotalMaxValue
26
};
27
28
L1GctEtTotal
();
29
L1GctEtTotal
(uint16_t rawData);
30
L1GctEtTotal
(uint16_t rawData, int16_t
bx
);
31
L1GctEtTotal
(
unsigned
et
,
bool
oflow);
32
L1GctEtTotal
(
unsigned
et
,
bool
oflow, int16_t
bx
);
33
virtual
~L1GctEtTotal
();
34
36
std::string
name
()
const
{
return
"EtTotal"
; }
37
39
bool
empty
()
const
{
return
false
; }
40
42
uint16_t
raw
()
const
{
return
m_data
; }
43
45
unsigned
et
()
const
{
return
m_data
&
kEtTotalMaxValue
; }
46
48
bool
overFlow
()
const
{
return
(
m_data
&
kEtTotalOFlowBit
)!=0; }
49
51
int16_t
bx
()
const
{
return
m_bx
; }
52
54
int
operator==
(
const
L1GctEtTotal
&
e
)
const
{
return
m_data
==e.
raw
(); }
55
57
int
operator!=
(
const
L1GctEtTotal
&
e
)
const
{
return
m_data
!=e.
raw
(); }
58
59
private
:
60
61
uint16_t
m_data
;
62
int16_t
m_bx
;
63
64
};
65
66
68
std::ostream&
operator<<
(std::ostream&
s
,
const
L1GctEtTotal
&
c
);
69
70
71
#endif
L1GctEtTotal::operator==
int operator==(const L1GctEtTotal &e) const
equality operator
Definition:
L1GctEtTotal.h:54
L1GctEtTotal::overFlow
bool overFlow() const
get the overflow
Definition:
L1GctEtTotal.h:48
L1GctEtTotal::kEtTotalNBits
Definition:
L1GctEtTotal.h:22
L1GctEtTotal::et
unsigned et() const
get the Et
Definition:
L1GctEtTotal.h:45
L1GctEtTotal::m_bx
int16_t m_bx
Definition:
L1GctEtTotal.h:62
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
alignCSCRings.s
s
Definition:
alignCSCRings.py:91
EnergyCorrector.c
c
Definition:
EnergyCorrector.py:43
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
L1GctEtTotal::empty
bool empty() const
empty method (= false; total Et is always calculated)
Definition:
L1GctEtTotal.h:39
L1GctEtTotal::kEtTotalMaxValue
Definition:
L1GctEtTotal.h:24
L1GctEtTotal::name
std::string name() const
name method
Definition:
L1GctEtTotal.h:36
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::bx
int16_t bx() const
get bunch-crossing index
Definition:
L1GctEtTotal.h:51
operator<<
std::ostream & operator<<(std::ostream &s, const L1GctEtTotal &c)
Pretty-print operator for L1GctEtTotal.
Definition:
L1GctEtTotal.cc:25
L1GctEtTotal::operator!=
int operator!=(const L1GctEtTotal &e) const
inequality operator
Definition:
L1GctEtTotal.h:57
L1GctEtTotal::kRawCtorMask
Definition:
L1GctEtTotal.h:25
L1GctEtTotal::raw
uint16_t raw() const
get the data
Definition:
L1GctEtTotal.h:42
L1GctEtTotal::numberOfBits
numberOfBits
Definition:
L1GctEtTotal.h:21
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