]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONPixel.cxx
New TGeo features allow us to avoid the use of MANY.
[u/mrichter/AliRoot.git] / MUON / AliMUONPixel.cxx
index 69fb91a08ff063bc4fd41589b87b3f6af9e2fb4a..7a4a4a5d1bfc2cadfee6334257f73a071f1951d8 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
+/* $Id$ */
+
 #include "AliMUONPixel.h"
 
 ClassImp(AliMUONPixel) // Class implementation in ROOT context
 
+//_____________________________________________________________________________
+AliMUONPixel::AliMUONPixel()
+  : TObject()
+{
+// Default constructor
+} 
+
 //_____________________________________________________________________________
 AliMUONPixel::AliMUONPixel(Double_t xc, Double_t yc, Double_t wx, Double_t wy, Double_t charge)
+  : TObject()
 {
   // Constructor
   fXY[0] = xc; fXY[1] = yc; fSize[0] = wx; fSize[1] = wy; fCharge = charge;
@@ -40,3 +50,10 @@ Int_t AliMUONPixel::Compare(const TObject* pixel) const
   else if (fCharge == ((AliMUONPixel*)pixel)->Charge()) return( 0);
   else return(+1);
 }
+
+//__________________________________________________________________________
+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);
+}