19 #include "StRpsTrackPoint.h"
26 for (
unsigned int i=0; i<mNumberOfPlanesInRp; ++i) mClusterId[i] = -1;
27 for (
unsigned int i=0; i<mNumberOfPmtsInRp; ++i) mTime[i] = -1;
31 StRpsTrackPoint::StRpsTrackPoint(
const StRpsTrackPoint& trackPoint)
36 StRpsTrackPoint::~StRpsTrackPoint() { }
38 StRpsTrackPoint& StRpsTrackPoint::operator=(
const StRpsTrackPoint& trackPoint)
40 if (
this != &trackPoint) {
41 mPosition = trackPoint.positionVec();
42 mRpId = trackPoint.rpId();
43 for (
unsigned int i=0; i<mNumberOfPlanesInRp; ++i ) mClusterId[i] = trackPoint.clusterId(i);
44 for (
unsigned int i=0; i<mNumberOfPmtsInRp; ++i ) mTime[i] = trackPoint.time(i);
45 mQuality = trackPoint.quality();
50 unsigned int StRpsTrackPoint::planesUsed()
const
52 unsigned int nPlanesUsed = 0;
53 for(
unsigned int i=0; i<mNumberOfPlanesInRp; ++i)
54 if (mClusterId[i]>-1) ++nPlanesUsed;