26 #include "StFtpcHitCollection.h"
27 #include "StFtpcSectorHitCollection.h"
28 #include "StFtpcHit.h"
30 static const char rcsid[] =
"$Id: StFtpcHitCollection.cxx,v 2.4 2001/04/05 04:00:50 ullrich Exp $";
36 StFtpcHitCollection::~StFtpcHitCollection() { }
43 (p = hit->plane()-1) < mNumberOfPlanes &&
44 (s = hit->sector()-1) < mPlanes[p].numberOfSectors()) {
45 mPlanes[p].sector(s)->hits().push_back(hit);
53 StFtpcHitCollection::numberOfPlanes()
const {
return mNumberOfPlanes; }
56 StFtpcHitCollection::numberOfHits()
const
59 for (
unsigned int i=0; i<mNumberOfPlanes; i++) {
60 for (
unsigned int j=0; j<mPlanes[i].numberOfSectors(); j++) {
61 sum += mPlanes[i].sector(j)->hits().size();
68 StFtpcHitCollection::plane(
unsigned int i)
70 if (i < mNumberOfPlanes)
77 StFtpcHitCollection::plane(
unsigned int i)
const
79 if (i < mNumberOfPlanes)