32 #ifndef STROOT_STFMSPOINTMAKER_STFMSTOWERCLUSTER_H_
33 #define STROOT_STFMSPOINTMAKER_STFMSTOWERCLUSTER_H_
45 namespace FMSCluster {
60 typedef std::list<StFmsTower*>
Towers;
61 typedef std::vector<StFmsFittedPhoton> Photons;
75 void Clear(
const char* optionNotUsed =
"");
98 double etot()
const {
return mEtot; }
109 Double_t chiSquare1()
const {
return mChiSquare1; }
110 Double_t chiSquare2()
const {
return mChiSquare2; }
113 void setChiSquare1(Double_t chi2) {
mChiSquare1 = chi2; }
114 void setChiSquare2(Double_t chi2) {
mChiSquare2 = chi2; }
137 Double_t
getSigma(Double_t theta, Double_t xwidth, Double_t ywidth);
151 #ifndef __CINT__ // CINT won't parse unique_ptr so hide it
178 #endif // STROOT_STFMSPOINTMAKER_STFMSTOWERCLUSTER_H_
Double_t mSigmaY
2nd moment in y
void setChiSquare(Double_t chi2)
Double_t mThetaAxis
of least-2nd-sigma axis
Towers mTowers
Towers that make the cluster.
Double_t mSigmaX
2nd moment in x
Double_t getSigma(Double_t theta, Double_t xwidth, Double_t ywidth)
void setIndex(Int_t index)
Double_t mChiSquare2
Chi-square of the fitting 2 photon.
std::list< StFmsTower * > Towers
Shorthand for tower collection.
void findClusterAxis(Double_t Ecoff, Double_t xwidth, Double_t ywidth)
virtual ~StFmsTowerCluster()
Double_t chiSquare() const
const Towers & towers() const
void calculateClusterMoments(Double_t energyCutoff)
std::unique_ptr< StFmsCluster > mCluster
Pointer to StEvent cluster.
Int_t mIndex
cluster number in an event, counts from 0
Double_t thetaAxis() const
const Photons & photons() const
StFmsTowerCluster(StFmsCluster *cluster, Int_t detectorId)
double energyCutoff() const
const StFmsCluster * cluster() const
Double_t mChiSquare1
Chi-square of the fitting 1 photon.
Photons mPhotons
Photons in cluster.
Double_t mChiSquare
Chi-square of the fitting.
Declaration of StFmsFittedPhoton, a photon fitted to an FMS cluster.
Double_t mEnergyCutoff
Cutoff on towers to use in moment calculations.
Double_t mSigmaXY
2nd moment in x-y