e23730c7 |
1 | #ifndef ALIESDCASCADE_H |
2 | #define ALIESDCASCADE_H |
3 | |
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
5 | * See cxx source for full Copyright notice */ |
6 | |
4f679a16 |
7 | /* $Id$ */ |
8 | |
e23730c7 |
9 | //------------------------------------------------------------------------- |
10 | // ESD Cascade Vertex Class |
4f679a16 |
11 | // Implementation of the cascade vertex class |
e23730c7 |
12 | // Origin: Christian Kuhn, IReS, Strasbourg, christian.kuhn@ires.in2p3.fr |
13 | //------------------------------------------------------------------------- |
14 | |
15 | #include <TObject.h> |
16 | #include <TPDGCode.h> |
17 | |
18 | class AliESDtrack; |
19 | class AliESDv0; |
20 | |
21 | #define kXiMinus 3312 |
22 | #define kXiPlusBar -3312 |
23 | #define kOmegaMinus 3334 |
24 | #define kOmegaPlusBar -3334 |
25 | |
26 | class AliESDcascade : public TObject { |
27 | public: |
28 | AliESDcascade(); |
29 | |
30 | Double_t ChangeMassHypothesis(Double_t &v0q, Int_t code=kXiMinus); |
31 | |
32 | Int_t GetPdgCode() const {return fPdgCode;} |
33 | Double_t GetEffMass() const {return fEffMass;} |
34 | Double_t GetChi2() const {return fChi2;} |
35 | void GetPxPyPz(Double_t &px, Double_t &py, Double_t &pz) const; |
36 | void GetXYZ(Double_t &x, Double_t &y, Double_t &z) const; |
37 | Double_t GetD(Double_t x0=0.,Double_t y0=0.,Double_t z0=0.) const; |
38 | |
39 | void GetNPxPyPz(Double_t &px, Double_t &py, Double_t &pz) const { |
40 | px=fV0mom[0][0]; py=fV0mom[0][1]; pz=fV0mom[0][2]; |
41 | } |
42 | Int_t GetNindex() const {return fV0idx[0];} |
43 | void GetPPxPyPz(Double_t &px, Double_t &py, Double_t &pz) const { |
44 | px=fV0mom[1][0]; py=fV0mom[1][1]; pz=fV0mom[1][2]; |
45 | } |
46 | Int_t GetPindex() const {return fV0idx[1];} |
47 | void GetBPxPyPz(Double_t &px, Double_t &py, Double_t &pz) const { |
48 | px=fBachMom[0]; py=fBachMom[1]; pz=fBachMom[2]; |
49 | } |
50 | Int_t GetBindex() const {return fBachIdx;} |
51 | |
52 | protected: |
53 | Int_t fPdgCode; // reconstructed cascade type (PDG code) |
54 | Double_t fEffMass; // reconstructed cascade effective mass |
55 | Double_t fChi2; // chi2 value |
56 | Double_t fPos[3]; // cascade vertex position (global) |
57 | Double_t fPosCov[6]; // covariance matrix of the vertex position |
58 | |
59 | Int_t fV0idx[2]; // indeices of the V0 daughter tracks |
60 | Double_t fV0mom[2][3]; // V0 daughters' momenta (global) |
61 | Double_t fV0momCov[6]; // covariance matrix of the V0 momentum. |
62 | |
63 | Int_t fBachIdx; // label of the bachelor track |
64 | Double_t fBachMom[3]; // bachelor momentum (global) |
65 | Double_t fBachMomCov[6]; // covariance matrix of the bachelor momentum. |
66 | |
67 | ClassDef(AliESDcascade,1) // reconstructed cascade vertex |
68 | }; |
69 | |
70 | #endif |
71 | |
72 | |