]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONPixel.h
Geometry framework classes were made independent from the rest of MUON and linked...
[u/mrichter/AliRoot.git] / MUON / AliMUONPixel.h
1 #ifndef ALIMUONPIXEL_H
2 #define ALIMUONPIXEL_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7 // Revision of includes 07/05/2004
8
9 #include <TObject.h>
10
11 class AliMUONPixel : public TObject {
12
13  public:
14
15   AliMUONPixel();
16   AliMUONPixel(Double_t xc, Double_t yc, Double_t wx, Double_t wy, Double_t charge); // constructor
17   virtual ~AliMUONPixel(); // Destructor
18
19   Double_t Charge(void) const { return fCharge; } // pixel charge
20   Double_t Size(Int_t ixy) const { return fSize[ixy]; } // pixel size
21   Double_t Coord(Int_t ixy) const { return fXY[ixy]; } // pixel coordinate
22   
23   void SetCharge(Double_t Charge) { fCharge = Charge; } // set charge
24   void SetSize(Int_t ixy, Double_t Size) { fSize[ixy] = Size; } // set size
25   void SetCoord(Int_t ixy, Double_t Coord) { fXY[ixy] = Coord; }
26   void Shift(Int_t ixy, Double_t shift) { fXY[ixy] += shift; }
27   void Print(void) {printf("%9.4f %9.4f %9.4f %9.4f %9.4f \n", fXY[0], fXY[1], fSize[0], fSize[1], fCharge); }
28   // What is necessary for sorting TObjArray's
29   Bool_t IsSortable() const { return kTRUE; }
30   Int_t Compare(const TObject* pixel) const; // "Compare" function for sorting
31
32  protected:
33
34  private:
35  
36   Double_t fCharge; // pixel charge
37   Double_t fSize[2]; // pixel size
38   Double_t fXY[2]; // pixel coordinates
39
40   // Functions
41
42   ClassDef(AliMUONPixel,0) // pixel for MLEM method of cluster finding
43     };
44 #endif