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

TMBCalNada.cpp

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

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