29 #include "StPxlRawHitCollection.h"
30 #include "StPxlUtil/StPxlConstants.h"
45 return mPxlRawHitVec[sector - 1][ladder - 1][sensor - 1].size();
50 return &
mPxlRawHitVec[sector - 1][ladder - 1][sensor - 1][rawHitIndex];
53 Int_t StPxlRawHitCollection::numberOfRawHits()
56 for (
int i = 0; i < kNumberOfPxlSectors; i++) {
57 for (
int j = 0; j < kNumberOfPxlLaddersPerSector; j++) {
58 for (
int k = 0; k < kNumberOfPxlSensorsPerLadder; k++) {
const StPxlRawHit * rawHit(Int_t sector, Int_t ladder, Int_t sensor, Int_t rawHitIndex) const
pionter to a rawHit in the collection
vector< StPxlRawHit > mPxlRawHitVec[kNumberOfPxlSectors][kNumberOfPxlLaddersPerSector][kNumberOfPxlSensorsPerLadder]
vectors to store raw hits
Int_t ladder() const
ladder 1-4
void addRawHit(const StPxlRawHit &rawHit)
add a raw hit to the collection
Int_t sector() const
sector 1-10
Int_t sensor() const
sensor 1-10
Int_t numberOfRawHits(Int_t sector, Int_t ladder, Int_t sensor)
number of raw hits in a sensor