]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONPointWithRef.h
Temporary fix waiting for M.Ivanov
[u/mrichter/AliRoot.git] / MUON / AliMUONPointWithRef.h
CommitLineData
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
19class AliMUONPointWithRef : public TObject
20{
21public:
22 AliMUONPointWithRef(Double_t x, Double_t y, Int_t ref);
23 AliMUONPointWithRef();
24 virtual ~AliMUONPointWithRef() {}
25
26 /// We are sortable
27 virtual Bool_t IsSortable() const { return kTRUE; }
28
29 virtual Int_t Compare(const TObject* obj) const;
30
31 Double_t X() const { return fX; }
32
33 Double_t Y() const { return fY; }
34
35 Int_t Ref() const { return fRef; }
36
37 void Print(Option_t* opt="") const;
38
39private:
40 Double_t fX; //< x value
41 Double_t fY; //< y value
42 Int_t fRef; //< index of the original point in some array
43
44 ClassDef(AliMUONPointWithRef,1) // A point with an external integer reference
45};
46
47#endif