33 #include "StPxlClusterCollection.h"
43 mClusterVec[sector - 1][ladder - 1][sensor - 1].push_back(cluster);
48 return mClusterVec[sector - 1][ladder - 1][sensor - 1].size();
53 return &
mClusterVec[sector - 1][ladder - 1][sensor - 1][clusterIndex];
56 Int_t StPxlClusterCollection::numberOfClusters()
const
59 for (
int i = 0; i < kNumberOfPxlSectors; i++) {
60 for (
int j = 0; j < kNumberOfPxlLaddersPerSector; j++) {
61 for (
int k = 0; k < kNumberOfPxlSensorsPerLadder; k++) {
Int_t numberOfClusters(Int_t sector, Int_t ladder, Int_t sensor) const
number of clusters in a sensor
const StPxlCluster * cluster(Int_t sector, Int_t ladder, Int_t sensor, Int_t clusterIndex) const
pointer to a cluster in the collection
void addCluster(Int_t sector, Int_t ladder, Int_t sensor, const StPxlCluster &cluster)
add a cluster to the collection
vector< StPxlCluster > mClusterVec[kNumberOfPxlSectors][kNumberOfPxlLaddersPerSector][kNumberOfPxlSensorsPerLadder]
vectors to store clusters