src
DataFormats
L1Trigger
interface
L1HFRings.h
Go to the documentation of this file.
1
#ifndef DataFormats_L1Trigger_L1HFRings_h
2
#define DataFormats_L1Trigger_L1HFRings_h
3
// -*- C++ -*-
4
//
5
// Package: L1Trigger
6
// Class : L1HFRings
7
//
16
//
17
// Original Author: Werner Sun
18
// Created: Sat Mar 14 19:04:20 CET 2009
19
//
20
21
// system include files
22
23
// user include files
24
#include "
DataFormats/L1GlobalCaloTrigger/interface/L1GctCollections.h
"
25
#include "
DataFormats/Common/interface/Ref.h
"
26
27
// forward declarations
28
29
namespace
l1extra
{
30
31
class
L1HFRings
{
32
public
:
33
enum
HFRingLabels
{
kRing1PosEta
,
kRing1NegEta
,
kRing2PosEta
,
kRing2NegEta
,
kNumRings
};
34
35
L1HFRings
();
36
37
// Default Refs are null.
38
L1HFRings
(
const
double
* hfEtSums,
// array of etSums
39
const
int
* hfBitCounts,
// array of bitCounts
40
const
edm::Ref<L1GctHFRingEtSumsCollection>
& aHFEtSumsRef =
edm::Ref<L1GctHFRingEtSumsCollection>
(),
41
const
edm::Ref<L1GctHFBitCountsCollection>
& aHFBitCountsRef =
edm::Ref<L1GctHFBitCountsCollection>
(),
42
int
bx
= 0);
43
44
virtual
~L1HFRings
();
45
46
// ---------- const member functions ---------------------
47
double
hfEtSum
(
HFRingLabels
i
)
const
// in GeV
48
{
49
return
m_ringEtSums
[
i
];
50
}
51
int
hfBitCount
(
HFRingLabels
i
)
const
{
return
m_ringBitCounts
[
i
]; }
52
53
const
edm::Ref<L1GctHFRingEtSumsCollection>
&
gctHFEtSumsRef
()
const
{
return
m_etSumsRef
; }
54
const
edm::Ref<L1GctHFBitCountsCollection>
&
gctHFBitCountsRef
()
const
{
return
m_bitCountsRef
; }
55
56
const
L1GctHFRingEtSums
*
gctHFEtSums
()
const
{
return
m_etSumsRef
.
get
(); }
57
const
L1GctHFBitCounts
*
gctHFBitCounts
()
const
{
return
m_bitCountsRef
.
get
(); }
58
59
int
bx
()
const
{
return
m_bx
; }
60
61
// ---------- static member functions --------------------
62
63
// ---------- member functions ---------------------------
64
65
private
:
66
// L1HFRings(const L1HFRings&); // stop default
67
68
// const L1HFRings& operator=(const L1HFRings&); // stop default
69
70
// ---------- member data --------------------------------
71
double
m_ringEtSums
[
kNumRings
];
72
int
m_ringBitCounts
[
kNumRings
];
73
74
edm::Ref<L1GctHFRingEtSumsCollection>
m_etSumsRef
;
75
edm::Ref<L1GctHFBitCountsCollection>
m_bitCountsRef
;
76
77
int
m_bx
;
78
};
79
}
// namespace l1extra
80
81
#endif
l1extra::L1HFRings::HFRingLabels
HFRingLabels
Definition:
L1HFRings.h:33
mps_fire.i
i
Definition:
mps_fire.py:428
l1extra::L1HFRings::kRing1PosEta
Definition:
L1HFRings.h:33
l1extra
Definition:
L1EmParticle.h:26
l1extra::L1HFRings::gctHFEtSumsRef
const edm::Ref< L1GctHFRingEtSumsCollection > & gctHFEtSumsRef() const
Definition:
L1HFRings.h:53
edm::Ref< L1GctHFRingEtSumsCollection >
l1extra::L1HFRings::m_ringEtSums
double m_ringEtSums[kNumRings]
Definition:
L1HFRings.h:71
l1extra::L1HFRings::gctHFBitCountsRef
const edm::Ref< L1GctHFBitCountsCollection > & gctHFBitCountsRef() const
Definition:
L1HFRings.h:54
l1extra::L1HFRings
Definition:
L1HFRings.h:31
l1extra::L1HFRings::~L1HFRings
virtual ~L1HFRings()
Definition:
L1HFRings.cc:50
l1extra::L1HFRings::m_ringBitCounts
int m_ringBitCounts[kNumRings]
Definition:
L1HFRings.h:72
L1GctHFBitCounts
L1 GCT HF ring Et sums.
Definition:
L1GctHFBitCounts.h:16
l1extra::L1HFRings::m_bitCountsRef
edm::Ref< L1GctHFBitCountsCollection > m_bitCountsRef
Definition:
L1HFRings.h:75
l1extra::L1HFRings::kRing1NegEta
Definition:
L1HFRings.h:33
L1GctHFRingEtSums
L1 GCT HF ring Et sums.
Definition:
L1GctHFRingEtSums.h:16
l1extra::L1HFRings::kRing2PosEta
Definition:
L1HFRings.h:33
l1extra::L1HFRings::m_etSumsRef
edm::Ref< L1GctHFRingEtSumsCollection > m_etSumsRef
Definition:
L1HFRings.h:74
L1GctCollections.h
Ref.h
l1extra::L1HFRings::L1HFRings
L1HFRings()
Definition:
L1HFRings.cc:31
l1extra::L1HFRings::kNumRings
Definition:
L1HFRings.h:33
l1extra::L1HFRings::kRing2NegEta
Definition:
L1HFRings.h:33
l1extra::L1HFRings::hfEtSum
double hfEtSum(HFRingLabels i) const
Definition:
L1HFRings.h:47
edm::Ref::get
T const * get() const
Returns C++ pointer to the item.
Definition:
Ref.h:232
l1extra::L1HFRings::gctHFEtSums
const L1GctHFRingEtSums * gctHFEtSums() const
Definition:
L1HFRings.h:56
l1extra::L1HFRings::gctHFBitCounts
const L1GctHFBitCounts * gctHFBitCounts() const
Definition:
L1HFRings.h:57
l1extra::L1HFRings::bx
int bx() const
Definition:
L1HFRings.h:59
l1extra::L1HFRings::m_bx
int m_bx
Definition:
L1HFRings.h:77
l1extra::L1HFRings::hfBitCount
int hfBitCount(HFRingLabels i) const
Definition:
L1HFRings.h:51
Generated for CMSSW Reference Manual by
1.8.14