]>
Commit | Line | Data |
---|---|---|
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 | ||
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. * | |
16 | * AliESDVertex objects are created by the class AliITSVertexer and its * | |
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) * | |
22 | * This class replaces the previous version of AliESDVertex, designed * | |
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 | ||
31 | class AliESDVertex : public TNamed { | |
32 | ||
33 | public: | |
34 | ||
35 | AliESDVertex(); | |
36 | AliESDVertex(Double_t positionZ,Double_t sigmaZ,Int_t nContributors, | |
37 | Char_t *vtxName="Vertex"); | |
38 | AliESDVertex(Double_t position[3],Double_t covmatrix[6], | |
39 | Double_t chi2,Int_t nContributors, | |
40 | Char_t *vtxName="Vertex"); | |
41 | AliESDVertex(Double_t position[3],Double_t sigma[3], | |
42 | Char_t *vtxName="Vertex"); | |
43 | AliESDVertex(Double_t position[3],Double_t sigma[3],Double_t snr[3], | |
44 | Char_t *vtxName="Vertex"); | |
45 | ||
46 | virtual ~AliESDVertex(); | |
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 | ||
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 | ||
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; } | |
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];} | |
74 | ||
75 | private: | |
76 | ||
77 | void SetToZero(); | |
78 | ||
79 | protected: | |
80 | ||
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 | |
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 | |
87 | Double_t fTruePos[3]; //true vertex position (for comparison purposes) | |
88 | ClassDef(AliESDVertex,4) // Class for Primary Vertex | |
89 | }; | |
90 | ||
91 | #endif | |
92 | ||
93 | ||
94 | ||
95 | ||
96 | ||
97 | ||
98 |