18 #ifndef STROOT_STMUDSTMAKER_COMMON_STMUFMSCLUSTER_H_
19 #define STROOT_STMUDSTMAKER_COMMON_STMUFMSCLUSTER_H_
22 #include <TRefArray.h>
37 StMuFmsCluster(
int detectorId = 0,
int category = -1,
float energy = 0.f,
38 float x = 0.f,
float y = 0.f,
float smin=0.f,
float smax=0.f,
39 float chi1=0.f,
float chi2=0.f,
int id=0);
42 virtual void Clear(Option_t* option =
"");
44 unsigned short detectorId()
const;
45 unsigned short category()
const;
49 float sigmaMin()
const;
50 float sigmaMax()
const;
51 float chi2Ndf1Photon()
const;
52 float chi2Ndf2Photon()
const;
55 const TRefArray* hits()
const;
57 const TRefArray* photons()
const;
58 void setDetectorId(
unsigned short detector);
59 void setCategory(
unsigned short category);
60 void setEnergy(
float energy);
63 void setSigmaMin(
float sigmaMin);
64 void setSigmaMax(
float sigmaMax);
65 void setChi2Ndf1Photon(
float chi2ndfph1);
66 void setChi2Ndf2Photon(
float chi2ndfph2);
67 void setId(
float cluid);
77 Float_t mChi2Ndf1Photon;
78 Float_t mChi2Ndf2Photon;
99 inline unsigned short StMuFmsCluster::detectorId()
const {
return mDetectorId; }
100 inline unsigned short StMuFmsCluster::category()
const {
return mCategory; }
101 inline float StMuFmsCluster::energy()
const {
return mEnergy; }
102 inline float StMuFmsCluster::x()
const {
return mX; }
103 inline float StMuFmsCluster::y()
const {
return mY; }
104 inline float StMuFmsCluster::sigmaMin()
const {
return mSigmaMin; }
105 inline float StMuFmsCluster::sigmaMax()
const {
return mSigmaMax; }
106 inline float StMuFmsCluster::chi2Ndf1Photon()
const {
return mChi2Ndf1Photon; }
107 inline float StMuFmsCluster::chi2Ndf2Photon()
const {
return mChi2Ndf2Photon; }
108 inline int StMuFmsCluster::id()
const {
return mId; }
110 inline TRefArray* StMuFmsCluster::hits() {
return &
mHits; }
111 inline const TRefArray* StMuFmsCluster::hits()
const {
return &
mHits; }
112 inline TRefArray* StMuFmsCluster::photons() {
return &
mPhotons; }
113 inline const TRefArray* StMuFmsCluster::photons()
const {
return &
mPhotons; }
114 inline void StMuFmsCluster::setDetectorId(
unsigned short detector) {
mDetectorId = detector; }
115 inline void StMuFmsCluster::setCategory(
unsigned short category) {
mCategory = category; }
116 inline void StMuFmsCluster::setEnergy(
float energy) {
mEnergy = energy; }
117 inline void StMuFmsCluster::setX(
float x) {
mX = x; }
118 inline void StMuFmsCluster::setY(
float y) {
mY = y; }
119 inline void StMuFmsCluster::setSigmaMin(
float sigmaMin) { mSigmaMin = sigmaMin; }
120 inline void StMuFmsCluster::setSigmaMax(
float sigmaMax) { mSigmaMax = sigmaMax; }
121 inline void StMuFmsCluster::setChi2Ndf1Photon(
float chi2ndfph1) { mChi2Ndf1Photon = chi2ndfph1; }
122 inline void StMuFmsCluster::setChi2Ndf2Photon(
float chi2ndfph2) { mChi2Ndf2Photon = chi2ndfph2; }
123 inline void StMuFmsCluster::setId(
float cluid) { mId = cluid; }
125 #endif // STROOT_STMUDSTMAKER_COMMON_STMUFMSCLUSTER_H_
Float_t mEnergy
Total energy contained in the cluster.
Float_t mX
Mean x ("center of gravity")
TRefArray mHits
StMuFmsHits in the current cluster.
UShort_t mDetectorId
Detector ID as defined in database.
Float_t mY
Mean y ("center of gravity")
UShort_t mCategory
Category of cluster (see EFmsClusterCategory)
TRefArray mPhotons
StMuFmsPoints in the cluster.