38 #include "StMcSvtWaferHitCollection.hh"
39 #include "StMcSvtHit.hh"
41 static const char rcsid[] =
"$Id: StMcSvtWaferHitCollection.cc,v 2.5 2012/03/01 16:48:29 perev Exp $";
44 StMcSvtWaferHitCollection::StMcSvtWaferHitCollection() { }
47 StMcSvtWaferHitCollection::~StMcSvtWaferHitCollection()
54 const StSPtrVecMcSvtHit& StMcSvtWaferHitCollection::hits()
const {
return mHits; }
57 StSPtrVecMcSvtHit& StMcSvtWaferHitCollection::hits() {
return mHits; }
59 void StMcSvtWaferHitCollection::Clear(
const char*)
61 for (
int i=0; i<(int)mHits.size(); i++)
63 delete mHits[i]; mHits[i] = 0;
68 void StMcSvtWaferHitCollection::Browse(TBrowser *b)
71 for (
int i=0; i<(int)mHits.size(); i++) {
72 TObject *obj = mHits[i];
if (!obj)
continue;
73 TString ts(obj->GetName()); ts+=
"#"; ts+=i;
74 b->Add(obj,ts.Data());