]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONPixel.cxx
Updated comment line only (ingroup directive)
[u/mrichter/AliRoot.git] / MUON / AliMUONPixel.cxx
CommitLineData
0df3ca52 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
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 **************************************************************************/
15
30178c30 16/* $Id$ */
17
0df3ca52 18#include "AliMUONPixel.h"
19
20ClassImp(AliMUONPixel) // Class implementation in ROOT context
21
30178c30 22//_____________________________________________________________________________
23AliMUONPixel::AliMUONPixel()
24 : TObject()
25{
26// Default constructor
27}
28
0df3ca52 29//_____________________________________________________________________________
30AliMUONPixel::AliMUONPixel(Double_t xc, Double_t yc, Double_t wx, Double_t wy, Double_t charge)
30178c30 31 : TObject()
0df3ca52 32{
33 // Constructor
34 fXY[0] = xc; fXY[1] = yc; fSize[0] = wx; fSize[1] = wy; fCharge = charge;
35}
36
37//_____________________________________________________________________________
38AliMUONPixel::~AliMUONPixel()
39{
40 // Destructor
41}
42
43//__________________________________________________________________________
44Int_t AliMUONPixel::Compare(const TObject* pixel) const
45{
46 // "Compare" function to sort with decreasing pixel charge.
47 // Returns -1 (0, +1) if charge of current pixel
48 // is greater than (equal to, less than) charge of pixel
49 if (fCharge > ((AliMUONPixel*)pixel)->Charge()) return(-1);
50 else if (fCharge == ((AliMUONPixel*)pixel)->Charge()) return( 0);
51 else return(+1);
52}
337c9041 53
54//__________________________________________________________________________
55void AliMUONPixel::Print(const char* /*opt*/) const
56{
57 // "Compare" function to sort with decreasing pixel charge
58 printf("%9.4f %9.4f %9.4f %9.4f %9.4f \n", fXY[0], fXY[1], fSize[0], fSize[1], fCharge);
59}