4 #include "HitContainer.h"
6 // assume each hit vector contains at least one hit
8 template<class HitType>
11 HitWrapper(int nThreads, HitContainer<HitType> **hitvs) {
12 this->nThreads = nThreads;
17 HitType* getNextHit() {
20 if (i >= nThreads) return NULL;
21 res = &(hitvs[i]->getHitAt(j));
23 if (j >= hitvs[i]->getNHits()) { ++i; j = 0; }
31 HitContainer<HitType> **hitvs;
34 #endif /* HITWRAPPER_H_ */