]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITStrackMI.h
Corrections for gcc 4.0
[u/mrichter/AliRoot.git] / ITS / AliITStrackMI.h
1 #ifndef ALIITSTRACKMI_H
2 #define ALIITSTRACKMI_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 //-------------------------------------------------------------------------
7 //                       ITS Track Class
8 //
9 //        Origin: Marian Ivanov, CERN, Marian.Ivanov@cern.ch 
10 //     dEdx analysis by: Boris Batyunya, JINR, Boris.Batiounia@cern.ch
11 //-------------------------------------------------------------------------
12
13
14 /*****************************************************************************
15  *                          December 18, 2000                                *
16  *  Internal view of the ITS track parametrisation as well as the order of   *
17  *           track parameters are subject for possible changes !             *
18  *  Use GetExternalParameters() and GetExternalCovariance() to access ITS    *
19  *      track information regardless of its internal representation.         *
20  * This formation is now fixed in the following way:                         *
21  *      external param0:   local Y-coordinate of a track (cm)                *
22  *      external param1:   local Z-coordinate of a track (cm)                *
23  *      external param2:   local sine of the track momentum azimuthal angle  *
24  *      external param3:   tangent of the track momentum dip angle           *
25  *      external param4:   1/pt (1/(GeV/c))                                  *
26  *****************************************************************************/
27
28 #include <AliKalmanTrack.h>
29
30 #include "AliITSrecoV2.h"
31 #include "AliITStrackV2.h"
32
33 class AliESDtrack;
34
35 //_____________________________________________________________________________
36 class AliITStrackMI : public AliITStrackV2 {
37   friend class AliITStrackerV2;
38   friend class AliITStrackerMI;
39 public:
40   AliITStrackMI();
41   AliITStrackMI(AliESDtrack& t,Bool_t c=kFALSE) throw (const Char_t *);
42   AliITStrackMI(const AliITStrackMI& t);
43   Int_t GetProlongationFast(Double_t alpha, Double_t xr,Double_t &y, Double_t &z);
44   Int_t UpdateMI(Double_t cy, Double_t cz, Double_t cerry, Double_t cerrz, Double_t chi2,UInt_t i);  
45   Int_t CorrectForMaterial(Double_t d, Double_t x0=21.82);
46
47   void UpdateESDtrack(ULong_t flags);
48
49   void SetReconstructed(Bool_t sr=kTRUE){fReconstructed = sr;}  
50   Bool_t GetReconstructed() const {return fReconstructed;}
51   void SetChi2MIP(Int_t i,Float_t val){fChi2MIP[i]=val;}
52   Float_t GetChi2MIP(Int_t i) const {return fChi2MIP[i];}  
53   void IncrementNSkipped(){fNSkipped++;} // increment by 1 the # of skipped cls
54   Float_t GetNSkipped() const {return fNSkipped;}
55   void IncrementNUsed(){fNUsed++;} // increment by 1 the # of shared clusters
56   Float_t GetNUsed() const {return fNUsed;}
57
58   Int_t Compare(const TObject *o) const;
59   Double_t GetCov33() const {return fC33;} // cov. matrix el. 3,3
60   Double_t GetCov44() const {return fC44;} // cov. matrix el. 4,4
61   Float_t GetDy(Int_t i) const {return fDy[i];}
62   Float_t GetDz(Int_t i) const {return fDz[i];}
63   Float_t GetSigmaY(Int_t i) const {return fSigmaY[i];}
64   Float_t GetSigmaZ(Int_t i) const {return fSigmaZ[i];}
65
66   Double_t GetPredictedChi2MI(Double_t cy, Double_t cz, Double_t cerry, Double_t cerrz) const;
67   Bool_t IsGoldPrimary();
68 protected:
69
70   Float_t fNUsed;                          // number of shared clusters
71   Float_t fNSkipped;                       // number of skipped clusters
72   Float_t fNDeadZone;                     // number of clusters in dead zone
73   Float_t fDeadZoneProbability;          // probability to cross dead zone
74   Bool_t  fReconstructed;                 // reconstructed - accepted flag
75   Float_t fChi2MIP[12];                   // MIP chi squres 
76
77   Float_t fDy[12];           //dy in layer
78   Float_t fDz[12];           //dz in layer
79   Float_t fSigmaY[12];       //sigma y 
80   Float_t fSigmaZ[12];       //sigma z
81   Float_t fNy[6];              //expected size of cluster
82   Float_t fNz[6];              //expected size of cluster
83   Float_t fD[2];            //distance to the vertex
84   Float_t fDnorm[2];        // normalized distance to the vertex
85   Float_t fNormQ[6];        // normalized Q
86   Float_t fExpQ;            // expected Q
87   Float_t fNormChi2[6];     // normalized chi2 
88   Float_t fChi22;           // chi22
89   Float_t fdEdxMismatch;    
90   Bool_t fConstrain;        //indication of the vertex constrain
91   Int_t  fClIndex[6];       //cluster Index
92   Bool_t fGoldV0;           //corresponding gold V0 found
93   ClassDef(AliITStrackMI,1)   //ITS reconstructed track
94 };
95
96 #endif
97
98