CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
l1extra::L1HFRings Class Reference

#include <L1HFRings.h>

Public Types

enum  HFRingLabels {
  kRing1PosEta, kRing1NegEta, kRing2PosEta, kRing2NegEta,
  kNumRings
}
 

Public Member Functions

int bx () const
 
const L1GctHFBitCountsgctHFBitCounts () const
 
const edm::Ref< L1GctHFBitCountsCollection > & gctHFBitCountsRef () const
 
const L1GctHFRingEtSumsgctHFEtSums () const
 
const edm::Ref< L1GctHFRingEtSumsCollection > & gctHFEtSumsRef () const
 
int hfBitCount (HFRingLabels i) const
 
double hfEtSum (HFRingLabels i) const
 
 L1HFRings ()
 
 L1HFRings (const double *hfEtSums, const int *hfBitCounts, const edm::Ref< L1GctHFRingEtSumsCollection > &aHFEtSumsRef=edm::Ref< L1GctHFRingEtSumsCollection >(), const edm::Ref< L1GctHFBitCountsCollection > &aHFBitCountsRef=edm::Ref< L1GctHFBitCountsCollection >(), int bx=0)
 
virtual ~L1HFRings ()
 

Private Attributes

edm::Ref< L1GctHFBitCountsCollectionm_bitCountsRef
 
int m_bx
 
edm::Ref< L1GctHFRingEtSumsCollectionm_etSumsRef
 
int m_ringBitCounts [kNumRings]
 
double m_ringEtSums [kNumRings]
 

Detailed Description

Definition at line 31 of file L1HFRings.h.

Member Enumeration Documentation

◆ HFRingLabels

Enumerator
kRing1PosEta 
kRing1NegEta 
kRing2PosEta 
kRing2NegEta 
kNumRings 

Definition at line 33 of file L1HFRings.h.

Constructor & Destructor Documentation

◆ L1HFRings() [1/2]

L1HFRings::L1HFRings ( )

Definition at line 31 of file L1HFRings.cc.

31 {}

◆ L1HFRings() [2/2]

L1HFRings::L1HFRings ( const double *  hfEtSums,
const int *  hfBitCounts,
const edm::Ref< L1GctHFRingEtSumsCollection > &  aHFEtSumsRef = edm::Ref<L1GctHFRingEtSumsCollection>(),
const edm::Ref< L1GctHFBitCountsCollection > &  aHFBitCountsRef = edm::Ref<L1GctHFBitCountsCollection>(),
int  bx = 0 
)

Definition at line 33 of file L1HFRings.cc.

38  : m_etSumsRef(aHFEtSumsRef), m_bitCountsRef(aHFBitCountsRef), m_bx(bx) {
39  for (int i = 0; i < kNumRings; ++i) {
40  m_ringEtSums[i] = hfEtSums[i];
41  m_ringBitCounts[i] = hfBitCounts[i];
42  }
43 }

References mps_fire::i, kNumRings, m_ringBitCounts, and m_ringEtSums.

◆ ~L1HFRings()

L1HFRings::~L1HFRings ( )
virtual

Definition at line 50 of file L1HFRings.cc.

50 {}

Member Function Documentation

◆ bx()

int l1extra::L1HFRings::bx ( ) const
inline

Definition at line 59 of file L1HFRings.h.

59 { return m_bx; }

References m_bx.

◆ gctHFBitCounts()

const L1GctHFBitCounts* l1extra::L1HFRings::gctHFBitCounts ( ) const
inline

Definition at line 57 of file L1HFRings.h.

57 { return m_bitCountsRef.get(); }

References edm::Ref< C, T, F >::get(), and m_bitCountsRef.

◆ gctHFBitCountsRef()

const edm::Ref<L1GctHFBitCountsCollection>& l1extra::L1HFRings::gctHFBitCountsRef ( ) const
inline

Definition at line 54 of file L1HFRings.h.

54 { return m_bitCountsRef; }

References m_bitCountsRef.

◆ gctHFEtSums()

const L1GctHFRingEtSums* l1extra::L1HFRings::gctHFEtSums ( ) const
inline

Definition at line 56 of file L1HFRings.h.

56 { return m_etSumsRef.get(); }

References edm::Ref< C, T, F >::get(), and m_etSumsRef.

◆ gctHFEtSumsRef()

const edm::Ref<L1GctHFRingEtSumsCollection>& l1extra::L1HFRings::gctHFEtSumsRef ( ) const
inline

Definition at line 53 of file L1HFRings.h.

53 { return m_etSumsRef; }

References m_etSumsRef.

◆ hfBitCount()

int l1extra::L1HFRings::hfBitCount ( HFRingLabels  i) const
inline

Definition at line 51 of file L1HFRings.h.

51 { return m_ringBitCounts[i]; }

References mps_fire::i, and m_ringBitCounts.

◆ hfEtSum()

double l1extra::L1HFRings::hfEtSum ( HFRingLabels  i) const
inline

Definition at line 47 of file L1HFRings.h.

48  {
49  return m_ringEtSums[i];
50  }

References mps_fire::i, and m_ringEtSums.

Member Data Documentation

◆ m_bitCountsRef

edm::Ref<L1GctHFBitCountsCollection> l1extra::L1HFRings::m_bitCountsRef
private

Definition at line 75 of file L1HFRings.h.

Referenced by gctHFBitCounts(), and gctHFBitCountsRef().

◆ m_bx

int l1extra::L1HFRings::m_bx
private

Definition at line 77 of file L1HFRings.h.

Referenced by bx().

◆ m_etSumsRef

edm::Ref<L1GctHFRingEtSumsCollection> l1extra::L1HFRings::m_etSumsRef
private

Definition at line 74 of file L1HFRings.h.

Referenced by gctHFEtSums(), and gctHFEtSumsRef().

◆ m_ringBitCounts

int l1extra::L1HFRings::m_ringBitCounts[kNumRings]
private

Definition at line 72 of file L1HFRings.h.

Referenced by hfBitCount(), and L1HFRings().

◆ m_ringEtSums

double l1extra::L1HFRings::m_ringEtSums[kNumRings]
private

Definition at line 71 of file L1HFRings.h.

Referenced by hfEtSum(), and L1HFRings().

mps_fire.i
i
Definition: mps_fire.py:355
l1extra::L1HFRings::m_ringBitCounts
int m_ringBitCounts[kNumRings]
Definition: L1HFRings.h:72
edm::Ref::get
T const * get() const
Returns C++ pointer to the item.
Definition: Ref.h:232
l1extra::L1HFRings::kRing2PosEta
Definition: L1HFRings.h:33
l1extra::L1HFRings::m_bitCountsRef
edm::Ref< L1GctHFBitCountsCollection > m_bitCountsRef
Definition: L1HFRings.h:75
l1extra::L1HFRings::m_etSumsRef
edm::Ref< L1GctHFRingEtSumsCollection > m_etSumsRef
Definition: L1HFRings.h:74
l1extra::L1HFRings::m_bx
int m_bx
Definition: L1HFRings.h:77
l1extra::L1HFRings::kRing2NegEta
Definition: L1HFRings.h:33
l1extra::L1HFRings::bx
int bx() const
Definition: L1HFRings.h:59
l1extra::L1HFRings::kRing1NegEta
Definition: L1HFRings.h:33
l1extra::L1HFRings::m_ringEtSums
double m_ringEtSums[kNumRings]
Definition: L1HFRings.h:71
l1extra::L1HFRings::kNumRings
Definition: L1HFRings.h:33
l1extra::L1HFRings::kRing1PosEta
Definition: L1HFRings.h:33