00001 /**************************************************************** 00002 * $Id: StBTofHitCollection.cxx,v 1.1 2009/02/02 21:57:09 dongx Exp $ 00003 * 00004 * Author: Xin Dong, Dec 2008 00005 * 00006 ***************************************************************** 00007 * Description: 00008 * Local Barrel TOF hits collection 00009 * 00010 ***************************************************************** 00011 * 00012 * $Log: StBTofHitCollection.cxx,v $ 00013 * Revision 1.1 2009/02/02 21:57:09 dongx 00014 * first release 00015 * 00016 * 00017 ****************************************************************/ 00018 #include "StBTofHitCollection.h" 00019 #include "StBTofHit.h" 00020 00021 StBTofHitCollection::StBTofHitCollection() {/* nope */} 00022 StBTofHitCollection::~StBTofHitCollection(){/* nope */} 00023 00024 void StBTofHitCollection::clear() {mHitVector.clear(); } 00025 00026 bool StBTofHitCollection::push_back(StBTofHit* hit){ 00027 mHitVector.push_back(hit); 00028 return true; 00029 } 00030 00031 StBTofHit* StBTofHitCollection::front() const { 00032 return mHitVector.front(); 00033 } 00034 00035 StBTofHit* StBTofHitCollection::getHit(size_t index) const { 00036 return mHitVector[index]; 00037 } 00038 00039 StBTofHit* StBTofHitCollection::back() const { 00040 return mHitVector.back(); 00041 } 00042 00043 size_t StBTofHitCollection::size() const { 00044 return mHitVector.size(); 00045 }
1.5.9