1 #include "StMuRpsTrackPoint.h"
2 #include "StEvent/StRpsTrackPoint.h"
8 for (
unsigned int i=0; i<StRpsTrackPoint::mNumberOfPlanesInRp; ++i) mClusterId[i] = -1;
9 for (
unsigned int i=0; i<StRpsTrackPoint::mNumberOfPmtsInRp; ++i) mTime[i] = -1;
10 mQuality = StMuRpsTrackPoint::StMuRpsTrackPointQuality::rpsNotSet;
13 StMuRpsTrackPoint::StMuRpsTrackPoint(
const StMuRpsTrackPoint& trackPoint) {
17 StMuRpsTrackPoint::~StMuRpsTrackPoint() { }
19 StMuRpsTrackPoint& StMuRpsTrackPoint::operator=(
const StMuRpsTrackPoint& trackPoint) {
20 if (
this != &trackPoint) {
21 mPosition = trackPoint.positionVec();
22 mRpId = trackPoint.rpId();
23 for (
unsigned int i=0; i<StRpsTrackPoint::mNumberOfPlanesInRp; ++i ) mClusterId[i] = trackPoint.clusterId(i);
24 for (
unsigned int i=0; i<StRpsTrackPoint::mNumberOfPmtsInRp; ++i ) mTime[i] = trackPoint.time(i);
25 mQuality = (StMuRpsTrackPoint::StMuRpsTrackPointQuality)trackPoint.quality();
30 unsigned int StMuRpsTrackPoint::planesUsed()
const {
31 unsigned int nPlanesUsed = 0;
32 for(
unsigned int i=0; i<StRpsTrackPoint::mNumberOfPlanesInRp; ++i)
33 if (mClusterId[i]>-1) ++nPlanesUsed;