]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliESDVertex.h
Possibility to run without compilation (T.Kuhr)
[u/mrichter/AliRoot.git] / STEER / AliESDVertex.h
CommitLineData
d681bb2d 1#ifndef ALIESDVERTEX_H
2#define ALIESDVERTEX_H
0fc5cc25 3/* Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
c5f0f3c1 4 * See cxx source for full Copyright notice */
504de69b 5
c5f0f3c1 6
7//-------------------------------------------------------
8// Primary Vertex Class
9//
10// Origin: A.Dainese, Padova, andrea.dainese@pd.infn.it
11//-------------------------------------------------------
12
13/*****************************************************************************
14 * *
15 * This class deals with primary vertex. *
d681bb2d 16 * AliESDVertex objects are created by the class AliITSVertexer and its *
c5f0f3c1 17 * derived classes. *
18 * Different constructors are provided: *
19 * - for primary vertex determined with pixels in pp (only Z) *
20 * - for primary vertex determined with pixels in ion-ion (X,Y,Z) *
21 * - for primary vertex determined with ITS tracks in pp (X,Y,Z) *
d681bb2d 22 * This class replaces the previous version of AliESDVertex, designed *
c5f0f3c1 23 * originally only for A-A collisions. The functionalities of the old class *
24 * are maintained in the AliITSVertexerIons class *
25 * *
26 *****************************************************************************/
27
28//---- Root headers -----
29#include <TNamed.h>
30
d681bb2d 31class AliESDVertex : public TNamed {
504de69b 32
33 public:
34
d681bb2d 35 AliESDVertex();
36 AliESDVertex(Double_t positionZ,Double_t sigmaZ,Int_t nContributors,
11ba84a4 37 Char_t *vtxName="Vertex");
d681bb2d 38 AliESDVertex(Double_t position[3],Double_t covmatrix[6],
c5f0f3c1 39 Double_t chi2,Int_t nContributors,
11ba84a4 40 Char_t *vtxName="Vertex");
d681bb2d 41 AliESDVertex(Double_t position[3],Double_t sigma[3],
11ba84a4 42 Char_t *vtxName="Vertex");
d681bb2d 43 AliESDVertex(Double_t position[3],Double_t sigma[3],Double_t snr[3],
11ba84a4 44 Char_t *vtxName="Vertex");
c5f0f3c1 45
d681bb2d 46 virtual ~AliESDVertex();
c5f0f3c1 47
48
49 void GetXYZ(Double_t position[3]) const;
50 void GetSigmaXYZ(Double_t sigma[3]) const;
51 void GetCovMatrix(Double_t covmatrix[6]) const;
52 void GetSNR(Double_t snr[3]) const;
53
c5f0f3c1 54 Double_t GetXv() const;
55 Double_t GetYv() const;
56 Double_t GetZv() const;
57 Double_t GetXRes() const;
58 Double_t GetYRes() const;
59 Double_t GetZRes() const;
60 Double_t GetXSNR() const { return fSNR[0]; }
61 Double_t GetYSNR() const { return fSNR[1]; }
62 Double_t GetZSNR() const { return fSNR[2]; }
63
c5f0f3c1 64 Double_t GetChi2() const { return fChi2; }
65 Double_t GetChi2toNDF() const
66 { return fChi2/(2.*(Double_t)fNContributors-3.); }
67 Int_t GetNContributors() const { return fNContributors; }
68
69 void PrintStatus() const;
70 void SetDebug(Int_t dbg = 0) { fDebug = dbg; return; }
0fc5cc25 71 void SetTruePos(Double_t *tp){for(Int_t i=0;i<3;i++)fTruePos[i]=tp[i];}
72 void GetTruePos(Double_t &x,Double_t &y,Double_t &z) const
73 {x=fTruePos[0]; y=fTruePos[1]; z=fTruePos[2];}
504de69b 74
75 private:
0fc5cc25 76
77 void SetToZero();
78
79 protected:
80
c5f0f3c1 81 Double_t fPosition[3]; // vertex position
82 Double_t fCovXX,fCovXY,fCovYY,fCovXZ,fCovYZ,fCovZZ; // vertex covariance matrix
83 Double_t fSNR[3]; // S/N ratio
c5f0f3c1 84 Double_t fChi2; // chi2 of vertex fit
85 Int_t fNContributors; // # of tracklets/tracks used for the estimate
86 Int_t fDebug; //! for debugging
0fc5cc25 87 Double_t fTruePos[3]; //true vertex position (for comparison purposes)
d681bb2d 88 ClassDef(AliESDVertex,4) // Class for Primary Vertex
c5f0f3c1 89 };
504de69b 90
91#endif
c5f0f3c1 92
93
94
95
96
97
98