/* $Id$ */
+// Class AliMUONPixel
+// -------------------------------------
+// Basic object of the cluster / rec. point finder based
+// on Expectation-Minimization approach (AZ cluster finder)
+//
+// Author: Alexander Zinchenko, JINR Dubna
+
#include "AliMUONPixel.h"
ClassImp(AliMUONPixel) // Class implementation in ROOT context
AliMUONPixel::AliMUONPixel()
: TObject()
{
-// Default constructor
+ // Default constructor
+ fXY[0] = fXY[1] = fSize[0] = fSize[1] = fCharge = 0;
+ fFlag = 0;
}
//_____________________________________________________________________________
{
// Constructor
fXY[0] = xc; fXY[1] = yc; fSize[0] = wx; fSize[1] = wy; fCharge = charge;
+ fFlag = 0;
}
//_____________________________________________________________________________
//__________________________________________________________________________
void AliMUONPixel::Print(const char* /*opt*/) const
{
- // "Compare" function to sort with decreasing pixel charge
- printf("%9.4f %9.4f %9.4f %9.4f %9.4f \n", fXY[0], fXY[1], fSize[0], fSize[1], fCharge);
+ // Print function
+ printf("%9.4f %9.4f %9.4f %9.4f %9.4f %1d\n", fXY[0], fXY[1], fSize[0], fSize[1], fCharge, fFlag);
}
Double_t Charge(void) const { return fCharge; } // pixel charge
Double_t Size(Int_t ixy) const { return fSize[ixy]; } // pixel size
Double_t Coord(Int_t ixy) const { return fXY[ixy]; } // pixel coordinate
+ Int_t Flag(void) const { return fFlag; } // pixel flag
void SetCharge(Double_t Charge) { fCharge = Charge; } // set charge
void SetSize(Int_t ixy, Double_t Size) { fSize[ixy] = Size; } // set size
- void SetCoord(Int_t ixy, Double_t Coord) { fXY[ixy] = Coord; }
+ void SetCoord(Int_t ixy, Double_t Coord) { fXY[ixy] = Coord; } // set coordinate
+ void SetFlag(Int_t flag) { fFlag = flag; } // set flag
void Shift(Int_t ixy, Double_t shift) { fXY[ixy] += shift; }
void Print(const char* opt="") const;
// What is necessary for sorting TObjArray's
private:
- Double_t fCharge; // pixel charge
- Double_t fSize[2]; // pixel size
- Double_t fXY[2]; // pixel coordinates
+ Double_t fCharge; // ! pixel charge
+ Double_t fSize[2]; // ! pixel size
+ Double_t fXY[2]; // ! pixel coordinates
+ Int_t fFlag; // ! pixel flag
// Functions