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();
24 virtual ~AliMUONPointWithRef() {}
27 virtual Bool_t IsSortable() const { return kTRUE; }
29 virtual Int_t Compare(const TObject* obj) const;
31 Double_t X() const { return fX; }
33 Double_t Y() const { return fY; }
35 Int_t Ref() const { return fRef; }
37 void Print(Option_t* opt="") const;
40 Double_t fX; //< x value
41 Double_t fY; //< y value
42 Int_t fRef; //< index of the original point in some array
44 ClassDef(AliMUONPointWithRef,1) // A point with an external integer reference