00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #include <memory>
00021 #include "StGlobals.hh"
00022 #include "StMuBTofHitCollection.h"
00023
00024 StMuBTofHitCollection::StMuBTofHitCollection()
00025 { }
00026
00027 StMuBTofHitCollection::~StMuBTofHitCollection()
00028 {
00029 clear();
00030 }
00031
00032 void
00033 StMuBTofHitCollection::clear()
00034 {
00035 int n = mHitVector.size();
00036 for (int i=0;i<n;i++) { delete mHitVector[i];}
00037 mHitVector.clear();
00038 }
00039
00040 bool
00041 StMuBTofHitCollection::push_back(StMuBTofHit* hit)
00042 {
00043 mHitVector.push_back(hit);
00044 return true;
00045 }
00046
00047 StMuBTofHit*
00048 StMuBTofHitCollection::front() const
00049 {
00050 return mHitVector.front();
00051 }
00052
00053 StMuBTofHit*
00054 StMuBTofHitCollection::getHit(size_t index) const
00055 {
00056 return mHitVector[index];
00057 }
00058
00059 StMuBTofHit*
00060 StMuBTofHitCollection::back() const
00061 {
00062 return mHitVector.back();
00063 }
00064
00065 size_t
00066 StMuBTofHitCollection::size() const
00067 {
00068 return mHitVector.size();
00069 }
00070