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

TMBCalT42.cpp

Go to the documentation of this file.
00001 
00002 #include "tmb_tree/TMBCalT42.hpp"
00003 
00004 
00005 TMBCalT42::TMBCalT42()
00006     : _container(0)
00007 {}
00008 
00009 TMBCalT42::TMBCalT42(TMBCellContainer *cont, 
00010                      const std::vector<TMBCellContainer::Index_t>& cells)
00011     : _container(cont),
00012       _cells(cells)
00013 {
00014 }
00015  
00016 TMBCalT42::~TMBCalT42()
00017 {
00018 }
00019 
00020 Int_t TMBCalT42::NumCells() const
00021 {
00022     return _cells.size();
00023 }
00024     
00025 // Get a Calo cell based on index; returns NULL if 'index'
00026 // is greater than ncells()
00027 const TMBCaloCell *TMBCalT42::GetCell(Int_t index) const
00028 {
00029     if(TMBCellContainer *ptr = _container.IsValid() ? (TMBCellContainer *)_container.GetObject() : 0) {
00030         return ptr->GetCell(_cells[index]);
00031     } else {
00032         return 0;
00033     }
00034 }
00035 
00036 // Inherited from TObject. Allow contents of this object to be browsed.
00037 Bool_t TMBCalT42::IsFolder() const
00038 {
00039     return kTRUE;
00040 }

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