4 #ifndef GloriaClusterStatistics_h
5 #define GloriaClusterStatistics_h 1
51 void AddPixel(
int ix,
int iy,
double signal);
61 inline double GetXpos(){
return _sumX/_signal + _seedX; };
64 inline double GetYpos(){
return _sumY/_signal + _seedY; };
93 void CalculateAverages();
100 double _seedX, _seedY;
106 double _sumX, _sumY, _sumXX, _sumYY, _sumXY;
112 double _cogX, _cogY, _rmsX2, _rmsY2, _rmsX, _rmsY, _corrXY;
namespace for data storing and exchange formats
Definition: GloriaAstrometry.h:15
int GetNpixel()
Get cluster multiplicity (number of pixels)
Definition: GloriaClusterStatistics.h:55
~GloriaClusterStatistics()
Destructor.
Definition: GloriaClusterStatistics.cc:30
Class for calculating basic properties of pixel cluster.
Definition: GloriaClusterStatistics.h:28
void AddPixel(int ix, int iy, double signal)
Add pixel to the cluster.
Definition: GloriaClusterStatistics.cc:56
GloriaClusterStatistics()
Dummy constructor - creates empty cluster.
Definition: GloriaClusterStatistics.cc:22
double GetXspread()
Get cluster spread (RMS) in X.
Definition: GloriaClusterStatistics.cc:126
double GetYspread()
Get cluster spread (RMS) in Y.
Definition: GloriaClusterStatistics.cc:134
double GetWidth()
Get cluster width (length of secondary axis)
Definition: GloriaClusterStatistics.cc:212
double GetYpos()
Get cluster position (CoG) in Y.
Definition: GloriaClusterStatistics.h:64
double GetFWHM()
Get effective cluster width.
Definition: GloriaClusterStatistics.cc:151
double GetXYcorr()
Get X-Y correlation for the cluster.
Definition: GloriaClusterStatistics.cc:143
double GetXpos()
Get cluster position (CoG) in X.
Definition: GloriaClusterStatistics.h:61
double GetElongation()
Get cluster elongation.
Definition: GloriaClusterStatistics.cc:164
double GetLength()
Get cluster length (length of primary axis)
Definition: GloriaClusterStatistics.cc:193
double GetSignal()
Get cluster signal (sum of pixel signals)
Definition: GloriaClusterStatistics.h:58
double GetOrientation()
Get cluster orientation (direction of primary axis)
Definition: GloriaClusterStatistics.cc:183
void Clear()
Clear cluster statistics.
Definition: GloriaClusterStatistics.cc:37