41 #include "StMcSsdWaferHitCollection.hh"
42 #include "StMcSsdHit.hh"
44 static const char rcsid[] =
"$Id: StMcSsdWaferHitCollection.cc,v 2.2 2012/03/01 16:48:29 perev Exp $";
47 StMcSsdWaferHitCollection::StMcSsdWaferHitCollection() { }
50 StMcSsdWaferHitCollection::~StMcSsdWaferHitCollection()
57 const StSPtrVecMcSsdHit& StMcSsdWaferHitCollection::hits()
const {
return mHits; }
60 StSPtrVecMcSsdHit& StMcSsdWaferHitCollection::hits() {
return mHits; }
62 void StMcSsdWaferHitCollection::Clear(
const char*)
64 for (
int i=0; i<(int)mHits.size(); i++)
66 delete mHits[i]; mHits[i] = 0;
71 void StMcSsdWaferHitCollection::Browse(TBrowser *b)
74 for (
int i=0; i<(int)mHits.size(); i++) {
75 TObject *obj = mHits[i];
if (!obj)
continue;
76 TString ts(obj->GetName()); ts+=
"#"; ts+=i;
77 b->Add(obj,ts.Data());