AliRoot Core  da88d91 (da88d91)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONPointWithRef.h
Go to the documentation of this file.
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 
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);
25  virtual ~AliMUONPointWithRef() {}
26 
28  virtual Bool_t IsSortable() const { return kTRUE; }
29 
30  virtual Int_t Compare(const TObject* obj) const;
31 
33  Double_t X() const { return fX; }
34 
36  Double_t Y() const { return fY; }
37 
39  Int_t Ref() const { return fRef; }
40 
41  void Print(Option_t* opt="") const;
42 
43 private:
44  Double_t fX;
45  Double_t fY;
46  Int_t fRef;
47 
48  ClassDef(AliMUONPointWithRef,1) // A point with an external integer reference
49 };
50 
51 #endif
Int_t fRef
index of the original point in some array
A TVector2 with an integer ref, and a specific Compare.
virtual ~AliMUONPointWithRef()
Destructor.
virtual Int_t Compare(const TObject *obj) const
virtual Bool_t IsSortable() const
We are sortable.
Double_t X() const
Return x value.
void Print(Option_t *opt="") const
Int_t Ref() const
Return the index of the original point in some array.
Double_t Y() const
Return y value.
return kTRUE
Definition: AliFMDv1.cxx:97