1 #ifndef ALIMUONPOINTWITHREF_H
2 #define ALIMUONPOINTWITHREF_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
10 /// \class AliMUONPointWithRef
11 /// \brief A TVector2 with an integer ref, and a specific Compare
13 // author Laurent Aphecetche
19 class AliMUONPointWithRef : public TObject
22 AliMUONPointWithRef(Double_t x, Double_t y, Int_t ref);
23 AliMUONPointWithRef();
25 virtual ~AliMUONPointWithRef() {}
28 virtual Bool_t IsSortable() const { return kTRUE; }
30 virtual Int_t Compare(const TObject* obj) const;
33 Double_t X() const { return fX; }
36 Double_t Y() const { return fY; }
38 /// Return the index of the original point in some array
39 Int_t Ref() const { return fRef; }
41 void Print(Option_t* opt="") const;
44 Double_t fX; ///< x value
45 Double_t fY; ///< y value
46 Int_t fRef; ///< index of the original point in some array
48 ClassDef(AliMUONPointWithRef,1) // A point with an external integer reference