]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONPixel.cxx
Removing quick code hack and unnecessary methods. Now have a much cleaner implementat...
[u/mrichter/AliRoot.git] / MUON / AliMUONPixel.cxx
index 86a6731d39e2ccc879d8e88759c06ec7e710a150..d80dee3ceb5d8cdb74a93d464768faf4a95db478 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
+//-----------------------------------------------------------------------------
+/// \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"
 
+/// \cond CLASSIMP
 ClassImp(AliMUONPixel) // Class implementation in ROOT context
+/// \endcond
 
 //_____________________________________________________________________________
 AliMUONPixel::AliMUONPixel()
-  : TObject()
+  : TObject(),
+    fCharge(0),
+    fFlag(0)
 {
-  // Default constructor
-  fXY[0] = fXY[1] = fSize[0] = fSize[1] = fCharge = 0;
-  fFlag = 0;
+/// Default constructor
+  fXY[0] = fXY[1] = fSize[0] = fSize[1] = 0;
 } 
 
 //_____________________________________________________________________________
 AliMUONPixel::AliMUONPixel(Double_t xc, Double_t yc, Double_t wx, Double_t wy, Double_t charge)
-  : TObject()
+  : TObject(),
+    fCharge(charge),
+    fFlag(0)
 {
-  // Constructor
-  fXY[0] = xc; fXY[1] = yc; fSize[0] = wx; fSize[1] = wy; fCharge = charge;
-  fFlag = 0;
+/// Constructor
+  fXY[0] = xc; fXY[1] = yc; fSize[0] = wx; fSize[1] = wy;
 }
 
 //_____________________________________________________________________________
 AliMUONPixel::~AliMUONPixel()
 {
-  // Destructor
+/// Destructor
 }
 
 //__________________________________________________________________________
 Int_t AliMUONPixel::Compare(const TObject* pixel) const
 {
-  // "Compare" function to sort with decreasing pixel charge.
-  // Returns -1 (0, +1) if charge of current pixel
-  // is greater than (equal to, less than) charge of pixel
+/// "Compare" function to sort with decreasing pixel charge.
+/// Returns -1 (0, +1) if charge of current pixel
+/// is greater than (equal to, less than) charge of pixel
   if (fCharge > ((AliMUONPixel*)pixel)->Charge()) return(-1);
   else if (fCharge == ((AliMUONPixel*)pixel)->Charge()) return( 0);
   else return(+1);
@@ -64,6 +69,6 @@ Int_t AliMUONPixel::Compare(const TObject* pixel) const
 //__________________________________________________________________________
 void AliMUONPixel::Print(const char* /*opt*/) const
 {
-  // Print function
+/// 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);
 }