37 #ifndef STSVTANALYSIS_HH
38 #define STSVTANALYSIS_HH
43 #include "StSvtHybridCluster.hh"
66 double mMeanClusterTimeBin;
67 double mMeanClusterAnode;
68 double mSecondMomClusterTimeBin;
69 double mSecondMomClusterAnode;
83 void setArrays(
int TotalNumberOfHybrids);
85 void calcMoments(
int clu);
86 void oneOrTwoAnodeMoments(
int clu,
int peakPosTim);
87 void finalMoments(
int clu ,
int numAnodes);
88 void newCluster(
int clu,
int numAnodes,
int igt3);
89 void FirstAndLastAnodes();
90 void CluFirstTimeBin();
91 void CluLastTimeBin();
92 void MomentAnalysis();
93 int GetFirstAnode(
int clu);
94 int GetLastAnode(
int clu);
95 int GetFirstTimeBin(
int clu);
96 int GetLastTimeBin(
int clu);
97 int GetCluFlag(
int clu);
98 int GetDeconvFlag(
int clu);
99 int return_oneortwoanode_flag(
int clu);
100 int GetCluPeakAdc(
int clu);
101 int GetCluNumAnodes(
int clu);
102 int GetCluNumPixels(
int clu);
104 int GetCluID(
int clu);
105 int GetCluDeconvID(
int clu);
106 int GetTruth(
int clu);
107 double GetCluCharge(
int clu);
108 double GetMeanClusterAnode(
int clu);
109 double GetMeanClusterTimeBin(
int clu);
110 double GetSecondMomClusterAnode(
int clu);
111 double GetSecondMomClusterTimeBin(
int clu);
112 double GetCluXCov(
int clu);
113 double GetCluYCov(
int clu);
114 void Report(
int index);
116 void SetBadAnTb(
int numClus);
117 void LoadAnodeGains();
119 int Print_Pixels(
int iRows,
int iCols,
int clu);
120 int Fill_Pixel_Array(
int clu);
121 void free_matrix_d (
int**,
int);
122 int **malloc_matrix_d (
int iRows,
int iCols);
123 POINT *Find_Peaks (
int iRows,
int iCols,
int *iNumPeaks);
124 float IsValidPeak (
int iRows,
int iCols,
POINT *Peaks,
int iNumPeaks);
125 int BlockOut (
int x,
int y);
126 int Fit_Peaks(
int iRows,
int iCols,
int iNumPeaks,
POINT *Peaks,
int clu);
127 int CatagorizeCluster(
int iRows,
int iCols,
int igt3,
int clu);
128 int Deconvolve_Cluster(
int iRows,
int iCols,
int clu);
129 void SetHybIndex(
int index);
153 int mNumOfClusters, mNumOfMembers;
154 int mNumPixels, mPeakADC, mSumAdc;
156 double mDriftMom1, mAnodeMom1;
157 double mDriftMom2, mAnodeMom2, mMom0;
158 double mX_err, mY_err;
159 double mAnodeGain[433][241];