18 #include "StBTofHitCollection.h"
19 #include "StBTofHit.h"
22 StBTofHitCollection::~StBTofHitCollection(){}
24 void StBTofHitCollection::clear() {mHitVector.clear(); }
27 mHitVector.push_back(hit);
32 return mHitVector.front();
36 return mHitVector[index];
40 return mHitVector.back();
44 return mHitVector.size();
StBTofHit * front() const
Returns the first element of the vector.
StBTofHitCollection()
Default constructor.
StBTofHit * back() const
Returns the last element of the vector.
bool push_back(StBTofHit *hit)
Add a StBTofHit into the vector.
size_t size() const
Returns the size of the collection vector.
StBTofHit * getHit(size_t index) const
Returns a BTofRawHit at index in the vector.