3 /* Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 //-------------------------------------------------------
9 // Primary Vertex Class
10 // for the Event Data Summary Class
11 // Origin: A.Dainese, Padova, andrea.dainese@pd.infn.it
12 //-------------------------------------------------------
14 /*****************************************************************************
16 * This class deals with primary vertex. *
17 * AliESDVertex objects are created by the class AliITSVertexer and its *
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 *
27 *****************************************************************************/
31 #include "AliVertex.h"
33 class AliESDVertex : public AliVertex {
38 AliESDVertex(Double_t positionZ,Double_t sigmaZ,Int_t nContributors,
39 const Char_t *vtxName="Vertex");
40 AliESDVertex(Double_t position[3],Double_t covmatrix[6],
41 Double_t chi2,Int_t nContributors,
42 const Char_t *vtxName="Vertex");
43 AliESDVertex(Double_t position[3],Double_t sigma[3],
44 const Char_t *vtxName="Vertex");
45 AliESDVertex(Double_t position[3],Double_t sigma[3],Double_t snr[3],
46 const Char_t *vtxName="Vertex");
47 AliESDVertex(const AliESDVertex &source);
48 AliESDVertex &operator=(const AliESDVertex &source);
49 virtual void Copy(TObject &obj) const;
51 virtual ~AliESDVertex() {}
53 void GetSigmaXYZ(Double_t sigma[3]) const;
54 void GetCovMatrix(Double_t covmatrix[6]) const;
55 void GetCovarianceMatrix(Double_t covmatrix[6]) const
56 {GetCovMatrix(covmatrix);}
57 void GetSNR(Double_t snr[3]) const;
59 Double_t GetXRes() const {return TMath::Sqrt(fCovXX);}
60 Double_t GetYRes() const {return TMath::Sqrt(fCovYY);}
61 Double_t GetZRes() const {return TMath::Sqrt(fCovZZ);}
62 Double_t GetXSNR() const { return fSNR[0]; }
63 Double_t GetYSNR() const { return fSNR[1]; }
64 Double_t GetZSNR() const { return fSNR[2]; }
66 Double_t GetChi2() const { return fChi2; }
67 Double_t GetChi2toNDF() const
68 { return fChi2/(2.*(Double_t)fNContributors-3.); }
69 Double_t GetChi2perNDF() const { return GetChi2toNDF();}
70 Int_t GetNDF() const {return (2*fNContributors-3);}
72 void Print(Option_t* option = "") const;
73 void PrintStatus() const {Print();}
75 void Reset() { SetToZero(); SetName("Vertex"); }
79 Double32_t fCovXX,fCovXY,fCovYY,fCovXZ,fCovYZ,fCovZZ; // vertex covariance matrix
80 Double32_t fSNR[3]; // S/N ratio
81 Double32_t fChi2; // chi2 of vertex fit
87 ClassDef(AliESDVertex,6) // Class for Primary Vertex