31 #include "StMcIstLayerHitCollection.hh"
32 #include "StMcIstHit.hh"
33 static const char rcsid[] =
"$Id: StMcIstLayerHitCollection.cc,v 2.3 2012/03/01 16:48:29 perev Exp $";
40 StMcIstLayerHitCollection::~StMcIstLayerHitCollection(){ Clear(); }
42 void StMcIstLayerHitCollection::Clear(
const char*)
44 for (
int i=0; i<(int)mHits.size(); i++)
46 delete mHits[i]; mHits[i] = 0;
51 void StMcIstLayerHitCollection::Browse(TBrowser *b)
54 for (
int i=0; i<(int)mHits.size(); i++) {
55 TObject *obj = mHits[i];
if (!obj)
continue;
56 TString ts(obj->GetName()); ts+=
"#"; ts+=i;
57 b->Add(obj,ts.Data());
63 const StSPtrVecMcIstHit& StMcIstLayerHitCollection::hits()
const {
return mHits; }
66 StSPtrVecMcIstHit& StMcIstLayerHitCollection::hits() {
return mHits; }
69 unsigned long StMcIstLayerHitCollection::numberOfHits()
const