]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliESDv0.h
Compiler Warning removed
[u/mrichter/AliRoot.git] / STEER / AliESDv0.h
CommitLineData
e23730c7 1#ifndef ALIESDV0_H
2#define ALIESDV0_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// ESD V0 Vertex Class
9//
10// Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch
11//-------------------------------------------------------------------------
12
13#include <TObject.h>
14#include <TPDGCode.h>
15
16class AliESDtrack;
17
18class AliESDv0 : public TObject {
19public:
20 AliESDv0();
21
22 Double_t ChangeMassHypothesis(Int_t code=kK0Short);
23
24 Int_t GetPdgCode() const {return fPdgCode;}
25 Double_t GetEffMass() const {return fEffMass;}
26 Double_t GetChi2() const {return fChi2;}
27 void GetPxPyPz(Double_t &px, Double_t &py, Double_t &pz) const;
28 void GetNPxPyPz(Double_t &px, Double_t &py, Double_t &pz) const;
29 void GetPPxPyPz(Double_t &px, Double_t &py, Double_t &pz) const;
30 void GetXYZ(Double_t &x, Double_t &y, Double_t &z) const;
31 Double_t GetD(Double_t x0=0.,Double_t y0=0.,Double_t z0=0.) const;
32 Int_t GetNindex() const {return fNidx;}
33 Int_t GetPindex() const {return fPidx;}
34
35protected:
36 Int_t fPdgCode; // reconstructed V0's type (PDG code)
37 Double_t fEffMass; // reconstructed V0's effective mass
38 Double_t fChi2; // V0's chi2 value
39 Double_t fPos[3]; // V0's position (global)
40 Double_t fPosCov[6]; // covariance matrix of the vertex position
41
42 Int_t fNidx; // index of the negative daughter
43 Double_t fNmom[3]; // momentum of the negative daughter (global)
44 Double_t fNmomCov[6]; // covariance matrix of the negative daughter mom.
45
46 Int_t fPidx; // index of the positive daughter
47 Double_t fPmom[3]; // momentum of the positive daughter (global)
48 Double_t fPmomCov[6]; // covariance matrix of the positive daughter mom.
49
50 ClassDef(AliESDv0,1) // ESD V0 vertex
51};
52
53inline
54void AliESDv0::GetNPxPyPz(Double_t &px, Double_t &py, Double_t &pz) const {
55px=fNmom[0]; py=fNmom[1]; pz=fNmom[2];
56}
57
58inline
59void AliESDv0::GetPPxPyPz(Double_t &px, Double_t &py, Double_t &pz) const {
60px=fPmom[0]; py=fPmom[1]; pz=fPmom[2];
61}
62
63#endif
64
65