1 #ifndef ALIESDCASCADE_H
2 #define ALIESDCASCADE_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
9 //-------------------------------------------------------------------------
10 // ESD Cascade Vertex Class
11 // Implementation of the cascade vertex class
12 // Origin: Christian Kuhn, IReS, Strasbourg, christian.kuhn@ires.in2p3.fr
13 //-------------------------------------------------------------------------
19 class AliExternalTrackParam;
22 class AliESDcascade : public AliESDv0 {
24 enum { kOmegaPlusBar = -3334,
31 AliESDcascade(const AliESDcascade&);
32 AliESDcascade(const AliESDv0 &v0,
33 const AliExternalTrackParam &t, Int_t i);
36 Double_t ChangeMassHypothesis(Double_t &v0q, Int_t code=kXiMinus);
38 Int_t GetPdgCodeXi() const {return fPdgCodeXi;}
39 Double_t GetEffMassXi() const {return fEffMassXi;}
40 Double_t GetChi2Xi() const {return fChi2Xi;}
41 void GetPxPyPz(Double_t &px, Double_t &py, Double_t &pz) const;
42 void GetXYZcascade(Double_t &x, Double_t &y, Double_t &z) const;
43 Double_t GetDcascade(Double_t x0=0.,Double_t y0=0.,Double_t z0=0.) const;
45 void GetBPxPyPz(Double_t &px, Double_t &py, Double_t &pz) const {
46 px=fBachMom[0]; py=fBachMom[1]; pz=fBachMom[2];
49 Int_t GetBindex() const {return fBachIdx;}
50 void SetIndex(Int_t i) {fBachIdx=i;} //for the consistensy with V0
51 Int_t GetIndex() const {return GetBindex();} //for the consistensy with V0
52 void SetDcaXiDaughters(Double_t rDcaXiDaughters=0.);
53 Double_t GetDcaXiDaughters() const {return fDcaXiDaughters;}
54 Double_t GetCascadeCosineOfPointingAngle(Double_t&, Double_t&, Double_t&) const;
56 void GetPosCovXi(Double_t cov[6]) const;
60 Double32_t fEffMassXi; // reconstructed cascade effective mass
61 Double32_t fChi2Xi; // chi2 value
62 Double32_t fDcaXiDaughters; // dca between Xi's daughters
63 Double32_t fPosXi[3]; // cascade vertex position (global)
64 Double32_t fPosCovXi[6]; // covariance matrix of the vertex position
65 Double32_t fBachMom[3]; // bachelor momentum (global)
66 Double32_t fBachMomCov[6]; // covariance matrix of the bachelor momentum.
67 Int_t fPdgCodeXi; // reconstructed cascade type (PDG code)
68 Int_t fBachIdx; // label of the bachelor track
72 AliESDcascade& operator=(const AliESDcascade&);
74 ClassDef(AliESDcascade,5) // reconstructed cascade vertex
78 void AliESDcascade::SetDcaXiDaughters(Double_t rDcaXiDaughters){
79 fDcaXiDaughters=rDcaXiDaughters;