restore AliMUONDisplay-trigger-button action (Christian)
[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
2257f27e 6/* $Id$ */
c5f0f3c1 7
8//-------------------------------------------------------
9// Primary Vertex Class
af7ba10c 10// for the Event Data Summary Class
c5f0f3c1 11// Origin: A.Dainese, Padova, andrea.dainese@pd.infn.it
12//-------------------------------------------------------
13
14/*****************************************************************************
15 * *
16 * This class deals with primary vertex. *
d681bb2d 17 * AliESDVertex objects are created by the class AliITSVertexer and its *
c5f0f3c1 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) *
d681bb2d 23 * This class replaces the previous version of AliESDVertex, designed *
c5f0f3c1 24 * originally only for A-A collisions. The functionalities of the old class *
25 * are maintained in the AliITSVertexerIons class *
26 * *
27 *****************************************************************************/
28
29//---- Root headers -----
30#include <TNamed.h>
31
d681bb2d 32class AliESDVertex : public TNamed {
504de69b 33
34 public:
35
d681bb2d 36 AliESDVertex();
37 AliESDVertex(Double_t positionZ,Double_t sigmaZ,Int_t nContributors,
a27d7b02 38 const Char_t *vtxName="Vertex");
d681bb2d 39 AliESDVertex(Double_t position[3],Double_t covmatrix[6],
c5f0f3c1 40 Double_t chi2,Int_t nContributors,
a27d7b02 41 const Char_t *vtxName="Vertex");
d681bb2d 42 AliESDVertex(Double_t position[3],Double_t sigma[3],
a27d7b02 43 const Char_t *vtxName="Vertex");
d681bb2d 44 AliESDVertex(Double_t position[3],Double_t sigma[3],Double_t snr[3],
a27d7b02 45 const Char_t *vtxName="Vertex");
c5f0f3c1 46
d681bb2d 47 virtual ~AliESDVertex();
c5f0f3c1 48
49
50 void GetXYZ(Double_t position[3]) const;
51 void GetSigmaXYZ(Double_t sigma[3]) const;
52 void GetCovMatrix(Double_t covmatrix[6]) const;
53 void GetSNR(Double_t snr[3]) const;
54
c5f0f3c1 55 Double_t GetXv() const;
56 Double_t GetYv() const;
57 Double_t GetZv() const;
58 Double_t GetXRes() const;
59 Double_t GetYRes() const;
60 Double_t GetZRes() const;
61 Double_t GetXSNR() const { return fSNR[0]; }
62 Double_t GetYSNR() const { return fSNR[1]; }
63 Double_t GetZSNR() const { return fSNR[2]; }
64
c5f0f3c1 65 Double_t GetChi2() const { return fChi2; }
66 Double_t GetChi2toNDF() const
67 { return fChi2/(2.*(Double_t)fNContributors-3.); }
68 Int_t GetNContributors() const { return fNContributors; }
69
70 void PrintStatus() const;
71 void SetDebug(Int_t dbg = 0) { fDebug = dbg; return; }
0fc5cc25 72 void SetTruePos(Double_t *tp){for(Int_t i=0;i<3;i++)fTruePos[i]=tp[i];}
73 void GetTruePos(Double_t &x,Double_t &y,Double_t &z) const
74 {x=fTruePos[0]; y=fTruePos[1]; z=fTruePos[2];}
504de69b 75
0fc5cc25 76 protected:
77
c5f0f3c1 78 Double_t fPosition[3]; // vertex position
79 Double_t fCovXX,fCovXY,fCovYY,fCovXZ,fCovYZ,fCovZZ; // vertex covariance matrix
80 Double_t fSNR[3]; // S/N ratio
c5f0f3c1 81 Double_t fChi2; // chi2 of vertex fit
82 Int_t fNContributors; // # of tracklets/tracks used for the estimate
83 Int_t fDebug; //! for debugging
0fc5cc25 84 Double_t fTruePos[3]; //true vertex position (for comparison purposes)
af7ba10c 85
86 private:
87
88 void SetToZero();
89
d681bb2d 90 ClassDef(AliESDVertex,4) // Class for Primary Vertex
af7ba10c 91};
504de69b 92
93#endif
c5f0f3c1 94
95
96
97
98
99
100