]>
Commit | Line | Data |
---|---|---|
0df3ca52 | 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 | ||
30178c30 | 6 | /* $Id$ */ |
7 | // Revision of includes 07/05/2004 | |
8 | ||
692de412 | 9 | /// \ingroup rec |
10 | /// \class AliMUONPixel | |
11 | /// \brief Pixel for MLEM method of cluster finding | |
12 | ||
30178c30 | 13 | #include <TObject.h> |
0df3ca52 | 14 | |
15 | class AliMUONPixel : public TObject { | |
16 | ||
17 | public: | |
18 | ||
30178c30 | 19 | AliMUONPixel(); |
0df3ca52 | 20 | AliMUONPixel(Double_t xc, Double_t yc, Double_t wx, Double_t wy, Double_t charge); // constructor |
21 | virtual ~AliMUONPixel(); // Destructor | |
22 | ||
23 | Double_t Charge(void) const { return fCharge; } // pixel charge | |
24 | Double_t Size(Int_t ixy) const { return fSize[ixy]; } // pixel size | |
25 | Double_t Coord(Int_t ixy) const { return fXY[ixy]; } // pixel coordinate | |
0df15a06 | 26 | Int_t Flag(void) const { return fFlag; } // pixel flag |
0df3ca52 | 27 | |
28 | void SetCharge(Double_t Charge) { fCharge = Charge; } // set charge | |
29 | void SetSize(Int_t ixy, Double_t Size) { fSize[ixy] = Size; } // set size | |
0df15a06 | 30 | void SetCoord(Int_t ixy, Double_t Coord) { fXY[ixy] = Coord; } // set coordinate |
31 | void SetFlag(Int_t flag) { fFlag = flag; } // set flag | |
0df3ca52 | 32 | void Shift(Int_t ixy, Double_t shift) { fXY[ixy] += shift; } |
337c9041 | 33 | void Print(const char* opt="") const; |
0df3ca52 | 34 | // What is necessary for sorting TObjArray's |
35 | Bool_t IsSortable() const { return kTRUE; } | |
36 | Int_t Compare(const TObject* pixel) const; // "Compare" function for sorting | |
37 | ||
38 | protected: | |
39 | ||
40 | private: | |
41 | ||
0df15a06 | 42 | Double_t fCharge; // ! pixel charge |
43 | Double_t fSize[2]; // ! pixel size | |
44 | Double_t fXY[2]; // ! pixel coordinates | |
45 | Int_t fFlag; // ! pixel flag | |
0df3ca52 | 46 | |
47 | // Functions | |
48 | ||
49 | ClassDef(AliMUONPixel,0) // pixel for MLEM method of cluster finding | |
50 | }; | |
51 | #endif |