CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
27 
28 // forward declarations
29 
30 namespace l1extra {
31 
32 class L1HFRings
33 {
34 
35  public:
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 =
46  const edm::Ref< L1GctHFBitCountsCollection >& aHFBitCountsRef
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 
59  { return m_etSumsRef ; }
61  { return m_bitCountsRef ; }
62 
64  { return m_etSumsRef.get() ; }
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 ] ;
82 
85 
86  int m_bx ;
87 };
88 }
89 
90 #endif
int i
Definition: DBlmapReader.cc:9
double m_ringEtSums[kNumRings]
Definition: L1HFRings.h:80
const L1GctHFRingEtSums * gctHFEtSums() const
Definition: L1HFRings.h:63
int hfBitCount(HFRingLabels i) const
Definition: L1HFRings.h:55
virtual ~L1HFRings()
Definition: L1HFRings.cc:58
int m_ringBitCounts[kNumRings]
Definition: L1HFRings.h:81
L1 GCT HF ring Et sums.
const edm::Ref< L1GctHFRingEtSumsCollection > & gctHFEtSumsRef() const
Definition: L1HFRings.h:58
double hfEtSum(HFRingLabels i) const
Definition: L1HFRings.h:53
L1 GCT HF ring Et sums.
edm::Ref< L1GctHFBitCountsCollection > m_bitCountsRef
Definition: L1HFRings.h:84
int bx() const
Definition: L1HFRings.h:68
const L1GctHFBitCounts * gctHFBitCounts() const
Definition: L1HFRings.h:65
const edm::Ref< L1GctHFBitCountsCollection > & gctHFBitCountsRef() const
Definition: L1HFRings.h:60
T const * get() const
Returns C++ pointer to the item.
Definition: Ref.h:241
edm::Ref< L1GctHFRingEtSumsCollection > m_etSumsRef
Definition: L1HFRings.h:83