40 #ifndef StTpcHitCollection_hh
41 #define StTpcHitCollection_hh
46 #include "StTpcSectorHitCollection.h"
56 unsigned int numberOfHits()
const;
57 unsigned int numberOfSectors()
const {
return mNumberOfSectors; }
58 unsigned int numberOfPadrows(
int sectorId)
const {
return sector(sectorId) ? sector(sectorId)->numberOfPadrows() : 0; }
63 const StSPtrVecTpcHit* hits(
int sectorId,
int padrowId)
const;
66 class StTpcHitIter :
public std::iterator<std::input_iterator_tag, StTpcHit*>
81 std::size_t iSector = 0;
82 std::size_t iPadrow = 0;
86 StTpcHitIter begin() {
return StTpcHitIter::begin(*
this); }
90 enum { mNumberOfSectors = 24 };
An iterator over StTpcHits in a StTpcHitCollection.