Main Page
Namespaces
Classes
Package Documentation
src
DataFormats
L1GlobalCaloTrigger
interface
L1GctHtMiss.h
Go to the documentation of this file.
1
#ifndef L1GCTHTMISS_H
2
#define L1GCTHTMISS_H
3
4
#include <ostream>
5
#include <cstdint>
6
13
16
class
L1GctHtMiss
{
17
public
:
18
24
enum
numberOfBits
{
25
kHtMissPhiNBits
= 5,
26
kHtMissMagNBits
= 7,
27
kHtMissPhiMask
= (1 <<
kHtMissPhiNBits
) - 1,
28
kHtMissMagMask
= (1 <<
kHtMissMagNBits
) - 1,
29
kHtMissPhiShift
= 0,
30
kHtMissMagShift
=
kHtMissPhiNBits
,
31
kHtMissOFlowBit
= (1 << (
kHtMissPhiNBits
+
kHtMissMagNBits
)),
32
kHtMissPhiNBins
= 18,
33
kRawCtorMask
=
kHtMissOFlowBit
| (
kHtMissMagMask
<<
kHtMissMagShift
) | (
kHtMissPhiMask
<<
kHtMissPhiShift
)
34
};
35
36
L1GctHtMiss
();
37
39
L1GctHtMiss
(uint32_t rawData);
40
42
L1GctHtMiss
(uint32_t rawData, int16_t
bx
);
43
44
L1GctHtMiss
(
unsigned
et
,
unsigned
phi
,
bool
oflow);
45
46
L1GctHtMiss
(
unsigned
et
,
unsigned
phi
,
bool
oflow, int16_t
bx
);
47
48
virtual
~L1GctHtMiss
();
49
51
std::string
name
()
const
{
return
"HtMiss"
; }
52
54
bool
empty
()
const
{
return
false
; }
55
57
uint32_t
raw
()
const
{
return
m_data
; }
58
60
unsigned
et
()
const
{
return
(
m_data
>>
kHtMissMagShift
) &
kHtMissMagMask
; }
61
63
bool
overFlow
()
const
{
return
(
m_data
&
kHtMissOFlowBit
)!=0; }
64
66
unsigned
phi
()
const
{
return
(
m_data
>>
kHtMissPhiShift
) &
kHtMissPhiMask
; }
67
69
int16_t
bx
()
const
{
return
m_bx
; }
70
72
int
operator==
(
const
L1GctHtMiss
&
e
)
const
{
return
m_data
==e.
raw
(); }
73
75
int
operator!=
(
const
L1GctHtMiss
&
e
)
const
{
return
!(*
this
==
e
); }
76
77
private
:
78
79
uint32_t
m_data
;
80
int16_t
m_bx
;
81
82
};
83
85
std::ostream&
operator<<
(std::ostream&
s
,
const
L1GctHtMiss
&
c
);
86
87
88
#endif
L1GctHtMiss::raw
uint32_t raw() const
get the data
Definition:
L1GctHtMiss.h:57
L1GctHtMiss::operator!=
int operator!=(const L1GctHtMiss &e) const
inequality operator
Definition:
L1GctHtMiss.h:75
L1GctHtMiss::kHtMissMagNBits
Definition:
L1GctHtMiss.h:26
L1GctHtMiss::name
std::string name() const
name method
Definition:
L1GctHtMiss.h:51
L1GctHtMiss::kHtMissPhiShift
Definition:
L1GctHtMiss.h:29
L1GctHtMiss::kHtMissMagMask
Definition:
L1GctHtMiss.h:28
L1GctHtMiss::kRawCtorMask
Definition:
L1GctHtMiss.h:33
L1GctHtMiss::kHtMissMagShift
Definition:
L1GctHtMiss.h:30
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
EnergyCorrector.c
c
Definition:
EnergyCorrector.py:44
L1GctHtMiss::m_bx
int16_t m_bx
Definition:
L1GctHtMiss.h:80
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
L1GctHtMiss::overFlow
bool overFlow() const
get the overflow
Definition:
L1GctHtMiss.h:63
L1GctHtMiss::bx
int16_t bx() const
get bunch-crossing index
Definition:
L1GctHtMiss.h:69
L1GctHtMiss::kHtMissPhiNBits
Definition:
L1GctHtMiss.h:25
L1GctHtMiss::operator==
int operator==(const L1GctHtMiss &e) const
equality operator
Definition:
L1GctHtMiss.h:72
L1GctHtMiss::et
unsigned et() const
get the magnitude
Definition:
L1GctHtMiss.h:60
L1GctHtMiss::~L1GctHtMiss
virtual ~L1GctHtMiss()
Definition:
L1GctHtMiss.cc:41
L1GctHtMiss::kHtMissPhiNBins
Definition:
L1GctHtMiss.h:32
L1GctHtMiss::kHtMissPhiMask
Definition:
L1GctHtMiss.h:27
L1GctHtMiss::L1GctHtMiss
L1GctHtMiss()
Definition:
L1GctHtMiss.cc:4
L1GctHtMiss
Persistable copy of missing Et measured at Level-1.
Definition:
L1GctHtMiss.h:16
L1GctHtMiss::empty
bool empty() const
empty method (= false; missing Et is always calculated)
Definition:
L1GctHtMiss.h:54
L1GctHtMiss::m_data
uint32_t m_data
Definition:
L1GctHtMiss.h:79
L1GctHtMiss::kHtMissOFlowBit
Definition:
L1GctHtMiss.h:31
L1GctHtMiss::numberOfBits
numberOfBits
Definition:
L1GctHtMiss.h:24
operator<<
std::ostream & operator<<(std::ostream &s, const L1GctHtMiss &c)
Pretty-print operator for L1GctHtMiss.
Definition:
L1GctHtMiss.cc:44
L1GctHtMiss::phi
unsigned phi() const
get the Et
Definition:
L1GctHtMiss.h:66
Generated for CMSSW Reference Manual by
1.8.11