]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSZPoint.h
New classes for finding multiple vertices (in case of pile-up). They will be used...
[u/mrichter/AliRoot.git] / ITS / AliITSZPoint.h
1 #ifndef ALIITSZPOINT_H
2 #define ALIITSZPOINT_H
3
4 #include<TObject.h>
5
6 ///////////////////////////////////////////////////////////////////
7 //                                                               //
8 // Class used by AliITSVertexerZ                                 //
9 // Contains Z coordinates with their error                       //
10 // is sortable                                                   //
11 //                                                               //
12 ///////////////////////////////////////////////////////////////////
13
14 class AliITSZPoint : public TObject {
15
16  public:
17
18   AliITSZPoint();      
19   AliITSZPoint(Float_t z, Float_t ez);
20   virtual ~AliITSZPoint();
21   virtual Bool_t IsEqual(const TObject *obj) const 
22     {return fZ == ((AliITSZPoint*)obj)->fZ;}
23   virtual Bool_t      IsSortable() const { return kTRUE; }
24   virtual Int_t       Compare(const TObject *obj) const 
25     {if(fZ<((AliITSZPoint*)obj)->fZ) return -1;
26     else if(fZ>((AliITSZPoint*)obj)->fZ) return 1;
27     else return 0; }
28   virtual void Print(Option_t *option="") const;
29   Float_t GetZ() const {return fZ;}
30   Float_t GetErrZ() const {return fErrz;}
31
32  protected:
33   Float_t fZ;          // Z coordinate on beam axiz
34   Float_t fErrz;       // error on Z
35
36   ClassDef(AliITSZPoint,1);
37 };
38 #endif
39