Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:58:47

0001 //
0002 // File:   TCell.h
0003 // Author: Anton
0004 //
0005 // Created on July 4, 2008, 4:39 PM
0006 //
0007 // Simple class to hold information on the
0008 // cell id and energy for the HCAL calibration ntuples
0009 
0010 #ifndef _TCELL_H
0011 #define _TCELL_H
0012 
0013 #include "TObject.h"
0014 
0015 class TCell : public TObject {
0016 private:
0017   UInt_t _id;
0018   Float_t _e;
0019 
0020 public:
0021   TCell() {
0022     _id = 0;
0023     _e = 0.0;
0024   }
0025   ~TCell() override{};
0026   TCell(UInt_t i, Float_t e) {
0027     _id = i;
0028     _e = e;
0029   }
0030 
0031   Float_t e() { return _e; }
0032   UInt_t id() { return _id; }
0033 
0034   void SetE(Float_t e) { _e = e; }
0035   void SetId(UInt_t i) { _id = i; }
0036 
0037   ClassDefOverride(TCell, 1);
0038 };
0039 
0040 #endif /* _TCELL_H */