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
:
23
enum
numberOfBits
{
24
kHtMissPhiNBits
= 5,
25
kHtMissMagNBits
= 7,
26
kHtMissPhiMask
= (1 <<
kHtMissPhiNBits
) - 1,
27
kHtMissMagMask
= (1 <<
kHtMissMagNBits
) - 1,
28
kHtMissPhiShift
= 0,
29
kHtMissMagShift
=
kHtMissPhiNBits
,
30
kHtMissOFlowBit
= (1 << (
kHtMissPhiNBits
+
kHtMissMagNBits
)),
31
kHtMissPhiNBins
= 18,
32
kRawCtorMask
=
kHtMissOFlowBit
| (
kHtMissMagMask
<<
kHtMissMagShift
) | (
kHtMissPhiMask
<<
kHtMissPhiShift
)
33
};
34
35
L1GctHtMiss
();
36
38
L1GctHtMiss
(uint32_t
rawData
);
39
41
L1GctHtMiss
(uint32_t
rawData
, int16_t
bx
);
42
43
L1GctHtMiss
(
unsigned
et
,
unsigned
phi
,
bool
oflow);
44
45
L1GctHtMiss
(
unsigned
et
,
unsigned
phi
,
bool
oflow, int16_t
bx
);
46
47
virtual
~L1GctHtMiss
();
48
50
std::string
name
()
const
{
return
"HtMiss"
; }
51
53
bool
empty
()
const
{
return
false
; }
54
56
uint32_t
raw
()
const
{
return
m_data
; }
57
59
unsigned
et
()
const
{
return
(
m_data
>>
kHtMissMagShift
) &
kHtMissMagMask
; }
60
62
bool
overFlow
()
const
{
return
(
m_data
&
kHtMissOFlowBit
) != 0; }
63
65
unsigned
phi
()
const
{
return
(
m_data
>>
kHtMissPhiShift
) &
kHtMissPhiMask
; }
66
68
int16_t
bx
()
const
{
return
m_bx
; }
69
71
int
operator==
(
const
L1GctHtMiss
&
e
)
const
{
return
m_data
==
e
.raw(); }
72
74
int
operator!=
(
const
L1GctHtMiss
&
e
)
const
{
return
!(*
this
==
e
); }
75
76
private
:
77
uint32_t
m_data
;
78
int16_t
m_bx
;
79
};
80
82
std::ostream&
operator<<
(std::ostream&
s
,
const
L1GctHtMiss
&
c
);
83
84
#endif
L1GctHtMiss
Persistable copy of missing Et measured at Level-1.
Definition:
L1GctHtMiss.h:16
L1GctHtMiss::kRawCtorMask
Definition:
L1GctHtMiss.h:32
L1GctHtMiss::kHtMissMagNBits
Definition:
L1GctHtMiss.h:25
L1GctHtMiss::m_bx
int16_t m_bx
Definition:
L1GctHtMiss.h:78
l1tstage2_dqm_sourceclient-live_cfg.rawData
rawData
Definition:
l1tstage2_dqm_sourceclient-live_cfg.py:163
L1GctHtMiss::kHtMissMagMask
Definition:
L1GctHtMiss.h:27
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
L1GctHtMiss::raw
uint32_t raw() const
get the data
Definition:
L1GctHtMiss.h:56
operator<<
std::ostream & operator<<(std::ostream &s, const L1GctHtMiss &c)
Pretty-print operator for L1GctHtMiss.
Definition:
L1GctHtMiss.cc:36
L1GctHtMiss::bx
int16_t bx() const
get bunch-crossing index
Definition:
L1GctHtMiss.h:68
L1GctHtMiss::name
std::string name() const
name method
Definition:
L1GctHtMiss.h:50
L1GctHtMiss::L1GctHtMiss
L1GctHtMiss()
Definition:
L1GctHtMiss.cc:4
L1GctHtMiss::kHtMissPhiNBins
Definition:
L1GctHtMiss.h:31
L1GctHtMiss::kHtMissPhiNBits
Definition:
L1GctHtMiss.h:24
L1GctHtMiss::m_data
uint32_t m_data
Definition:
L1GctHtMiss.h:77
L1GctHtMiss::~L1GctHtMiss
virtual ~L1GctHtMiss()
Definition:
L1GctHtMiss.cc:33
L1GctHtMiss::kHtMissOFlowBit
Definition:
L1GctHtMiss.h:30
L1GctHtMiss::operator==
int operator==(const L1GctHtMiss &e) const
equality operator
Definition:
L1GctHtMiss.h:71
L1GctHtMiss::operator!=
int operator!=(const L1GctHtMiss &e) const
inequality operator
Definition:
L1GctHtMiss.h:74
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
L1GctHtMiss::kHtMissPhiMask
Definition:
L1GctHtMiss.h:26
L1GctHtMiss::phi
unsigned phi() const
get the Et
Definition:
L1GctHtMiss.h:65
L1GctHtMiss::empty
bool empty() const
empty method (= false; missing Et is always calculated)
Definition:
L1GctHtMiss.h:53
L1GctHtMiss::kHtMissPhiShift
Definition:
L1GctHtMiss.h:28
L1GctHtMiss::numberOfBits
numberOfBits
Definition:
L1GctHtMiss.h:23
L1GctHtMiss::kHtMissMagShift
Definition:
L1GctHtMiss.h:29
c
auto & c
Definition:
CAHitNtupletGeneratorKernelsImpl.h:56
L1GctHtMiss::overFlow
bool overFlow() const
get the overflow
Definition:
L1GctHtMiss.h:62
L1GctHtMiss::et
unsigned et() const
get the magnitude
Definition:
L1GctHtMiss.h:59
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
Generated for CMSSW Reference Manual by
1.8.16