]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/src/AliHLTVertexFinder.h
DIPO added
[u/mrichter/AliRoot.git] / HLT / src / AliHLTVertexFinder.h
1 // @(#) $Id$
2
3 #ifndef AliHLTVERTEXFINDER_H
4 #define AliHLTVERTEXFINDER_H
5
6 class AliHLTSpacePointData;
7 class AliHLTVertexData;
8 class AliHLTVertex;
9
10 #include "AliHLTVertexArray.h"
11
12 class AliHLTVertexFinder:public AliHLTVertexArray {
13  private:
14   Double_t fX;     // x
15   Double_t fY;     // y
16   Double_t fZ;     // z
17   Double_t fPhi;   // phi
18   Double_t fR;     // radius
19   
20   Double_t fXErr;  // x error
21   Double_t fYErr;  // y error
22   Double_t fZErr;  // z error
23   Double_t fMWxy;  // xy weight
24
25  public:
26   AliHLTVertexFinder(); 
27   AliHLTVertexFinder(AliHLTVertexFinder &vf) : AliHLTVertexArray(vf){;}
28   virtual ~AliHLTVertexFinder();
29
30   void Reset();
31   void Read(Int_t ncluster, AliHLTSpacePointData* hits);
32   void Analyze();
33   void Write(AliHLTVertex *vertex) const;
34   void Write(AliHLTVertexData *vertex) const;
35
36   Double_t GetX() const {return fX;}
37   Double_t GetY() const {return fY;}
38   Double_t GetZ() const {return fZ;}
39   Double_t GetXErr() const {return fXErr;}
40   Double_t GetYErr() const {return fYErr;}
41   Double_t GetZErr() const {return fZErr;}
42   Double_t GetPhi()  const {return fPhi;}
43   Double_t GetR()    const {return fR;}
44   Double_t GetXYWeight() const {return fMWxy;}
45   void SetX(Double_t f) {fX=f;}
46   void SetY(Double_t f) {fY=f;}
47   void SetZ(Double_t f) {fZ=f;}
48   void SetXErr(Double_t f) {fXErr=f;}
49   void SetYErr(Double_t f) {fYErr=f;}
50   void SetZErr(Double_t f) {fZErr=f;}
51
52   void SetXYWeight(Double_t f) {fMWxy = f;}
53  
54   ClassDef(AliHLTVertexFinder,1)  // Vertex finder class
55 };
56
57 typedef AliHLTVertexFinder AliL3VertexFinder; // for backward compatibility
58
59 #endif