StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTofCellCollection.h
1 /****************************************************************
2  * $Id: StTofCellCollection.h,v 1.2 2015/07/28 22:55:43 smirnovd Exp $
3  *****************************************************************
4  * Description: Local TOF cells collection
5  *
6  *****************************************************************
7  * $Log: StTofCellCollection.h,v $
8  * Revision 1.2 2015/07/28 22:55:43 smirnovd
9  * Added cstddef C++ header defining size_t type
10  *
11  * Revision 1.1 2003/08/06 22:59:36 geurts
12  * First Release
13  * - used by TOF MatchMakers
14  *
15  *
16  ****************************************************************/
17 #ifndef ST_TOF_CELL_COLLECTION_H
18 #define ST_TOF_CELL_COLLECTION_H
19 
20 #include <cstddef>
21 #include <vector>
22 #ifndef ST_NO_NAMESPACES
23 using std::vector;
24 using std::copy;
25 #endif
26 
27 class StTofCell;
28 
29 #ifndef ST_NO_DEF_TEMPLATE_ARGS
30 typedef vector<StTofCell*> cellVector;
31 #else
32 typedef vector<StTofCell*, allocator<StTofCell*> > cellVector;
33 #endif
34 
36 public:
38  virtual ~StTofCellCollection();
39 
40  bool push_back(StTofCell* cell);
41  size_t size() const;
42  StTofCell* front() const;
43  StTofCell* back() const;
44  StTofCell* getCell(size_t index) const;
45  void clear();
46 
47  private:
48  cellVector mCellVector;
49 };
50 #endif