]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - STEER/AliESDcascade.h
Change Float_t to Double32_t
[u/mrichter/AliRoot.git] / STEER / AliESDcascade.h
... / ...
CommitLineData
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
7/* $Id$ */
8
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//-------------------------------------------------------------------------
14
15#include <TObject.h>
16#include <TPDGCode.h>
17#include "AliESDv0.h"
18
19class AliExternalTrackParam;
20
21#define kXiMinus 3312
22#define kXiPlusBar -3312
23#define kOmegaMinus 3334
24#define kOmegaPlusBar -3334
25
26class AliESDcascade : public AliESDv0 {
27
28public:
29 AliESDcascade();
30 AliESDcascade(const AliESDcascade&);
31 AliESDcascade(const AliESDv0 &v0,
32 const AliExternalTrackParam &t, Int_t i);
33 ~AliESDcascade();
34
35 Double_t ChangeMassHypothesis(Double_t &v0q, Int_t code=kXiMinus);
36
37 Int_t GetPdgCodeXi() const {return fPdgCodeXi;}
38 Double_t GetEffMassXi() const {return fEffMassXi;}
39 Double_t GetChi2Xi() const {return fChi2Xi;}
40 void GetPxPyPz(Double_t &px, Double_t &py, Double_t &pz) const;
41 void GetXYZcascade(Double_t &x, Double_t &y, Double_t &z) const;
42 Double_t GetDcascade(Double_t x0=0.,Double_t y0=0.,Double_t z0=0.) const;
43
44 void GetBPxPyPz(Double_t &px, Double_t &py, Double_t &pz) const {
45 px=fBachMom[0]; py=fBachMom[1]; pz=fBachMom[2];
46 }
47
48 Int_t GetBindex() const {return fBachIdx;}
49 void SetIndex(Int_t i) {fBachIdx=i;} //for the consistensy with V0
50 Int_t GetIndex() const {return GetBindex();} //for the consistensy with V0
51 void SetDcaXiDaughters(Double_t rDcaXiDaughters=0.);
52 Double_t GetDcaXiDaughters() const {return fDcaXiDaughters;}
53 Double_t GetCascadeCosineOfPointingAngle(Double_t&, Double_t&, Double_t&) const;
54
55 void GetPosCovXi(Double_t cov[6]) const;
56
57protected:
58 Int_t fPdgCodeXi; // reconstructed cascade type (PDG code)
59 Double32_t fEffMassXi; // reconstructed cascade effective mass
60 Double32_t fChi2Xi; // chi2 value
61 Double32_t fDcaXiDaughters; // dca between Xi's daughters
62 Double32_t fPosXi[3]; // cascade vertex position (global)
63 Double32_t fPosCovXi[6]; // covariance matrix of the vertex position
64
65 Int_t fBachIdx; // label of the bachelor track
66 Double32_t fBachMom[3]; // bachelor momentum (global)
67 Double32_t fBachMomCov[6]; // covariance matrix of the bachelor momentum.
68
69private:
70 AliESDcascade& operator=(const AliESDcascade&);
71
72 ClassDef(AliESDcascade,4) // reconstructed cascade vertex
73};
74
75inline
76void AliESDcascade::SetDcaXiDaughters(Double_t rDcaXiDaughters){
77 fDcaXiDaughters=rDcaXiDaughters;
78}
79
80#endif