CMS 3D CMS Logo

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
26 
27 // forward declarations
28 
29 namespace l1extra {
30 
31 class L1HFRings
32 {
33 
34  public:
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 =
45  const edm::Ref< L1GctHFBitCountsCollection >& aHFBitCountsRef
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 
58  { return m_etSumsRef ; }
60  { return m_bitCountsRef ; }
61 
63  { return m_etSumsRef.get() ; }
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 ] ;
81 
84 
85  int m_bx ;
86 };
87 }
88 
89 #endif
double m_ringEtSums[kNumRings]
Definition: L1HFRings.h:79
const L1GctHFRingEtSums * gctHFEtSums() const
Definition: L1HFRings.h:62
int hfBitCount(HFRingLabels i) const
Definition: L1HFRings.h:54
virtual ~L1HFRings()
Definition: L1HFRings.cc:57
int m_ringBitCounts[kNumRings]
Definition: L1HFRings.h:80
L1 GCT HF ring Et sums.
const edm::Ref< L1GctHFRingEtSumsCollection > & gctHFEtSumsRef() const
Definition: L1HFRings.h:57
double hfEtSum(HFRingLabels i) const
Definition: L1HFRings.h:52
T const * get() const
Returns C++ pointer to the item.
Definition: Ref.h:244
L1 GCT HF ring Et sums.
edm::Ref< L1GctHFBitCountsCollection > m_bitCountsRef
Definition: L1HFRings.h:83
int bx() const
Definition: L1HFRings.h:67
const L1GctHFBitCounts * gctHFBitCounts() const
Definition: L1HFRings.h:64
const edm::Ref< L1GctHFBitCountsCollection > & gctHFBitCountsRef() const
Definition: L1HFRings.h:59
edm::Ref< L1GctHFRingEtSumsCollection > m_etSumsRef
Definition: L1HFRings.h:82