StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTofDataCollection.h
1 /****************************************************************
2  * $Id: StTofDataCollection.h,v 1.2 2015/07/28 22:55:44 smirnovd Exp $
3  *****************************************************************
4  * Author: Bill Llope
5  * Description: Local TOF raw data collection
6  *****************************************************************
7  * $Log: StTofDataCollection.h,v $
8  * Revision 1.2 2015/07/28 22:55:44 smirnovd
9  * Added cstddef C++ header defining size_t type
10  *
11  * Revision 1.1 2003/08/08 00:18:25 geurts
12  * moved from StTofMaker to StTofUtil
13  *
14  *
15  ****************************************************************/
16 #ifndef ST_TOF_DATA_COLLECTION_H
17 #define ST_TOF_DATA_COLLECTION_H
18 
19 #include <cstddef>
20 #include <vector>
21 #ifndef ST_NO_NAMESPACES
22 using std::vector;
23 using std::copy;
24 #endif
25 
26 //#include "StTofData.h"
27 class StTofData;
28 
29 #ifndef ST_NO_DEF_TEMPLATE_ARGS
30 typedef vector<StTofData*> dataVector;
31 #else
32 typedef vector<StTofData*, allocator<StTofData*> > dataVector;
33 #endif
34 
36 public:
38  virtual ~StTofDataCollection();
39  bool push_back(StTofData* chan);
40  size_t size() const;
41  StTofData* front() const;
42  StTofData* back() const;
43  StTofData* getData(size_t index) const;
44  void clear();
45 
46 private:
47  dataVector mDataVector;
48 };
49 #endif