1 #ifndef ALIITSSIMPLEVERTEX_H
2 #define ALIITSSIMPLEVERTEX_H
3 /* Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
7 //-------------------------------------------------------
8 // Secondary Vertex Class
9 // as calculated by AliITSVertexerTracks
10 // Origin: F. Prino, Torino, prino@to.infn.it
11 //-------------------------------------------------------
13 /*****************************************************************************
15 * This class deals with secondary vertices. *
16 * AliITSSimpleVertex objects are created by the class AliITSVertexerTracks *
18 *****************************************************************************/
20 //---- Root headers -----
23 class AliITSSimpleVertex : public TNamed {
28 AliITSSimpleVertex(Double_t position[3],Double_t dispersion,
30 virtual ~AliITSSimpleVertex();
33 void SetXYZ(Double_t pos[3]) {for(Int_t j=0; j<3; j++) fPosition[j]=pos[j];}
34 void SetXv(Double_t xVert) {fPosition[0]=xVert; }
35 void SetYv(Double_t yVert) {fPosition[1]=yVert; }
36 void SetZv(Double_t zVert) {fPosition[2]=zVert; }
37 void SetDispersion(Double_t disp) { fSigma=disp; }
38 void SetNContributors(Int_t nContr) {fNContributors=nContr; }
40 void GetXYZ(Double_t position[3]) const;
41 Double_t GetXv() const { return fPosition[0]; }
42 Double_t GetYv() const { return fPosition[1]; }
43 Double_t GetZv() const { return fPosition[2]; }
44 Double_t GetDispersion() const { return fSigma; }
45 Int_t GetNContributors() const { return fNContributors; }
47 void Print(Option_t* option = "") const;
52 Double_t fPosition[3]; // vertex position
53 Double_t fSigma; // track dispersion around found vertex
54 Int_t fNContributors; // # of tracklets/tracks used for the estimate
57 ClassDef(AliITSSimpleVertex,1) // Class for Primary Vertex