20 #include "StSsdHitCollection.h"
21 #include "StSsdLadderHitCollection.h"
24 static const char rcsid[] =
"$Id: StSsdHitCollection.cxx,v 2.2 2001/04/05 04:00:54 ullrich Exp $";
30 StSsdHitCollection::~StSsdHitCollection() { }
33 StSsdHitCollection::numberOfLadders()
const {
return mNumberOfLadders; }
40 (l = hit->ladder()-1) < mNumberOfLadders &&
41 (w = hit->wafer()-1) < mLadders[l].numberOfWafers()) {
42 mLadders[l].wafer(w)->hits().push_back(hit);
51 StSsdHitCollection::numberOfHits()
const
54 for (
int i=0; i<mNumberOfLadders; i++)
55 for (
unsigned int j=0; j<mLadders[i].numberOfWafers(); j++)
56 sum += mLadders[i].wafer(j)->hits().size();
61 StSsdHitCollection::ladder(
unsigned int i)
63 if (i < mNumberOfLadders)
64 return &(mLadders[i]);
70 StSsdHitCollection::ladder(
unsigned int i)
const
72 if (i < mNumberOfLadders)
73 return &(mLadders[i]);