17 #include "StSstHitCollection.h"
18 #include "StSstLadderHitCollection.h"
21 static const char rcsid[] =
"$Id: StSstHitCollection.cxx,v 2.1 2015/05/13 16:50:59 ullrich Exp $";
27 StSstHitCollection::~StSstHitCollection() { }
30 StSstHitCollection::numberOfLadders()
const {
return mNumberOfLadders; }
37 (l = hit->ladder()-1) < mNumberOfLadders &&
38 (w = hit->wafer()-1) < mLadders[l].numberOfWafers()) {
39 mLadders[l].wafer(w)->hits().push_back(hit);
48 StSstHitCollection::numberOfHits()
const
51 for (
int i=0; i<mNumberOfLadders; i++)
52 for (
unsigned int j=0; j<mLadders[i].numberOfWafers(); j++)
53 sum += mLadders[i].wafer(j)->hits().size();
58 StSstHitCollection::ladder(
unsigned int i)
60 if (i < mNumberOfLadders)
61 return &(mLadders[i]);
67 StSstHitCollection::ladder(
unsigned int i)
const
69 if (i < mNumberOfLadders)
70 return &(mLadders[i]);