1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
16 #include "AliMUONPixel.h"
18 ClassImp(AliMUONPixel) // Class implementation in ROOT context
20 //_____________________________________________________________________________
21 AliMUONPixel::AliMUONPixel(Double_t xc, Double_t yc, Double_t wx, Double_t wy, Double_t charge)
24 fXY[0] = xc; fXY[1] = yc; fSize[0] = wx; fSize[1] = wy; fCharge = charge;
27 //_____________________________________________________________________________
28 AliMUONPixel::~AliMUONPixel()
33 //__________________________________________________________________________
34 Int_t AliMUONPixel::Compare(const TObject* pixel) const
36 // "Compare" function to sort with decreasing pixel charge.
37 // Returns -1 (0, +1) if charge of current pixel
38 // is greater than (equal to, less than) charge of pixel
39 if (fCharge > ((AliMUONPixel*)pixel)->Charge()) return(-1);
40 else if (fCharge == ((AliMUONPixel*)pixel)->Charge()) return( 0);