23 #include "StMcFgtLayerHitCollection.hh"
24 #include "StMcFgtHit.hh"
25 static const char rcsid[] =
"$Id: StMcFgtLayerHitCollection.cc,v 2.2 2012/03/01 16:48:29 perev Exp $";
33 StMcFgtLayerHitCollection::~StMcFgtLayerHitCollection()
40 const StSPtrVecMcFgtHit& StMcFgtLayerHitCollection::hits()
const {
return mHits; }
43 StSPtrVecMcFgtHit& StMcFgtLayerHitCollection::hits() {
return mHits; }
46 unsigned long StMcFgtLayerHitCollection::numberOfHits()
const
51 void StMcFgtLayerHitCollection::Clear(
const char*)
53 for (
int i=0; i<(int)mHits.size(); i++)
55 delete mHits[i]; mHits[i] = 0;
60 void StMcFgtLayerHitCollection::Browse(TBrowser *b)
63 for (
int i=0; i<(int)mHits.size(); i++) {
64 TObject *obj = mHits[i];
if (!obj)
continue;
65 TString ts(obj->GetName()); ts+=
"#"; ts+=i;
66 b->Add(obj,ts.Data());