DataFormats
L1GlobalCaloTrigger
interface
L1GctJetCounts.h
Go to the documentation of this file.
1
#ifndef L1GCTJETCOUNTS_H
2
#define L1GCTJETCOUNTS_H
3
4
#include <vector>
5
#include <ostream>
6
#include <cstdint>
7
15
16
class
L1GctJetCounts
{
17
public
:
21
static
const
unsigned
MAX_TOTAL_COUNTS
;
22
static
const
unsigned
MAX_TRUE_COUNTS
;
23
25
L1GctJetCounts
();
26
28
33
L1GctJetCounts
(uint32_t data0, uint32_t data1);
34
35
L1GctJetCounts
(uint32_t data0, uint32_t data1, int16_t
bx
);
36
38
L1GctJetCounts
(
const
std::vector<unsigned>&
counts
);
39
40
L1GctJetCounts
(
const
std::vector<unsigned>&
counts
, int16_t
bx
);
41
43
virtual
~L1GctJetCounts
();
44
46
std::string
name
()
const
{
return
"JetCounts"
; }
47
49
bool
empty
()
const
{
return
false
; }
50
52
uint32_t
raw0
()
const
{
return
m_data0
; }
53
55
uint32_t
raw1
()
const
{
return
m_data1
; }
56
58
unsigned
count
(
unsigned
i
)
const
;
59
61
unsigned
count00
()
const
{
return
(
MAX_TRUE_COUNTS
< 1 ? 0 :
count
(0)); }
62
unsigned
count01
()
const
{
return
(
MAX_TRUE_COUNTS
< 2 ? 0 :
count
(1)); }
63
unsigned
count02
()
const
{
return
(
MAX_TRUE_COUNTS
< 3 ? 0 :
count
(2)); }
64
unsigned
count03
()
const
{
return
(
MAX_TRUE_COUNTS
< 4 ? 0 :
count
(3)); }
65
unsigned
count04
()
const
{
return
(
MAX_TRUE_COUNTS
< 5 ? 0 :
count
(4)); }
66
unsigned
count05
()
const
{
return
(
MAX_TRUE_COUNTS
< 6 ? 0 :
count
(5)); }
67
unsigned
count06
()
const
{
return
(
MAX_TRUE_COUNTS
< 7 ? 0 :
count
(6)); }
68
unsigned
count07
()
const
{
return
(
MAX_TRUE_COUNTS
< 8 ? 0 :
count
(7)); }
69
unsigned
count08
()
const
{
return
(
MAX_TRUE_COUNTS
< 9 ? 0 :
count
(8)); }
70
unsigned
count09
()
const
{
return
(
MAX_TRUE_COUNTS
< 10 ? 0 :
count
(9)); }
71
unsigned
count10
()
const
{
return
(
MAX_TRUE_COUNTS
< 11 ? 0 :
count
(10)); }
72
unsigned
count11
()
const
{
return
(
MAX_TRUE_COUNTS
< 12 ? 0 :
count
(11)); }
73
75
int16_t
bx
()
const
{
return
m_bx
; }
76
78
int
operator==
(
const
L1GctJetCounts
&
c
)
const
{
return
(
m_data0
==
c
.raw0() &&
m_data1
==
c
.raw1()); }
79
81
int
operator!=
(
const
L1GctJetCounts
&
c
)
const
{
return
!(*
this
==
c
); }
82
83
private
:
84
uint32_t
m_data0
;
85
uint32_t
m_data1
;
86
int16_t
m_bx
;
87
};
88
89
std::ostream&
operator<<
(std::ostream&
s
,
const
L1GctJetCounts
&
c
);
90
91
#endif
mps_fire.i
i
Definition:
mps_fire.py:428
L1GctJetCounts::count01
unsigned count01() const
Definition:
L1GctJetCounts.h:62
L1GctJetCounts::empty
bool empty() const
empty method
Definition:
L1GctJetCounts.h:49
operator<<
std::ostream & operator<<(std::ostream &s, const L1GctJetCounts &c)
L1GctJetCounts::operator==
int operator==(const L1GctJetCounts &c) const
equality operator
Definition:
L1GctJetCounts.h:78
L1GctJetCounts::raw0
uint32_t raw0() const
get raw word 0
Definition:
L1GctJetCounts.h:52
L1GctJetCounts::name
std::string name() const
name method
Definition:
L1GctJetCounts.h:46
L1GctJetCounts::count03
unsigned count03() const
Definition:
L1GctJetCounts.h:64
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
L1GctJetCounts::MAX_TRUE_COUNTS
static const unsigned MAX_TRUE_COUNTS
Definition:
L1GctJetCounts.h:22
L1GctJetCounts::count00
unsigned count00() const
get individual counts (for use with FWLite)
Definition:
L1GctJetCounts.h:61
L1GctJetCounts::count08
unsigned count08() const
Definition:
L1GctJetCounts.h:69
L1GctJetCounts::raw1
uint32_t raw1() const
get raw word 1
Definition:
L1GctJetCounts.h:55
L1GctJetCounts::m_data1
uint32_t m_data1
Definition:
L1GctJetCounts.h:85
L1GctJetCounts::count09
unsigned count09() const
Definition:
L1GctJetCounts.h:70
L1GctJetCounts::bx
int16_t bx() const
get bunch-crossing index
Definition:
L1GctJetCounts.h:75
L1GctJetCounts::count05
unsigned count05() const
Definition:
L1GctJetCounts.h:66
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
L1GctJetCounts
Definition:
L1GctJetCounts.h:16
L1GctJetCounts::count02
unsigned count02() const
Definition:
L1GctJetCounts.h:63
L1GctJetCounts::m_bx
int16_t m_bx
Definition:
L1GctJetCounts.h:86
L1GctJetCounts::count10
unsigned count10() const
Definition:
L1GctJetCounts.h:71
L1GctJetCounts::~L1GctJetCounts
virtual ~L1GctJetCounts()
destructor
Definition:
L1GctJetCounts.cc:60
L1GctJetCounts::count
unsigned count(unsigned i) const
get count by index
Definition:
L1GctJetCounts.cc:63
L1GctJetCounts::count04
unsigned count04() const
Definition:
L1GctJetCounts.h:65
L1GctJetCounts::operator!=
int operator!=(const L1GctJetCounts &c) const
inequality operator
Definition:
L1GctJetCounts.h:81
dqmiodumpmetadata.counts
counts
Definition:
dqmiodumpmetadata.py:25
L1GctJetCounts::count11
unsigned count11() const
Definition:
L1GctJetCounts.h:72
L1GctJetCounts::count06
unsigned count06() const
Definition:
L1GctJetCounts.h:67
c
auto & c
Definition:
CAHitNtupletGeneratorKernelsImpl.h:56
L1GctJetCounts::m_data0
uint32_t m_data0
Definition:
L1GctJetCounts.h:84
L1GctJetCounts::MAX_TOTAL_COUNTS
static const unsigned MAX_TOTAL_COUNTS
Definition:
L1GctJetCounts.h:21
L1GctJetCounts::count07
unsigned count07() const
Definition:
L1GctJetCounts.h:68
L1GctJetCounts::L1GctJetCounts
L1GctJetCounts()
default constructor
Definition:
L1GctJetCounts.cc:17
Generated for CMSSW Reference Manual by
1.8.16