StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StBTofRawHitCollection.cxx
1 /****************************************************************
2  *
3  * $Id: StBTofRawHitCollection.cxx,v 1.1 2009/02/02 21:57:21 dongx Exp $
4  *
5  * Author: Xin Dong
6  *
7  *****************************************************************
8  *
9  * Description:
10  * Local TOF raw hit colletion
11  *
12  *****************************************************************
13  *
14  * $Log: StBTofRawHitCollection.cxx,v $
15  * Revision 1.1 2009/02/02 21:57:21 dongx
16  * first release
17  *
18  *
19  ****************************************************************/
20 #include "StBTofRawHitCollection.h"
21 #include "StBTofRawHit.h"
22 
24 StBTofRawHitCollection::~StBTofRawHitCollection(){/* nope */}
25 
26 void StBTofRawHitCollection::clear() {mHitVector.clear();}
27 
29  mHitVector.push_back(hit);
30  return true;
31 }
32 
34  return mHitVector.front();
35 }
36 
38  return mHitVector[index];
39 }
40 
42  return mHitVector.back();
43 }
44 
46  return mHitVector.size();
47 }
size_t size() const
Returns the size of the collection vector.
StBTofRawHitCollection()
Default constructor.
StBTofRawHit * getRawHit(size_t index) const
Returns a BTofRawHit at index in the vector.
StBTofRawHit * front() const
Returns the first element of the vector.
StBTofRawHit * back() const
Returns the last element of the vector.
bool push_back(StBTofRawHit *hit)
Add a StBTofRawHit into the vector.