From: ivana Date: Thu, 16 Mar 2006 10:02:27 +0000 (+0000) Subject: Added fFlag member and its getter/setter X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=0df15a06efcf807b54e259f3676b002760139ef1;p=u%2Fmrichter%2FAliRoot.git Added fFlag member and its getter/setter (Sasha) --- diff --git a/MUON/AliMUONPixel.cxx b/MUON/AliMUONPixel.cxx index 7a4a4a5d1bf..86a6731d39e 100644 --- a/MUON/AliMUONPixel.cxx +++ b/MUON/AliMUONPixel.cxx @@ -15,6 +15,13 @@ /* $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); } diff --git a/MUON/AliMUONPixel.h b/MUON/AliMUONPixel.h index 40973438bb4..6f2972021a8 100644 --- a/MUON/AliMUONPixel.h +++ b/MUON/AliMUONPixel.h @@ -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