35 #include "StMcIstHitCollection.hh"
36 #include "StMcIstHit.hh"
38 static const char rcsid[] =
"$Id: StMcIstHitCollection.cc,v 2.4 2015/03/13 18:44:58 perev Exp $";
44 StMcIstHitCollection::~StMcIstHitCollection() { }
50 if (hit && (p = hit->layer()-1) < mNumberOfLayers) {
51 mLayers[p].hits().push_back(hit);
59 StMcIstHitCollection::numberOfLayers()
const {
return mNumberOfLayers; }
62 StMcIstHitCollection::numberOfHits()
const
64 unsigned long sum = 0;
65 for (
int i=0; i<mNumberOfLayers; i++)
66 sum += mLayers[i].numberOfHits();
72 StMcIstHitCollection::layer(
unsigned int i)
74 if (i < mNumberOfLayers)
81 StMcIstHitCollection::layer(
unsigned int i)
const
83 if (i < mNumberOfLayers)