22 #include "StMcFgtHitCollection.hh"
23 #include "StMcFgtHit.hh"
25 static const char rcsid[] =
"$Id: StMcFgtHitCollection.cc,v 2.2 2009/10/13 19:14:27 perev Exp $";
31 StMcFgtHitCollection::~StMcFgtHitCollection() { }
37 if (hit && (p = hit->layer()) < mNumberOfLayers) {
38 mLayers[p].hits().push_back(hit);
46 StMcFgtHitCollection::numberOfLayers()
const {
return mNumberOfLayers; }
49 StMcFgtHitCollection::numberOfHits()
const
51 unsigned long sum = 0;
52 for (
int i=0; i<mNumberOfLayers; i++)
53 sum += mLayers[i].numberOfHits();
59 StMcFgtHitCollection::layer(
unsigned int i)
61 if (i < mNumberOfLayers)
68 StMcFgtHitCollection::layer(
unsigned int i)
const
70 if (i < mNumberOfLayers)