00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #include "StBTofCollection.h"
00023
00024 static const char rcsid[] = "$Id: StBTofCollection.cxx,v 2.1 2008/12/22 20:30:53 ullrich Exp $";
00025
00026 ClassImp(StBTofCollection)
00027
00028 StBTofCollection::StBTofCollection()
00029 {
00030 mBTofHeader = 0;
00031 }
00032
00033 StBTofCollection::~StBTofCollection()
00034 {
00035 if(mBTofHeader) delete mBTofHeader;
00036 }
00037
00038 StBTofHeader*
00039 StBTofCollection::tofHeader() { return mBTofHeader; }
00040
00041 const StBTofHeader*
00042 StBTofCollection::tofHeader() const { return mBTofHeader; }
00043
00044 const StSPtrVecBTofHit&
00045 StBTofCollection::tofHits() const { return mBTofHits; }
00046
00047 StSPtrVecBTofHit&
00048 StBTofCollection::tofHits() { return mBTofHits; }
00049
00050 const StSPtrVecBTofRawHit&
00051 StBTofCollection::tofRawHits() const { return mBTofRawHits; }
00052
00053 StSPtrVecBTofRawHit&
00054 StBTofCollection::tofRawHits() { return mBTofRawHits; }
00055
00056 void
00057 StBTofCollection::setHeader(StBTofHeader* val) { mBTofHeader = val; }
00058
00059 void
00060 StBTofCollection::addHit(const StBTofHit* aHit)
00061 {
00062 if (aHit) mBTofHits.push_back(aHit);
00063 }
00064
00065 void
00066 StBTofCollection::addRawHit(const StBTofRawHit* aRawHit)
00067 {
00068 if (aRawHit) mBTofRawHits.push_back(aRawHit);
00069 }
00070
00071 bool
00072 StBTofCollection::hitsPresent() const { return mBTofHits.size(); }
00073
00074 bool
00075 StBTofCollection::rawHitsPresent() const { return mBTofRawHits.size(); }