]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSSimpleVertex.h
v11 geometry updates and elimination of V2clusters/recpoint choice from vertexers
[u/mrichter/AliRoot.git] / ITS / AliITSSimpleVertex.h
CommitLineData
66e811e2 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 */
5
6
7//-------------------------------------------------------
8// Secondary Vertex Class
9// as calculated by AliITSVertexerTracks
10// Origin: F. Prino, Torino, prino@to.infn.it
11//-------------------------------------------------------
12
13/*****************************************************************************
14 * *
15 * This class deals with secondary vertices. *
16 * AliITSSimpleVertex objects are created by the class AliITSVertexerTracks *
17 * *
18 *****************************************************************************/
19
20//---- Root headers -----
21#include <TNamed.h>
22
23class AliITSSimpleVertex : public TNamed {
24
25 public:
26
27 AliITSSimpleVertex();
28 AliITSSimpleVertex(Double_t position[3],Double_t dispersion,
29 Int_t nContributors);
30 virtual ~AliITSSimpleVertex();
31
32
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; }
39
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; }
46
47 void Print(Option_t* option = "") const;
48
49
50 protected:
51
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
55
56
57 ClassDef(AliITSSimpleVertex,1) // Class for Primary Vertex
58};
59
60#endif
61
62
63
64
65
66
67