6 #include "StContainers.h"
19 UChar_t plane()
const;
20 UChar_t quadrant()
const;
22 UChar_t orientation()
const;
26 int nNeighbors()
const;
30 UShort_t idTruth()
const {
return mIdTruth; }
31 UShort_t qaTruth()
const {
return mQaTruth; }
33 void setId(
int cluid);
34 void setPlane(UChar_t plane);
35 void setQuadrant(UChar_t quad);
36 void setRow(UChar_t row);
37 void setOrientation( UChar_t );
38 void setNStrips(
int numStrips);
39 void setSumAdc(
int theSumAdc);
41 void setSigma(
float sigma);
42 void setIdTruth(UShort_t
id) { mIdTruth = id; }
43 void setQaTruth(UShort_t qa) { mQaTruth = qa; }
45 StPtrVecFttRawHit& rawHits();
46 const StPtrVecFttRawHit& rawHits()
const;
49 StPtrVecFttCluster& neighbor();
50 const StPtrVecFttCluster& neighbor()
const;
51 StPtrVecFttPoint& points();
52 const StPtrVecFttPoint& points()
const;
61 UChar_t mOrientation = kFttUnknownOrientation;
66 StPtrVecFttRawHit mRawHits;
67 StPtrVecFttCluster mNeighbors;
68 StPtrVecFttPoint mPoints;
75 std::ostream& operator << ( std::ostream&,
const StFttCluster& clu );
78 inline int StFttCluster::id()
const {
return mId; }
79 inline UChar_t StFttCluster::plane()
const {
return mPlane; }
80 inline UChar_t StFttCluster::quadrant()
const {
return mQuadrant; }
81 inline UChar_t StFttCluster::row()
const {
return mRow; }
82 inline UChar_t StFttCluster::orientation()
const {
return mOrientation; }
83 inline int StFttCluster::nStrips()
const {
return mNStrips; }
84 inline int StFttCluster::nRawHits()
const {
return mRawHits.size(); }
85 inline int StFttCluster::nNeighbors()
const {
return mNeighbors.size(); }
86 inline int StFttCluster::nPoints()
const {
return mPoints.size(); }
87 inline float StFttCluster::sumAdc()
const {
return mSumAdc; }
88 inline float StFttCluster::x()
const {
return mX; }
89 inline float StFttCluster::sigma()
const {
return mSigma; }
91 inline void StFttCluster::setPlane(UChar_t plane) { mPlane = plane; }
92 inline void StFttCluster::setQuadrant(UChar_t quadrant) { mQuadrant = quadrant; }
93 inline void StFttCluster::setRow(UChar_t row) { mRow = row; }
94 inline void StFttCluster::setOrientation( UChar_t so ) { mOrientation = so; }
95 inline void StFttCluster::setNStrips(
int numStrips) { mNStrips = numStrips; }
96 inline void StFttCluster::setSumAdc(
int theSumAdc) { mSumAdc = theSumAdc; }
97 inline void StFttCluster::setX(
float x0) { mX = x0; }
98 inline void StFttCluster::setSigma(
float sigma) { mSigma = sigma; }
100 inline void StFttCluster::setId(
int cluid) { mId = cluid; }
102 inline StPtrVecFttRawHit& StFttCluster::rawHits() {
return mRawHits; }
103 inline const StPtrVecFttRawHit& StFttCluster::rawHits()
const {
return mRawHits; }
104 inline StPtrVecFttCluster& StFttCluster::neighbor() {
return mNeighbors; }
105 inline const StPtrVecFttCluster& StFttCluster::neighbor()
const {
return mNeighbors; }
106 inline StPtrVecFttPoint& StFttCluster::points() {
return mPoints; }
107 inline const StPtrVecFttPoint& StFttCluster::points()
const {
return mPoints; }
109 #endif // STFTTCLUSTER_H