17 #include "StPxlHitCollection.h"
18 #include "StPxlSectorHitCollection.h"
19 #include "StPxlLadderHitCollection.h"
20 #include "StPxlSensorHitCollection.h"
27 StPxlHitCollection::~StPxlHitCollection() { }
34 (s = hit->sector()-1) < mNumberOfSectors &&
35 (l = hit->ladder()-1) < mSectors[s].numberOfLadders() &&
36 (w = hit->sensor()-1) < mSectors[s].ladder(l)->numberOfSensors()) {
37 mSectors[s].ladder(l)->sensor(w)->hits().push_back(hit);
45 StPxlHitCollection::numberOfHits()
const
48 for (
int i=0; i<mNumberOfSectors; i++) {
49 for (
unsigned int j=0; j<mSectors[i].numberOfLadders(); j++) {
50 for (
unsigned int k=0; k<mSectors[i].ladder(j)->numberOfSensors(); k++) {
51 sum += mSectors[i].ladder(j)->sensor(k)->hits().size();
59 StPxlHitCollection::sector(
unsigned int i)
61 return (i < mNumberOfSectors) ? &(mSectors[i]) : 0;
65 StPxlHitCollection::sector(
unsigned int i)
const
67 return (i < mNumberOfSectors) ? &(mSectors[i]) : 0;