StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTofCellCollection.cxx
1 /****************************************************************
2  * $Id: StTofCellCollection.cxx,v 1.1 2003/08/06 22:59:36 geurts Exp $
3  *****************************************************************
4  * Description: Local TOF cells collection
5  *
6  *****************************************************************
7  * $Log: StTofCellCollection.cxx,v $
8  * Revision 1.1 2003/08/06 22:59:36 geurts
9  * First Release
10  * - used by TOF MatchMakers
11  *
12  *
13  ****************************************************************/
14 #include "StTofCellCollection.h"
15 #include "StTofCell.h"
16 
17 StTofCellCollection::StTofCellCollection() {/* nope */ }
18 StTofCellCollection::~StTofCellCollection(){/* nope */ }
19 
20 void StTofCellCollection::clear() {mCellVector.clear();}
21 
22 bool StTofCellCollection::push_back(StTofCell* cell) {
23  mCellVector.push_back(cell);
24  return true;
25 }
26 
27 StTofCell* StTofCellCollection::front() const {
28  return mCellVector.front();
29 }
30 
31 StTofCell* StTofCellCollection::getCell(size_t index) const {
32  return mCellVector[index];
33 }
34 
35 StTofCell* StTofCellCollection::back() const {
36  return mCellVector.back();
37 }
38 
39 size_t StTofCellCollection::size() const {
40  return mCellVector.size();
41 }