]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliESDVertex.h
Include header files from the current directory
[u/mrichter/AliRoot.git] / STEER / AliESDVertex.h
1 #ifndef ALIESDVERTEX_H
2 #define ALIESDVERTEX_H
3 /* Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7
8 //-------------------------------------------------------
9 //                    Primary Vertex Class
10 //          for the Event Data Summary Class
11 //   Origin: A.Dainese, Padova, andrea.dainese@pd.infn.it
12 //-------------------------------------------------------
13
14 /*****************************************************************************
15  *                                                                           *
16  * This class deals with primary vertex.                                     *
17  * AliESDVertex objects are created by the class AliITSVertexer and its      *
18  * derived classes.                                                          *
19  * Different constructors are provided:                                      *
20  * - for primary vertex determined with pixels in pp (only Z)                *
21  * - for primary vertex determined with pixels in ion-ion (X,Y,Z)            *
22  * - for primary vertex determined with ITS tracks in pp (X,Y,Z)             *
23  * This class replaces the previous version of AliESDVertex, designed        *
24  * originally only for A-A collisions. The functionalities of the old class  *
25  * are maintained in the AliITSVertexerIons class                            *
26  *                                                                           *
27  *****************************************************************************/
28
29
30 #include "AliVertex.h"
31
32 class AliESDVertex : public AliVertex {
33  
34  public:
35  
36   AliESDVertex();
37   AliESDVertex(Double_t positionZ,Double_t sigmaZ,Int_t nContributors,
38                const Char_t *vtxName="Vertex");
39   AliESDVertex(Double_t position[3],Double_t covmatrix[6],
40                Double_t chi2,Int_t nContributors,
41                const Char_t *vtxName="Vertex");
42   AliESDVertex(Double_t position[3],Double_t sigma[3],
43                const Char_t *vtxName="Vertex");
44   AliESDVertex(Double_t position[3],Double_t sigma[3],Double_t snr[3],
45                const Char_t *vtxName="Vertex");
46
47   virtual ~AliESDVertex(){;}
48
49
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
54   Double_t GetXRes() const {return TMath::Sqrt(fCovXX);}
55   Double_t GetYRes() const {return TMath::Sqrt(fCovYY);}
56   Double_t GetZRes() const {return TMath::Sqrt(fCovZZ);}
57   Double_t GetXSNR() const { return fSNR[0]; }
58   Double_t GetYSNR() const { return fSNR[1]; }
59   Double_t GetZSNR() const { return fSNR[2]; }
60
61   Double_t GetChi2() const { return fChi2; }
62   Double_t GetChi2toNDF() const 
63     { return fChi2/(2.*(Double_t)fNContributors-3.); }
64
65   void     Print(Option_t* option = "") const;
66   void     PrintStatus() const {Print();}
67   void SetTruePos(Double_t *tp){for(Int_t i=0;i<3;i++)fTruePos[i]=tp[i];}
68   void GetTruePos(Double_t *tp) const 
69        {for(Int_t i=0;i<3;i++)tp[i]=fTruePos[i];}
70
71   void Reset() { SetToZero(); SetName("Vertex"); }
72
73  protected:
74
75   Double_t fCovXX,fCovXY,fCovYY,fCovXZ,fCovYZ,fCovZZ;  // vertex covariance matrix
76   Double_t fSNR[3];  // S/N ratio
77   Double_t fChi2;  // chi2 of vertex fit
78   Double_t fTruePos[3];   //true vertex position (for comparison purposes)
79
80  private:
81
82   void SetToZero();
83
84   ClassDef(AliESDVertex,5)  // Class for Primary Vertex
85 };
86
87 #endif
88
89
90
91
92
93
94