Separate class for the V0 reconstruction parameters (M.Ivanov)
[u/mrichter/AliRoot.git] / STEER / AliESDV0MI.h
CommitLineData
51ad6848 1#ifndef ALIESDV0MI_H
2#define ALIESDV0MI_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 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//-------------------------------------------------------------------------
14
0703142d 15#include "AliESDv0.h"
c1e38247 16#include "AliESDV0MIParams.h"
51ad6848 17#include "AliExternalTrackParam.h"
51ad6848 18
19class AliESDtrack;
20
c1e38247 21
51ad6848 22class AliESDV0MI : public AliESDv0 {
23public:
7c97ee80 24 // friend class AliITStrackerMI;
51ad6848 25 AliESDV0MI(); //constructor
c1e38247 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
37 //
51ad6848 38 //
81e97e0d 39 const AliExternalTrackParam *GetParamP() const {return &fParamP;}
40 const AliExternalTrackParam *GetParamM() const {return &fParamM;}
c1e38247 41 static const AliESDV0MIParams & GetParameterization(){return fgkParams;}
51ad6848 42 void SetP(const AliExternalTrackParam & paramp);
43 void SetM(const AliExternalTrackParam & paramd);
81e97e0d 44 void SetRp(const Double_t *rp);
45 void SetRm(const Double_t *rm);
51ad6848 46 void UpdatePID(Double_t pidp[5], Double_t pidm[5]);
81e97e0d 47 void SetStatus(Int_t status){fStatus=status;}
48 Int_t GetStatus() const {return fStatus;}
51ad6848 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;}
0703142d 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;}
81e97e0d 82 void SetCausality(Float_t pb0, Float_t pb1, Float_t pa0, Float_t pa1);
83 const Float_t * GetCausalityP() const {return fCausality;}
6605de26 84 void SetClusters(Int_t *clp, Int_t *clm);
85 const Int_t * GetClusters(Int_t i) const {return fClusters[i];}
29641977 86 void SetNormDCAPrim(Float_t nd0, Float_t nd1){fNormDCAPrim[0] = nd0; fNormDCAPrim[1]=nd1;}
c1e38247 87 const Float_t *GetNormDCAPrimP() const {return fNormDCAPrim;}
0703142d 88private:
c1e38247 89 AliExternalTrackParam fParamP; // external parameters of positive particle
90 AliExternalTrackParam fParamM; // external parameters of negative particle
51ad6848 91 Float_t fRP[5]; // combined pid positive
92 Float_t fRM[5]; // combined pid positive
c1e38247 93 Int_t fID; // ID number of the V0 in the ESDV0 container
6605de26 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
51ad6848 97 //
98 //
c1e38247 99 Float_t fNormDCAPrim[2]; // normalize distance to the priary vertex
51ad6848 100 Double_t fDist1; //info about closest distance according closest MC - linear DCA
101 Double_t fDist2; //info about closest distance parabolic DCA
102 //
103 Double_t fPP[3]; //momentum positive - according approx at DCA
104 Double_t fPM[3]; //momentum negative
105 //
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
c1e38247 109 Int_t fStatus; //status
51ad6848 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
81e97e0d 115 Float_t fCausality[4]; // causality information - see comments in SetCausality
51ad6848 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
29641977 122 Double_t fPointAngle; //point angle full
c1e38247 123 //
124 // parameterization coefficients
125 static AliESDV0MIParams fgkParams; // resolution and likelihood parameterization
29641977 126 ClassDef(AliESDV0MI,4) // ESD V0 vertex
51ad6848 127};
128
129
51ad6848 130#endif