28 #include "StMcTpcPadrowHitCollection.hh"
29 #include "StMcTpcHit.hh"
31 static const char rcsid[] =
"$Id: StMcTpcPadrowHitCollection.cc,v 2.3 2012/03/01 16:48:30 perev Exp $";
39 StMcTpcPadrowHitCollection::~StMcTpcPadrowHitCollection()
45 const StSPtrVecMcTpcHit&
46 StMcTpcPadrowHitCollection::hits()
const {
return mHits; }
50 StMcTpcPadrowHitCollection::hits() {
return mHits; }
52 void StMcTpcPadrowHitCollection::Clear(
const char*)
54 for (
int i=0; i<(int)mHits.size(); i++)
56 delete mHits[i]; mHits[i] = 0;
61 void StMcTpcPadrowHitCollection::Browse(TBrowser *b)
64 for (
int i=0; i<(int)mHits.size(); i++) {
65 TObject *obj = mHits[i];
if (!obj)
continue;
66 TString ts(obj->GetName()); ts+=
"#"; ts+=i;
67 b->Add(obj,ts.Data());