22 #include "StBTofCollection.h"
24 static const char rcsid[] =
"$Id: StBTofCollection.cxx,v 2.1 2008/12/22 20:30:53 ullrich Exp $";
33 StBTofCollection::~StBTofCollection()
35 if(mBTofHeader)
delete mBTofHeader;
39 StBTofCollection::tofHeader() {
return mBTofHeader; }
42 StBTofCollection::tofHeader()
const {
return mBTofHeader; }
44 const StSPtrVecBTofHit&
45 StBTofCollection::tofHits()
const {
return mBTofHits; }
48 StBTofCollection::tofHits() {
return mBTofHits; }
50 const StSPtrVecBTofRawHit&
51 StBTofCollection::tofRawHits()
const {
return mBTofRawHits; }
54 StBTofCollection::tofRawHits() {
return mBTofRawHits; }
57 StBTofCollection::setHeader(
StBTofHeader* val) { mBTofHeader = val; }
60 StBTofCollection::addHit(
const StBTofHit* aHit)
62 if (aHit) mBTofHits.push_back(aHit);
68 if (aRawHit) mBTofRawHits.push_back(aRawHit);
72 StBTofCollection::hitsPresent()
const {
return mBTofHits.size(); }
75 StBTofCollection::rawHitsPresent()
const {
return mBTofRawHits.size(); }