]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/src/AliHLTVertexFinder.h
HLT hit's reconstruction included in the reconstruction chain (Indra)
[u/mrichter/AliRoot.git] / HLT / src / AliHLTVertexFinder.h
CommitLineData
3e87ef69 1// @(#) $Id$
2
4aa41877 3#ifndef AliHLTVERTEXFINDER_H
4#define AliHLTVERTEXFINDER_H
108615fc 5
4aa41877 6class AliHLTSpacePointData;
7class AliHLTVertexData;
8class AliHLTVertex;
108615fc 9
4aa41877 10#include "AliHLTVertexArray.h"
14e76e91 11
4aa41877 12class AliHLTVertexFinder:public AliHLTVertexArray {
14e76e91 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:
4aa41877 26 AliHLTVertexFinder();
27 AliHLTVertexFinder(AliHLTVertexFinder &vf) : AliHLTVertexArray(vf){;}
28 virtual ~AliHLTVertexFinder();
14e76e91 29
30 void Reset();
4aa41877 31 void Read(Int_t ncluster, AliHLTSpacePointData* hits);
14e76e91 32 void Analyze();
4aa41877 33 void Write(AliHLTVertex *vertex) const;
34 void Write(AliHLTVertexData *vertex) const;
14e76e91 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;}
108615fc 53
4aa41877 54 ClassDef(AliHLTVertexFinder,1) // Vertex finder class
108615fc 55};
4aa41877 56
57typedef AliHLTVertexFinder AliL3VertexFinder; // for backward compatibility
58
108615fc 59#endif