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