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