test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
{
33
34
public
:
35
enum
HFRingLabels
{
kRing1PosEta
,
kRing1NegEta
,
kRing2PosEta
,
36
kRing2NegEta
,
kNumRings
} ;
37
38
L1HFRings
();
39
40
// Default Refs are null.
41
L1HFRings
(
const
double
* hfEtSums,
// array of etSums
42
const
int
* hfBitCounts,
// array of bitCounts
43
const
edm::Ref< L1GctHFRingEtSumsCollection >
& aHFEtSumsRef =
44
edm::Ref< L1GctHFRingEtSumsCollection >
(),
45
const
edm::Ref< L1GctHFBitCountsCollection >
& aHFBitCountsRef
46
=
edm::Ref< L1GctHFBitCountsCollection >
(),
47
int
bx
= 0 ) ;
48
49
virtual
~L1HFRings
();
50
51
// ---------- const member functions ---------------------
52
double
hfEtSum
(
HFRingLabels
i
)
const
// in GeV
53
{
return
m_ringEtSums
[
i
] ; }
54
int
hfBitCount
(
HFRingLabels
i
)
const
55
{
return
m_ringBitCounts
[
i
] ; }
56
57
const
edm::Ref< L1GctHFRingEtSumsCollection >
&
gctHFEtSumsRef
()
const
58
{
return
m_etSumsRef
; }
59
const
edm::Ref< L1GctHFBitCountsCollection >
&
gctHFBitCountsRef
()
const
60
{
return
m_bitCountsRef
; }
61
62
const
L1GctHFRingEtSums
*
gctHFEtSums
()
const
63
{
return
m_etSumsRef
.
get
() ; }
64
const
L1GctHFBitCounts
*
gctHFBitCounts
()
const
65
{
return
m_bitCountsRef
.
get
() ; }
66
67
int
bx
()
const
{
return
m_bx
; }
68
69
// ---------- static member functions --------------------
70
71
// ---------- member functions ---------------------------
72
73
private
:
74
// L1HFRings(const L1HFRings&); // stop default
75
76
// const L1HFRings& operator=(const L1HFRings&); // stop default
77
78
// ---------- member data --------------------------------
79
double
m_ringEtSums
[
kNumRings
] ;
80
int
m_ringBitCounts
[
kNumRings
] ;
81
82
edm::Ref< L1GctHFRingEtSumsCollection >
m_etSumsRef
;
83
edm::Ref< L1GctHFBitCountsCollection >
m_bitCountsRef
;
84
85
int
m_bx
;
86
};
87
}
88
89
#endif
i
int i
Definition:
DBlmapReader.cc:9
l1extra::L1HFRings::HFRingLabels
HFRingLabels
Definition:
L1HFRings.h:35
l1extra::L1HFRings::kRing1PosEta
Definition:
L1HFRings.h:35
edm::Ref< L1GctHFRingEtSumsCollection >
l1extra::L1HFRings::m_ringEtSums
double m_ringEtSums[kNumRings]
Definition:
L1HFRings.h:79
l1extra::L1HFRings::gctHFEtSums
const L1GctHFRingEtSums * gctHFEtSums() const
Definition:
L1HFRings.h:62
l1extra::L1HFRings::hfBitCount
int hfBitCount(HFRingLabels i) const
Definition:
L1HFRings.h:54
l1extra::L1HFRings
Definition:
L1HFRings.h:31
l1extra::L1HFRings::~L1HFRings
virtual ~L1HFRings()
Definition:
L1HFRings.cc:57
l1extra::L1HFRings::m_ringBitCounts
int m_ringBitCounts[kNumRings]
Definition:
L1HFRings.h:80
L1GctHFBitCounts
L1 GCT HF ring Et sums.
Definition:
L1GctHFBitCounts.h:17
l1extra::L1HFRings::gctHFEtSumsRef
const edm::Ref< L1GctHFRingEtSumsCollection > & gctHFEtSumsRef() const
Definition:
L1HFRings.h:57
l1extra::L1HFRings::hfEtSum
double hfEtSum(HFRingLabels i) const
Definition:
L1HFRings.h:52
l1extra::L1HFRings::kRing1NegEta
Definition:
L1HFRings.h:35
edm::Ref::get
T const * get() const
Returns C++ pointer to the item.
Definition:
Ref.h:244
L1GctHFRingEtSums
L1 GCT HF ring Et sums.
Definition:
L1GctHFRingEtSums.h:17
l1extra::L1HFRings::kRing2PosEta
Definition:
L1HFRings.h:35
L1GctCollections.h
l1extra::L1HFRings::m_bitCountsRef
edm::Ref< L1GctHFBitCountsCollection > m_bitCountsRef
Definition:
L1HFRings.h:83
Ref.h
l1extra::L1HFRings::bx
int bx() const
Definition:
L1HFRings.h:67
l1extra::L1HFRings::L1HFRings
L1HFRings()
Definition:
L1HFRings.cc:31
l1extra::L1HFRings::kNumRings
Definition:
L1HFRings.h:36
l1extra::L1HFRings::kRing2NegEta
Definition:
L1HFRings.h:36
l1extra::L1HFRings::gctHFBitCounts
const L1GctHFBitCounts * gctHFBitCounts() const
Definition:
L1HFRings.h:64
l1extra::L1HFRings::gctHFBitCountsRef
const edm::Ref< L1GctHFBitCountsCollection > & gctHFBitCountsRef() const
Definition:
L1HFRings.h:59
l1extra::L1HFRings::m_bx
int m_bx
Definition:
L1HFRings.h:85
l1extra::L1HFRings::m_etSumsRef
edm::Ref< L1GctHFRingEtSumsCollection > m_etSumsRef
Definition:
L1HFRings.h:82
Generated for CMSSW Reference Manual by
1.8.5