20 #include "StBTofRawHitCollection.h"
21 #include "StBTofRawHit.h"
24 StBTofRawHitCollection::~StBTofRawHitCollection(){}
26 void StBTofRawHitCollection::clear() {mHitVector.clear();}
29 mHitVector.push_back(hit);
34 return mHitVector.front();
38 return mHitVector[index];
42 return mHitVector.back();
46 return mHitVector.size();
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.