]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Added fFlag member and its getter/setter
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 16 Mar 2006 10:02:27 +0000 (10:02 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 16 Mar 2006 10:02:27 +0000 (10:02 +0000)
(Sasha)

MUON/AliMUONPixel.cxx
MUON/AliMUONPixel.h

index 7a4a4a5d1bfc2cadfee6334257f73a071f1951d8..86a6731d39e2ccc879d8e88759c06ec7e710a150 100644 (file)
 
 /* $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
@@ -23,7 +30,9 @@ 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;
 } 
 
 //_____________________________________________________________________________
@@ -32,6 +41,7 @@ AliMUONPixel::AliMUONPixel(Double_t xc, Double_t yc, Double_t wx, Double_t wy, D
 {
   // Constructor
   fXY[0] = xc; fXY[1] = yc; fSize[0] = wx; fSize[1] = wy; fCharge = charge;
+  fFlag = 0;
 }
 
 //_____________________________________________________________________________
@@ -54,6 +64,6 @@ Int_t AliMUONPixel::Compare(const TObject* pixel) const
 //__________________________________________________________________________
 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);
 }
index 40973438bb4dfeb59975ed76d5478c66295c5ede..6f2972021a8090d26c98aeb650743d1efe7bdcbb 100644 (file)
@@ -23,10 +23,12 @@ class AliMUONPixel : public TObject {
   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
@@ -37,9 +39,10 @@ class AliMUONPixel : public TObject {
 
  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