35 #include "StMcSsdHitCollection.hh"
36 #include "StMcSsdHit.hh"
38 static const char rcsid[] =
"$Id: StMcSsdHitCollection.cc,v 2.3 2005/11/22 21:44:52 fisyak Exp $";
44 StMcSsdHitCollection::~StMcSsdHitCollection() { }
51 (p = hit->ladder()-1) < mNumberOfLadders &&
52 (w = hit->wafer()-1) < ladder(p)->numberOfWafers()) {
53 ladder(p)->wafer(w)->hits().push_back(hit);
61 StMcSsdHitCollection::numberOfLadders()
const {
return mNumberOfLadders; }
64 StMcSsdHitCollection::numberOfHits()
const
66 unsigned long sum = 0;
67 for (
int i=0; i<mNumberOfLadders; i++)
68 sum += mLadders[i].numberOfHits();
74 StMcSsdHitCollection::ladder(
unsigned int i)
76 if (i < mNumberOfLadders)
77 return &(mLadders[i]);
83 StMcSsdHitCollection::ladder(
unsigned int i)
const
85 if (i < mNumberOfLadders)
86 return &(mLadders[i]);