25 #include "StMtdCollection.h"
27 static const char rcsid[] =
"$Id: StMtdCollection.cxx,v 2.2 2012/02/28 01:25:32 perev Exp $";
36 StMtdCollection::~StMtdCollection()
38 if(mMtdHeader)
delete mMtdHeader;
42 StMtdCollection::mtdHeader() {
return mMtdHeader; }
45 StMtdCollection::mtdHeader()
const {
return mMtdHeader; }
47 const StSPtrVecMtdHit&
48 StMtdCollection::mtdHits()
const {
return mMtdHits; }
51 StMtdCollection::mtdHits() {
return mMtdHits; }
53 const StSPtrVecMtdRawHit&
54 StMtdCollection::mtdRawHits()
const {
return mMtdRawHits; }
57 StMtdCollection::mtdRawHits() {
return mMtdRawHits; }
60 StMtdCollection::setHeader(
StMtdHeader* val) { mMtdHeader = val; }
63 StMtdCollection::addHit(
const StMtdHit* aHit)
65 if (aHit) mMtdHits.push_back(aHit);
69 StMtdCollection::addRawHit(
const StMtdRawHit* aRawHit)
71 if (aRawHit) mMtdRawHits.push_back(aRawHit);
75 StMtdCollection::hitsPresent()
const {
return mMtdHits.size(); }
78 StMtdCollection::rawHitsPresent()
const {
return mMtdRawHits.size(); }
80 void StMtdCollection::Browse(TBrowser *b)
83 mMtdRawHits.Browse(b);