]>
Commit | Line | Data |
---|---|---|
0b936dc0 | 1 | #ifndef ALIMUONPOINTWITHREF_H |
2 | #define ALIMUONPOINTWITHREF_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | // $Id$ | |
8 | ||
9 | /// \ingroup geometry | |
10 | /// \class AliMUONPointWithRef | |
11 | /// \brief A TVector2 with an integer ref, and a specific Compare | |
12 | /// | |
13 | // author Laurent Aphecetche | |
14 | ||
15 | #ifndef ROOT_TObject | |
16 | # include "TObject.h" | |
17 | #endif | |
18 | ||
19 | class AliMUONPointWithRef : public TObject | |
20 | { | |
21 | public: | |
22 | AliMUONPointWithRef(Double_t x, Double_t y, Int_t ref); | |
23 | AliMUONPointWithRef(); | |
cddcc1f3 | 24 | /// Destructor |
0b936dc0 | 25 | virtual ~AliMUONPointWithRef() {} |
26 | ||
27 | /// We are sortable | |
28 | virtual Bool_t IsSortable() const { return kTRUE; } | |
29 | ||
30 | virtual Int_t Compare(const TObject* obj) const; | |
31 | ||
cddcc1f3 | 32 | /// Return x value |
0b936dc0 | 33 | Double_t X() const { return fX; } |
34 | ||
cddcc1f3 | 35 | /// Return y value |
0b936dc0 | 36 | Double_t Y() const { return fY; } |
37 | ||
cddcc1f3 | 38 | /// Return the index of the original point in some array |
0b936dc0 | 39 | Int_t Ref() const { return fRef; } |
40 | ||
41 | void Print(Option_t* opt="") const; | |
42 | ||
43 | private: | |
cddcc1f3 | 44 | Double_t fX; ///< x value |
45 | Double_t fY; ///< y value | |
46 | Int_t fRef; ///< index of the original point in some array | |
0b936dc0 | 47 | |
48 | ClassDef(AliMUONPointWithRef,1) // A point with an external integer reference | |
49 | }; | |
50 | ||
51 | #endif |