CMS 3D CMS Logo

TCell.h
Go to the documentation of this file.
1 //
2 // File: TCell.h
3 // Author: Anton
4 //
5 // Created on July 4, 2008, 4:39 PM
6 //
7 // Simple class to hold information on the
8 // cell id and energy for the HCAL calibration ntuples
9 
10 #ifndef _TCELL_H
11 #define _TCELL_H
12 
13 #include "TObject.h"
14 
15 class TCell : public TObject {
16 private:
17  UInt_t _id;
18  Float_t _e;
19 
20 public:
21  TCell() {
22  _id = 0;
23  _e = 0.0;
24  }
25  ~TCell() override{};
26  TCell(UInt_t i, Float_t e) {
27  _id = i;
28  _e = e;
29  }
30 
31  Float_t e() { return _e; }
32  UInt_t id() { return _id; }
33 
34  void SetE(Float_t e) { _e = e; }
35  void SetId(UInt_t i) { _id = i; }
36 
38 };
39 
40 #endif /* _TCELL_H */
Float_t e()
Definition: TCell.h:31
Definition: TCell.h:15
UInt_t id()
Definition: TCell.h:32
Float_t _e
Definition: TCell.h:18
ClassDefOverride(TCell, 1)
void SetE(Float_t e)
Definition: TCell.h:34
~TCell() override
Definition: TCell.h:25
UInt_t _id
Definition: TCell.h:17
TCell(UInt_t i, Float_t e)
Definition: TCell.h:26
TCell()
Definition: TCell.h:21
void SetId(UInt_t i)
Definition: TCell.h:35