Line data Source code
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 0 : 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 0 : {return fZ == ((AliITSZPoint*)obj)->fZ;}
23 0 : virtual Bool_t IsSortable() const { return kTRUE; }
24 : virtual Int_t Compare(const TObject *obj) const
25 0 : {if(fZ<((AliITSZPoint*)obj)->fZ) return -1;
26 0 : else if(fZ>((AliITSZPoint*)obj)->fZ) return 1;
27 0 : else return 0; }
28 : virtual void Print(Option_t *option="") const;
29 0 : Float_t GetZ() const {return fZ;}
30 0 : 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 118 : ClassDef(AliITSZPoint,1);
37 : };
38 : #endif
39 :
|