AliRoot Core  edcc906 (edcc906)
AliVVertex.h
Go to the documentation of this file.
1 #ifndef AliVVertex_H
2 #define AliVVertex_H
3 /* Copyright(c) 1998-2008, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 //-------------------------------------------------------------------------
7 // base class for ESD and AOD vertices
8 // Author: A. Dainese
9 //-------------------------------------------------------------------------
10 
11 #include <TNamed.h>
12 
13 class AliVVertex: public TNamed {
14 
15 public:
16  AliVVertex() : TNamed() { }
17  virtual ~AliVVertex() { }
18  AliVVertex(const AliVVertex& vVert);
19  AliVVertex& operator=(const AliVVertex& vVert);
20 
21  // vertex properties
22  virtual void GetXYZ(Double_t position[3]) const = 0;
23  virtual Double_t GetX() const = 0;
24  virtual Double_t GetY() const = 0;
25  virtual Double_t GetZ() const = 0;
26  virtual void GetCovarianceMatrix(Double_t covmatrix[6]) const = 0;
27 
28 
29  virtual Double_t GetChi2perNDF() const = 0;
30  virtual Double_t GetChi2() const = 0;
31  virtual Int_t GetNDF() const = 0;
32 
33  virtual Bool_t IsFromVertexer3D() const {
34  TString title = GetTitle();
35  if(title.Contains("vertexer: 3D")) return kTRUE;
36  else return kFALSE;
37  }
38  virtual Bool_t IsFromVertexerZ() const {
39  TString title = GetTitle();
40  if(title.Contains("vertexer: Z")) return kTRUE;
41  else return kFALSE;
42  }
43 
44  virtual Int_t GetNContributors() const = 0;
45  virtual Bool_t GetStatus() const { return 0;}
46  virtual void PrintIndices() const = 0;
47  virtual void Print(Option_t* option = "") const = 0;
48 
49  virtual void SetBC(Int_t) {}
50  virtual Int_t GetBC() const;
51 
52  virtual void Clear(Option_t* option) {TNamed::Clear(option);}
53 
54 
55  ClassDef(AliVVertex,2) // base class for vertices
56 };
57 
58 #endif
virtual Bool_t IsFromVertexer3D() const
Definition: AliVVertex.h:33
virtual Double_t GetChi2() const =0
virtual void GetCovarianceMatrix(Double_t covmatrix[6]) const =0
AliVVertex & operator=(const AliVVertex &vVert)
Definition: AliVVertex.cxx:30
virtual Int_t GetBC() const
Definition: AliVVertex.cxx:40
virtual Double_t GetZ() const =0
virtual ~AliVVertex()
Definition: AliVVertex.h:17
virtual void Clear(Option_t *option)
Definition: AliVVertex.h:52
virtual Bool_t GetStatus() const
Definition: AliVVertex.h:45
virtual Double_t GetChi2perNDF() const =0
virtual Int_t GetNContributors() const =0
virtual Double_t GetX() const =0
void Clear()
Add comment.
virtual void Print(Option_t *option="") const =0
virtual void PrintIndices() const =0
virtual void GetXYZ(Double_t position[3]) const =0
virtual Int_t GetNDF() const =0
virtual Double_t GetY() const =0
virtual void SetBC(Int_t)
Definition: AliVVertex.h:49
virtual Bool_t IsFromVertexerZ() const
Definition: AliVVertex.h:38