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  public:
34 
35  L1HFRings();
36 
37  // Default Refs are null.
38  L1HFRings(const double* hfEtSums, // array of etSums
39  const int* hfBitCounts, // array of bitCounts
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 
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 --------------------------------
73 
76 
77  int m_bx;
78  };
79 } // namespace l1extra
80 
81 #endif
const edm::Ref< L1GctHFRingEtSumsCollection > & gctHFEtSumsRef() const
Definition: L1HFRings.h:53
double m_ringEtSums[kNumRings]
Definition: L1HFRings.h:71
const edm::Ref< L1GctHFBitCountsCollection > & gctHFBitCountsRef() const
Definition: L1HFRings.h:54
virtual ~L1HFRings()
Definition: L1HFRings.cc:50
int m_ringBitCounts[kNumRings]
Definition: L1HFRings.h:72
L1 GCT HF ring Et sums.
edm::Ref< L1GctHFBitCountsCollection > m_bitCountsRef
Definition: L1HFRings.h:75
L1 GCT HF ring Et sums.
edm::Ref< L1GctHFRingEtSumsCollection > m_etSumsRef
Definition: L1HFRings.h:74
double hfEtSum(HFRingLabels i) const
Definition: L1HFRings.h:47
T const * get() const
Returns C++ pointer to the item.
Definition: Ref.h:232
const L1GctHFRingEtSums * gctHFEtSums() const
Definition: L1HFRings.h:56
const L1GctHFBitCounts * gctHFBitCounts() const
Definition: L1HFRings.h:57
int bx() const
Definition: L1HFRings.h:59
int hfBitCount(HFRingLabels i) const
Definition: L1HFRings.h:51