]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliTrackResidualsFast.h
added initialisation of DetectorRecoParam needed by AMORE
[u/mrichter/AliRoot.git] / STEER / AliTrackResidualsFast.h
1 #ifndef ALITRACKRESIDUALSFAST_H
2 #define ALITRACKRESIDUALSFAST_H
3
4 //************************************************************************
5 // AliTrackResidualsFast: derived class (from AliTrackResiduals) which   *
6 // implements a simple linear minimization of the track residuals chi2.  *
7 // The minimization relies on the fact that the alignment parameters     *
8 // (angles and translations) are small.                                  *
9 //                                                                       *
10 //                                                                       *
11 //************************************************************************
12
13 #include "TMatrixDSym.h"
14 #include "TMatrixD.h"
15
16 #include "AliAlignObj.h"
17 #include "AliTrackResiduals.h"
18
19 class AliTrackResidualsFast : public AliTrackResiduals {
20
21  public:
22   AliTrackResidualsFast();
23   AliTrackResidualsFast(Int_t ntracks);
24   AliTrackResidualsFast(const AliTrackResidualsFast &res);
25   AliTrackResidualsFast& operator= (const AliTrackResidualsFast& res);
26   virtual ~AliTrackResidualsFast() { }
27
28   Bool_t Minimize();
29
30  protected:
31
32   void   AddPoints(AliTrackPoint &p, AliTrackPoint &pprime);
33   Bool_t Update();
34
35   Double_t fSum[27]; // Sums used during the chi2 minimization
36   Double_t fSumR;    // Sum of r squared
37
38   ClassDef(AliTrackResidualsFast,1)
39
40 };
41
42 #endif