Merge branch 'master' into TPCdev
[u/mrichter/AliRoot.git] / STEER / STEER / AliTrackResidualsChi2.h
1 #ifndef ALITRACKRESIDUALSCHI2_H
2 #define ALITRACKRESIDUALSCHI2_H
3
4 //************************************************************************
5 // AliTrackResidualsChi2: derived class (from AliTrackResiduals) which   *
6 // implements a MINUIT minimization of the track residuals chi2.         *
7 //                                                                       *
8 //                                                                       *
9 //************************************************************************
10
11 #include "AliAlignObj.h"
12 #include "AliTrackResiduals.h"
13
14 class AliTrackResidualsChi2 : public AliTrackResiduals {
15
16  public:
17   AliTrackResidualsChi2():AliTrackResiduals() { }
18   AliTrackResidualsChi2(Int_t ntracks):AliTrackResiduals(ntracks) { }
19   AliTrackResidualsChi2(const AliTrackResidualsChi2 &res):AliTrackResiduals(res) { }
20   AliTrackResidualsChi2& operator= (const AliTrackResidualsChi2& res) { ((AliTrackResiduals *)this)->operator=(res); return *this; }
21   virtual ~AliTrackResidualsChi2() { }
22
23   Bool_t Minimize();
24
25   void   Chi2(Int_t & /* npar */, Double_t * /* gin */, Double_t &f, Double_t *par, Int_t /* iflag */);
26
27  protected:
28
29   ClassDef(AliTrackResidualsChi2,1)
30
31 };
32
33 #endif