4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
9 //-------------------------------------------------------------------------
10 // ESD V0 Vertex Class
11 // This class is part of the Event Summary Data set of classes
12 // Origin: Marian Ivanov marian.ivanov@cern.ch
13 //-------------------------------------------------------------------------
16 #include "AliESDV0MIParams.h"
17 #include "AliExternalTrackParam.h"
22 class AliESDV0MI : public AliESDv0 {
24 // friend class AliITStrackerMI;
25 AliESDV0MI(); //constructor
26 Double_t GetSigmaY(); // sigma of y coordinate at vertex posistion
27 Double_t GetSigmaZ(); // sigma of z coordinate at vertex posistion
28 Double_t GetSigmaAP0(); // calculate sigma of Point angle resolution at vertex pos.
29 Double_t GetSigmaD0(); // calculate sigma of position resolution at vertex pos.
30 Double_t GetEffectiveSigmaAP0(); // calculate sigma of point angle resolution at vertex pos. effecive parameterization
31 Double_t GetEffectiveSigmaD0(); // calculate sigma of position resolution at vertex pos.
32 Double_t GetMinimaxSigmaAP0(); // calculate mini-max sigma of point angle resolution
33 Double_t GetMinimaxSigmaD0(); // calculate mini-max sigma of dca resolution
34 Double_t GetLikelihoodAP(Int_t mode0, Int_t mode1); // get likelihood for point angle
35 Double_t GetLikelihoodD(Int_t mode0, Int_t mode1); // get likelihood for DCA
36 Double_t GetLikelihoodC(Int_t mode0, Int_t mode1); // get likelihood for Causality
39 const AliExternalTrackParam *GetParamP() const {return &fParamP;}
40 const AliExternalTrackParam *GetParamM() const {return &fParamM;}
41 static const AliESDV0MIParams & GetParameterization(){return fgkParams;}
42 void SetP(const AliExternalTrackParam & paramp);
43 void SetM(const AliExternalTrackParam & paramd);
44 void SetRp(const Double_t *rp);
45 void SetRm(const Double_t *rm);
46 void UpdatePID(Double_t pidp[5], Double_t pidm[5]);
47 void SetStatus(Int_t status){fStatus=status;}
48 Int_t GetStatus() const {return fStatus;}
49 Float_t GetEffMass(UInt_t p1, UInt_t p2);
50 Float_t GetProb(UInt_t p1, UInt_t p2);
51 void Update(Float_t vertex[3]); //update
52 void SetID(Int_t id){fID =id;}
53 Int_t GetID() const { return fID;}
54 Int_t GetIndex(Int_t i) const {return fIndex[i];}
55 void SetIndex(Int_t i, Int_t ind) {fIndex[i]=ind;}
56 void SetDist1(Double_t d1) {fDist1=d1;}
57 void SetDist2(Double_t d2) {fDist2=d2;}
58 Double_t GetDist1() const {return fDist1;}
59 Double_t GetDist2() const {return fDist2;}
60 Double_t *GetAnglep() {return fAngle;}
61 Double_t GetRr() const {return fRr;}
62 void SetRr(Double_t rr) {fRr=rr;}
63 Double_t *GetPMp() {return fPM;}
64 Double_t *GetPPp() {return fPP;}
65 Double_t *GetXrp() {return fXr;}
66 Double_t GetXr(Int_t i) const {return fXr[i];}
67 Double_t GetDistSigma() const {return fDistSigma;}
68 void SetDistSigma(Double_t ds) {fDistSigma=ds;}
69 Double_t GetDistNorm() const {return fDistNorm;}
70 void SetDistNorm(Double_t ds) {fDistNorm=ds;}
71 Float_t GetChi2Before() const {return fChi2Before;}
72 void SetChi2Before(Float_t cb) {fChi2Before=cb;}
73 Float_t GetChi2After() const {return fChi2After;}
74 void SetChi2After(Float_t ca) {fChi2After=ca;}
75 Float_t GetPointAngle() const {return fPointAngle;}
76 void SetOrder(Int_t i, Int_t ord) {fOrder[i]=ord;}
77 Float_t GetNAfter() const {return fNAfter;}
78 void SetNAfter(Float_t na) {fNAfter=na;}
79 Float_t GetNBefore() const {return fNBefore;}
80 void SetNBefore(Float_t nb) {fNBefore=nb;}
81 void SetLab(Int_t i, Int_t lab) {fLab[i]=lab;}
82 void SetCausality(Float_t pb0, Float_t pb1, Float_t pa0, Float_t pa1);
83 const Float_t * GetCausalityP() const {return fCausality;}
84 void SetClusters(Int_t *clp, Int_t *clm);
85 const Int_t * GetClusters(Int_t i) const {return fClusters[i];}
86 void SetNormDCAPrim(Float_t nd0, Float_t nd1){fNormDCAPrim[0] = nd0; fNormDCAPrim[1]=nd1;}
87 const Float_t *GetNormDCAPrimP() const {return fNormDCAPrim;}
89 AliExternalTrackParam fParamP; // external parameters of positive particle
90 AliExternalTrackParam fParamM; // external parameters of negative particle
91 Float_t fRP[5]; // combined pid positive
92 Float_t fRM[5]; // combined pid positive
93 Int_t fID; // ID number of the V0 in the ESDV0 container
94 Int_t fLab[2]; // MC label of the particle
95 Int_t fIndex[2]; // reconstructed labels of the tracks
96 Int_t fClusters[2][6]; //! its clusters
99 Float_t fNormDCAPrim[2]; // normalize distance to the priary vertex
100 Double_t fDist1; //info about closest distance according closest MC - linear DCA
101 Double_t fDist2; //info about closest distance parabolic DCA
103 Double_t fPP[3]; //momentum positive - according approx at DCA
104 Double_t fPM[3]; //momentum negative
106 Double_t fXr[3]; //rec. position according helix
107 Double_t fAngle[3]; //three angles
108 Double_t fRr; //rec position of the vertex
109 Int_t fStatus; //status
110 Int_t fRow0; // critical layer
111 Int_t fOrder[3]; //order of the vertex
112 // quality information
113 Double_t fDistNorm; //normalized DCA
114 Double_t fDistSigma; //sigma of distance
115 Float_t fCausality[4]; // causality information - see comments in SetCausality
116 Float_t fChi2Before; //chi2 of the tracks before V0
117 Float_t fNBefore; // number of possible points before V0
118 Float_t fChi2After; // chi2 of the tracks after V0
119 Float_t fNAfter; // number of possible points after V0
120 Float_t fPointAngleFi; //point angle fi
121 Float_t fPointAngleTh; //point angle theta
122 Double_t fPointAngle; //point angle full
124 // parameterization coefficients
125 static AliESDV0MIParams fgkParams; // resolution and likelihood parameterization
126 ClassDef(AliESDV0MI,4) // ESD V0 vertex