]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliV0vertex.h
Additional include path (Linux icc)
[u/mrichter/AliRoot.git] / ITS / AliV0vertex.h
1 #ifndef ALIV0VERTEX_H
2 #define ALIV0VERTEX_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6
7 //-------------------------------------------------------------------------
8 //                          V0 Vertex Class
9 //
10 //    Origin: Iouri Belikov, IReS, Strasbourg, Jouri.Belikov@cern.ch 
11 //-------------------------------------------------------------------------
12
13 #include <TObject.h>
14 #include "AliPDG.h"
15
16 class AliITStrackV2;
17
18 class AliV0vertex : public TObject {
19 public:
20   AliV0vertex();
21   AliV0vertex(const AliITStrackV2 &neg, const AliITStrackV2 &pos);
22
23   Double_t ChangeMassHypothesis(Int_t code=kK0Short); 
24
25   Int_t GetPdgCode() const {return fPdgCode;}
26   Double_t GetEffMass() const {return fEffMass;}
27   Double_t GetChi2() const {return fChi2;}
28   void GetPxPyPz(Double_t &px, Double_t &py, Double_t &pz) const;
29   void GetNPxPyPz(Double_t &px, Double_t &py, Double_t &pz) const;
30   void GetPPxPyPz(Double_t &px, Double_t &py, Double_t &pz) const;
31   void GetXYZ(Double_t &x, Double_t &y, Double_t &z) const;
32   Double_t GetD(Double_t x0=0.,Double_t y0=0.,Double_t z0=0.) const;
33   Int_t GetNlabel() const {return fNlab;}
34   Int_t GetPlabel() const {return fPlab;}
35
36 private: 
37   Int_t fPdgCode;           // reconstructed V0's type (PDG code)
38   Double_t fEffMass;        // reconstructed V0's effective mass
39   Double_t fChi2;           // V0's chi2 value
40   Double_t fPos[3];         // V0's position (global)
41   Double_t fPosCov[6];      // covariance matrix of the vertex position
42
43   Int_t fNlab;              // label of the negative daughter
44   Double_t fNmom[3];        // momentum of the negative daughter (global)
45   Double_t fNmomCov[6];     // covariance matrix of the negative daughter mom.
46
47   Int_t fPlab;              // label of the positive daughter
48   Double_t fPmom[3];        // momentum of the positive daughter (global)
49   Double_t fPmomCov[6];     // covariance matrix of the positive daughter mom.
50
51   ClassDef(AliV0vertex,1)   // reconstructed V0 vertex
52 };
53
54 inline 
55 void AliV0vertex::GetNPxPyPz(Double_t &px, Double_t &py, Double_t &pz) const {
56 px=fNmom[0]; py=fNmom[1]; pz=fNmom[2];
57 }
58
59 inline 
60 void AliV0vertex::GetPPxPyPz(Double_t &px, Double_t &py, Double_t &pz) const {
61 px=fPmom[0]; py=fPmom[1]; pz=fPmom[2];
62 }
63
64 #endif
65
66