StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTofRawDataCollection.h
1 /****************************************************************
2  * $Id: StTofRawDataCollection.h,v 1.2 2015/07/28 22:55:44 smirnovd Exp $
3  *****************************************************************
4  * Author: Xin Dong
5  * Description: Local TOF raw data collection - only valid hits
6  *****************************************************************
7  * $Log: StTofRawDataCollection.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 2005/04/12 17:29:29 dongx
12  * first release, a new data format in StEvent for year 5
13  *
14  *
15  ****************************************************************/
16 #ifndef ST_TOF_RAWDATA_COLLECTION_H
17 #define ST_TOF_RAWDATA_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 "StTofRawData.h"
27 class StTofRawData;
28 
29 #ifndef ST_NO_DEF_TEMPLATE_ARGS
30 typedef vector<StTofRawData*> rawdataVector;
31 #else
32 typedef vector<StTofRawData*, allocator<StTofRawData*> > rawdataVector;
33 #endif
34 
36 public:
38  virtual ~StTofRawDataCollection();
39  bool push_back(StTofRawData* chan);
40  size_t size() const;
41  StTofRawData* front() const;
42  StTofRawData* back() const;
43  StTofRawData* getRawData(size_t index) const;
44  void clear();
45 
46 private:
47  rawdataVector mDataVector;
48 };
49 #endif