Luiza  v03-01
Public Member Functions | List of all members
gloria::GloriaClusterStatistics Class Reference

Class for calculating basic properties of pixel cluster. More...

#include <GloriaClusterStatistics.h>

Public Member Functions

 GloriaClusterStatistics ()
 Dummy constructor - creates empty cluster.
 
 ~GloriaClusterStatistics ()
 Destructor.
 
void Clear ()
 Clear cluster statistics.
 
void AddPixel (int ix, int iy, double signal)
 Add pixel to the cluster. More...
 
int GetNpixel ()
 Get cluster multiplicity (number of pixels)
 
double GetSignal ()
 Get cluster signal (sum of pixel signals)
 
double GetXpos ()
 Get cluster position (CoG) in X.
 
double GetYpos ()
 Get cluster position (CoG) in Y.
 
double GetXspread ()
 Get cluster spread (RMS) in X.
 
double GetYspread ()
 Get cluster spread (RMS) in Y.
 
double GetXYcorr ()
 Get X-Y correlation for the cluster.
 
double GetFWHM ()
 Get effective cluster width.
 
double GetElongation ()
 Get cluster elongation.
 
double GetOrientation ()
 Get cluster orientation (direction of primary axis)
 
double GetLength ()
 Get cluster length (length of primary axis)
 
double GetWidth ()
 Get cluster width (length of secondary axis)
 

Detailed Description

Class for calculating basic properties of pixel cluster.

This class can be use to calculate properties of the pixel cluster as signal (sum of pixel values), position (from Center of Gravity - CoG), spread in X, Y and X-Y correlation of charge distribution, and finally effective width (FWHM), elongation (elliptisity) as well as orientation of the primary axis.

Author
A.F.Zarnecki, University of Warsaw, zarne.nosp@m.cki@.nosp@m.fuw.e.nosp@m.du.p.nosp@m.l

Member Function Documentation

void gloria::GloriaClusterStatistics::AddPixel ( int  ix,
int  iy,
double  signal 
)

Add pixel to the cluster.

Pixels are not stored inside ClusterStatitics. Coordinates of the first pixel added (most probably the seed pixel) are remembered as the offset for shape calculation (for numerical stability). Otherwise, coordinates weighted by signal are added to different counters: weighted sums of x, y, x^2, y^2 and xy. These sums can be then used to calculate statistical parameters of the charge distribution.

Referenced by luiza::CalculateGausPSF::processData(), luiza::ApplyGausKernel::processData(), luiza::PixelClusterFinder::processData(), and luiza::WeightedAperturePhotometry::processData().


The documentation for this class was generated from the following files: