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