CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
17 private:
18  UInt_t _id;
19  Float_t _e;
20 
21 public:
22  TCell() { _id=0; _e=0.0; }
23  ~TCell() {};
24  TCell(UInt_t i, Float_t e) { _id=i; _e=e; }
25 
26  Float_t e() { return _e; }
27  UInt_t id() { return _id; }
28 
29  void SetE(Float_t e) { _e=e; }
30  void SetId(UInt_t i) { _id=i; }
31 
32 
33  ClassDef(TCell, 1);
34 };
35 
36 #endif /* _TCELL_H */
37 
Float_t e()
Definition: TCell.h:26
Definition: TCell.h:15
UInt_t id()
Definition: TCell.h:27
Float_t _e
Definition: TCell.h:19
void SetE(Float_t e)
Definition: TCell.h:29
~TCell()
Definition: TCell.h:23
ClassDef(TCell, 1)
UInt_t _id
Definition: TCell.h:18
TCell(UInt_t i, Float_t e)
Definition: TCell.h:24
TCell()
Definition: TCell.h:22
void SetId(UInt_t i)
Definition: TCell.h:30