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