18 #ifndef STFCSCLUSTER_H
19 #define STFCSCLUSTER_H
21 #include "StLorentzVectorD.hh"
25 #include "StEvent/StContainers.h"
37 unsigned short detectorId()
const;
40 int nNeighbor()
const;
45 float sigmaMax()
const;
46 float sigmaMin()
const;
48 float chi2Ndf1Photon()
const;
49 float chi2Ndf2Photon()
const;
52 void setId(
int cluid);
53 void setDetectorId(
unsigned short detector);
54 void setCategory(
int catag);
55 void setNTowers(
int numbTower);
56 void setEnergy(
float energy);
59 void setSigmaMin(
float sigmaMax);
60 void setSigmaMax(
float sigmaMax);
61 void setTheta(
float theta);
62 void setChi2Ndf1Photon(
float chi2ndfph1);
63 void setChi2Ndf2Photon(
float chi2ndfph2);
66 StPtrVecFcsHit& hits();
67 const StPtrVecFcsHit& hits()
const;
70 StPtrVecFcsCluster& neighbor();
71 const StPtrVecFcsCluster& neighbor()
const;
73 StPtrVecFcsPoint& points();
74 const StPtrVecFcsPoint& points()
const;
78 StPtrVecFwdTrack& tracks();
79 const StPtrVecFwdTrack& tracks()
const;
83 void print(Option_t *option=
"")
const;
87 UShort_t mDetectorId=0;
93 Float_t mSigmaMin=0.0;
94 Float_t mSigmaMax=0.0;
96 Float_t mChi2Ndf1Photon=0.0;
97 Float_t mChi2Ndf2Photon=0.0;
100 StPtrVecFcsCluster mNeighbor;
101 StPtrVecFcsPoint mPoints;
102 StPtrVecFwdTrack mTracks;
108 inline int StFcsCluster::id()
const {
return mId; }
109 inline unsigned short StFcsCluster::detectorId()
const {
return mDetectorId; }
110 inline int StFcsCluster::category()
const {
return mCategory; }
111 inline int StFcsCluster::nTowers()
const {
return mNTowers; }
112 inline int StFcsCluster::nNeighbor()
const {
return mNeighbor.size(); }
113 inline int StFcsCluster::nPoints()
const {
return mPoints.size(); }
114 inline float StFcsCluster::energy()
const {
return mEnergy; }
115 inline float StFcsCluster::x()
const {
return mX; }
116 inline float StFcsCluster::y()
const {
return mY; }
117 inline float StFcsCluster::sigmaMax()
const {
return mSigmaMax; }
118 inline float StFcsCluster::sigmaMin()
const {
return mSigmaMin; }
119 inline float StFcsCluster::theta()
const {
return mTheta; }
120 inline float StFcsCluster::chi2Ndf1Photon()
const {
return mChi2Ndf1Photon; }
121 inline float StFcsCluster::chi2Ndf2Photon()
const {
return mChi2Ndf2Photon; }
122 inline const StLorentzVectorD& StFcsCluster::fourMomentum()
const {
return mFourMomentum; }
123 inline void StFcsCluster::setDetectorId(
unsigned short detector) { mDetectorId = detector; }
124 inline void StFcsCluster::setCategory(
int catag) { mCategory = catag; }
125 inline void StFcsCluster::setNTowers(
int numbTower) { mNTowers = numbTower; }
126 inline void StFcsCluster::setEnergy(
float energy) { mEnergy = energy; }
127 inline void StFcsCluster::setX(
float x0) { mX = x0; }
128 inline void StFcsCluster::setY(
float y0) { mY = y0; }
129 inline void StFcsCluster::setSigmaMin(
float sigmaMax) { mSigmaMin = sigmaMax; }
130 inline void StFcsCluster::setSigmaMax(
float sigmaMax) { mSigmaMax = sigmaMax; }
131 inline void StFcsCluster::setTheta(
float theta) { mTheta = theta; }
132 inline void StFcsCluster::setChi2Ndf1Photon(
float chi2ndfph1) { mChi2Ndf1Photon = chi2ndfph1; }
133 inline void StFcsCluster::setChi2Ndf2Photon(
float chi2ndfph2) { mChi2Ndf2Photon = chi2ndfph2; }
134 inline void StFcsCluster::setId(
int cluid) { mId = cluid; }
135 inline void StFcsCluster::setFourMomentum(
StLorentzVectorD p4) { mFourMomentum = p4; }
136 inline StPtrVecFcsHit& StFcsCluster::hits() {
return mHits; }
137 inline const StPtrVecFcsHit& StFcsCluster::hits()
const {
return mHits; }
138 inline StPtrVecFcsCluster& StFcsCluster::neighbor() {
return mNeighbor; }
139 inline const StPtrVecFcsCluster& StFcsCluster::neighbor()
const {
return mNeighbor; }
140 inline StPtrVecFcsPoint& StFcsCluster::points() {
return mPoints; }
141 inline const StPtrVecFcsPoint& StFcsCluster::points()
const {
return mPoints; }
142 inline StPtrVecFwdTrack& StFcsCluster::tracks() {
return mTracks; }
143 inline const StPtrVecFwdTrack& StFcsCluster::tracks()
const {
return mTracks; }
145 #endif // STFCSCLUSTER_H