]>
Commit | Line | Data |
---|---|---|
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 | ||
4f679a16 | 7 | /* $Id$ */ |
8 | ||
e23730c7 | 9 | //------------------------------------------------------------------------- |
10 | // ESD V0 Vertex Class | |
4f679a16 | 11 | // This class is part of the Event Summary Data set of classes |
d6a49f20 | 12 | // Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch |
13 | // Modified by: Marian Ivanov, CERN, Marian.Ivanov@cern.ch | |
14 | // and Boris Hippolyte,IPHC, hippolyt@in2p3.fr | |
e23730c7 | 15 | //------------------------------------------------------------------------- |
16 | ||
17 | #include <TObject.h> | |
18 | #include <TPDGCode.h> | |
d6a49f20 | 19 | #include "AliESDV0Params.h" |
20 | #include "AliExternalTrackParam.h" | |
e23730c7 | 21 | |
22 | class AliESDv0 : public TObject { | |
23 | public: | |
24 | AliESDv0(); | |
c7bafca9 | 25 | AliESDv0(const AliExternalTrackParam &t1, Int_t i1, |
26 | const AliExternalTrackParam &t2, Int_t i2); | |
e23730c7 | 27 | |
c028b974 | 28 | AliESDv0(const AliESDv0&); |
29 | virtual ~AliESDv0(); | |
c028b974 | 30 | |
e23730c7 | 31 | Double_t ChangeMassHypothesis(Int_t code=kK0Short); |
32 | ||
c028b974 | 33 | Int_t GetPdgCode() const {return fPdgCode;} |
9973a4bf | 34 | Float_t GetEffMass(UInt_t p1, UInt_t p2); |
562dd0b4 | 35 | Double_t GetEffMass() const {return fEffMass;} |
36 | Double_t GetChi2V0() const {return fChi2V0;} | |
c028b974 | 37 | void GetPxPyPz(Double_t &px, Double_t &py, Double_t &pz) const; |
38 | void GetNPxPyPz(Double_t &px, Double_t &py, Double_t &pz) const; | |
39 | void GetPPxPyPz(Double_t &px, Double_t &py, Double_t &pz) const; | |
40 | void GetXYZ(Double_t &x, Double_t &y, Double_t &z) const; | |
b75d63a7 | 41 | Float_t GetD(Double_t x0=0.,Double_t y0=0.,Double_t z0=0.) const; |
c028b974 | 42 | Int_t GetNindex() const {return fNidx;} |
43 | Int_t GetPindex() const {return fPidx;} | |
c028b974 | 44 | void SetDcaV0Daughters(Double_t rDcaV0Daughters=0.); |
562dd0b4 | 45 | Double_t GetDcaV0Daughters() {return fDcaV0Daughters;} |
b75d63a7 | 46 | Float_t GetV0CosineOfPointingAngle(Double_t&, Double_t&, Double_t&) const; |
562dd0b4 | 47 | Double_t GetV0CosineOfPointingAngle() const {return fPointAngle;} |
b75d63a7 | 48 | void SetV0CosineOfPointingAngle(Double_t cpa) {fPointAngle=cpa;} |
49 | void SetOnFlyStatus(Bool_t status){fOnFlyStatus=status;} | |
50 | Bool_t GetOnFlyStatus() const {return fOnFlyStatus;} | |
51 | const AliExternalTrackParam *GetParamP() const {return &fParamP;} | |
52 | const AliExternalTrackParam *GetParamN() const {return &fParamN;} | |
53 | ||
54 | ||
d6a49f20 | 55 | |
56 | // **** The following member functions need to be revised *** | |
57 | ||
074f017b | 58 | void GetPosCov(Double_t cov[6])const ; // getter for the covariance matrix of the V0 position |
d6a49f20 | 59 | Double_t GetSigmaY(); // sigma of y coordinate at vertex posistion |
60 | Double_t GetSigmaZ(); // sigma of z coordinate at vertex posistion | |
61 | Double_t GetSigmaAP0(); // calculate sigma of Point angle resolution at vertex pos. | |
62 | Double_t GetSigmaD0(); // calculate sigma of position resolution at vertex pos. | |
63 | Double_t GetEffectiveSigmaAP0(); // calculate sigma of point angle resolution at vertex pos. effecive parameterization | |
64 | Double_t GetEffectiveSigmaD0(); // calculate sigma of position resolution at vertex pos. | |
65 | Double_t GetMinimaxSigmaAP0(); // calculate mini-max sigma of point angle resolution | |
66 | Double_t GetMinimaxSigmaD0(); // calculate mini-max sigma of dca resolution | |
67 | Double_t GetLikelihoodAP(Int_t mode0, Int_t mode1); // get likelihood for point angle | |
68 | Double_t GetLikelihoodD(Int_t mode0, Int_t mode1); // get likelihood for DCA | |
69 | Double_t GetLikelihoodC(Int_t mode0, Int_t mode1); // get likelihood for Causality | |
70 | // | |
71 | // | |
d6a49f20 | 72 | static const AliESDV0Params & GetParameterization(){return fgkParams;} |
b75d63a7 | 73 | void SetParamP(const AliExternalTrackParam & paramP) {fParamP = paramP;} |
74 | void SetParamN(const AliExternalTrackParam & paramN) {fParamN = paramN;} | |
d6a49f20 | 75 | void SetStatus(Int_t status){fStatus=status;} |
76 | Int_t GetStatus() const {return fStatus;} | |
b75d63a7 | 77 | Int_t GetIndex(Int_t i) const {return (i==0) ? fNidx : fPidx;} |
78 | void SetIndex(Int_t i, Int_t ind) {(i==0) ? (fNidx=ind) : (fPidx=ind);} | |
d6a49f20 | 79 | Double_t *GetAnglep() {return fAngle;} |
80 | Double_t GetRr() const {return fRr;} | |
d6a49f20 | 81 | Double_t GetDistSigma() const {return fDistSigma;} |
82 | void SetDistSigma(Double_t ds) {fDistSigma=ds;} | |
d6a49f20 | 83 | Float_t GetChi2Before() const {return fChi2Before;} |
84 | void SetChi2Before(Float_t cb) {fChi2Before=cb;} | |
85 | Float_t GetChi2After() const {return fChi2After;} | |
86 | void SetChi2After(Float_t ca) {fChi2After=ca;} | |
d6a49f20 | 87 | Float_t GetNAfter() const {return fNAfter;} |
562dd0b4 | 88 | void SetNAfter(Short_t na) {fNAfter=na;} |
89 | Short_t GetNBefore() const {return fNBefore;} | |
90 | void SetNBefore(Short_t nb) {fNBefore=nb;} | |
d6a49f20 | 91 | void SetCausality(Float_t pb0, Float_t pb1, Float_t pa0, Float_t pa1); |
562dd0b4 | 92 | const Double_t * GetCausalityP() const {return fCausality;} |
d6a49f20 | 93 | void SetClusters(Int_t *clp, Int_t *clm); |
94 | const Int_t * GetClusters(Int_t i) const {return fClusters[i];} | |
95 | void SetNormDCAPrim(Float_t nd0, Float_t nd1){fNormDCAPrim[0] = nd0; fNormDCAPrim[1]=nd1;} | |
562dd0b4 | 96 | const Double_t *GetNormDCAPrimP() const {return fNormDCAPrim;} |
d6a49f20 | 97 | |
98 | protected: | |
562dd0b4 | 99 | AliExternalTrackParam fParamN; // external parameters of negative particle |
100 | AliExternalTrackParam fParamP; // external parameters of positive particle | |
101 | ||
102 | // CKBrev: tkink about revision | |
c028b974 | 103 | |
562dd0b4 | 104 | Double32_t fEffMass; // reconstructed V0's effective mass |
105 | Double32_t fDcaV0Daughters; // dca between V0's daughters | |
106 | Double32_t fChi2V0; // V0's chi2 value | |
107 | Double32_t fPos[3]; // V0's position (global) | |
108 | Double32_t fPosCov[6]; // covariance matrix of the vertex position | |
109 | Double32_t fNmom[3]; // momentum of the negative daughter (global) | |
110 | Double32_t fPmom[3]; // momentum of the positive daughter (global) | |
111 | Double32_t fNormDCAPrim[2]; // normalize distance to the priary vertex CKBrev | |
112 | Double32_t fRr; //rec position of the vertex CKBrev | |
113 | Double32_t fDistSigma; //sigma of distance CKBrev | |
114 | Double32_t fChi2Before; //chi2 of the tracks before V0 CKBrev | |
115 | Double32_t fChi2After; // chi2 of the tracks after V0 CKBrev | |
b75d63a7 | 116 | |
e23730c7 | 117 | |
562dd0b4 | 118 | Double32_t fCausality[4]; //[0,1,8] causality information - see comments in SetCausality CKBrev |
119 | Double32_t fAngle[3]; //[-2*pi,2*pi,16]three angles CKBrev | |
120 | Double32_t fPointAngleFi; //[-1,1,16]point angle fi CKBrev | |
121 | Double32_t fPointAngleTh; //[-1,1,16]point angle theta CKBrev | |
122 | Double32_t fPointAngle; //[-1,1,16] cosine of the pointing angle | |
123 | ||
124 | ||
125 | Int_t fPdgCode; // reconstructed V0's type (PDG code) | |
126 | Int_t fClusters[2][6]; //! its clusters CKBrev | |
b75d63a7 | 127 | Int_t fNidx; // index of the negative daughter |
b75d63a7 | 128 | Int_t fPidx; // index of the positive daughter |
e23730c7 | 129 | |
e23730c7 | 130 | |
d6a49f20 | 131 | |
562dd0b4 | 132 | Short_t fStatus; //status CKBrev |
133 | Short_t fNBefore; // number of possible points before V0 CKBrev | |
134 | Short_t fNAfter; // number of possible points after V0 CKBrev | |
135 | ||
136 | Bool_t fOnFlyStatus; // if kTRUE, then this V0 is recontructed | |
137 | // "on fly" during the tracking | |
138 | ||
d6a49f20 | 139 | // |
140 | // parameterization coefficients | |
562dd0b4 | 141 | static const AliESDV0Params fgkParams; //! resolution and likelihood parameterization |
d6a49f20 | 142 | |
143 | private: | |
144 | AliESDv0& operator=(const AliESDv0&); | |
145 | ||
562dd0b4 | 146 | ClassDef(AliESDv0,4) // ESD V0 vertex |
e23730c7 | 147 | }; |
148 | ||
149 | inline | |
150 | void AliESDv0::GetNPxPyPz(Double_t &px, Double_t &py, Double_t &pz) const { | |
151 | px=fNmom[0]; py=fNmom[1]; pz=fNmom[2]; | |
152 | } | |
153 | ||
154 | inline | |
155 | void AliESDv0::GetPPxPyPz(Double_t &px, Double_t &py, Double_t &pz) const { | |
156 | px=fPmom[0]; py=fPmom[1]; pz=fPmom[2]; | |
157 | } | |
158 | ||
dfbf942c | 159 | inline |
c028b974 | 160 | void AliESDv0::SetDcaV0Daughters(Double_t rDcaV0Daughters){ |
161 | fDcaV0Daughters=rDcaV0Daughters; | |
dfbf942c | 162 | } |
163 | ||
e23730c7 | 164 | #endif |