Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

TMBCellContainer.hpp

Go to the documentation of this file.
00001 #ifndef TMBCellContainer_H
00002 #define TMBCellContainer_H
00003 
00004 #include "TObject.h"
00005 #include <vector>
00006 #include "tmb_tree/TMBCaloCell.hpp"
00007 
00021 class TMBCellContainer : public TObject {
00022 
00023     std::vector<TMBCaloCell> _cells;
00024 
00025 public:
00026 
00028     typedef UShort_t Index_t;
00029 
00030     TMBCellContainer();
00031     ~TMBCellContainer();
00032 
00034     UInt_t NumCells() const;
00035     
00038     const TMBCaloCell *GetCell(Index_t index) const;
00039 
00042     const TMBCaloCell *GetCell(Char_t ieta, UChar_t iphi, UChar_t ilayer) const;
00043     
00046     Index_t GetIndex(Char_t ieta, UChar_t iphi, UChar_t ilayer) const;
00047 
00052     Index_t AddCell(Char_t ieta, UChar_t iphi, UChar_t ilayer, Float_t energy, UChar_t flags = 0);
00053 
00055     void ClearCells();
00056 
00058     Bool_t IsFolder() const;
00059 
00060 public:
00061     ClassDef(TMBCellContainer, 1);
00062 
00063 };
00064 
00065 const TMBCellContainer::Index_t INVALID_CELL = 65535;
00066 
00067 #endif // TMBCaloCell
00068 
00069 
00070 
00071 
00072 
00073 

Generated on Tue Mar 28 10:13:04 2006 for CAF by doxygen 1.3.4