25 #include "StMcFtpcPlaneHitCollection.hh"
26 #include "StMcFtpcHit.hh"
27 static const char rcsid[] =
"$Id: StMcFtpcPlaneHitCollection.cc,v 2.2 2012/03/01 16:48:29 perev Exp $";
33 StMcFtpcPlaneHitCollection::~StMcFtpcPlaneHitCollection(){ Clear(); }
35 void StMcFtpcPlaneHitCollection::Clear(
const char*)
37 for (
int i=0; i<(int)mHits.size(); i++)
39 delete mHits[i]; mHits[i] = 0;
44 void StMcFtpcPlaneHitCollection::Browse(TBrowser *b)
47 for (
int i=0; i<(int)mHits.size(); i++) {
48 TObject *obj = mHits[i];
if (!obj)
continue;
49 TString ts(obj->GetName()); ts+=
"#"; ts+=i;
50 b->Add(obj,ts.Data());
56 const StSPtrVecMcFtpcHit& StMcFtpcPlaneHitCollection::hits()
const {
return mHits; }
59 StSPtrVecMcFtpcHit& StMcFtpcPlaneHitCollection::hits() {
return mHits; }
62 unsigned long StMcFtpcPlaneHitCollection::numberOfHits()
const