]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/AliTRDCalibraExbAltFit.h
Added debug streamer steering from Marian and new tracklet fit from Alex
[u/mrichter/AliRoot.git] / TRD / AliTRDCalibraExbAltFit.h
1 #ifndef ALITRDCALIBRAEXBALTFIT_H
2 #define ALITRDCALIBRAEXBALTFIT_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: AliTRDCalibraExbAltFit.h 46327 2011-01-10 13:29:56Z cblume $ */
8
9 ///////////////////////////////////////////////////////////////////////////////
10 //                                                                           //
11 //  TRD calibration class for online calibration                             //
12 //                                                                           //
13 ///////////////////////////////////////////////////////////////////////////////
14
15 //#include "TObjArray.h"
16 #include "TObject.h"
17
18 //class TVectorD;
19 class TObjArray;
20 class TH2S;
21 class TH2;
22 class TTreeSRedirector;
23 class TGraphErrors;
24
25 class AliTRDCalibraExbAltFit : public TObject {
26
27  public:
28
29   AliTRDCalibraExbAltFit();
30   AliTRDCalibraExbAltFit(const AliTRDCalibraExbAltFit &ped);
31   AliTRDCalibraExbAltFit(const TObjArray &obja);
32   virtual ~AliTRDCalibraExbAltFit();
33   virtual Long64_t Merge(const TCollection* list);
34   virtual void Copy(TObject &c) const;
35
36   AliTRDCalibraExbAltFit& operator = (const  AliTRDCalibraExbAltFit &source);
37
38   void            Update(Int_t detector, Float_t tnp, Float_t pars1);
39   void            FillPEArray();
40   void            FillPEArray2();
41   void            Add(const AliTRDCalibraExbAltFit *ped);
42   TH2S           *GetFitterHisto(Int_t detector, Bool_t force=kFALSE);
43   TH2S           *GetFitterHistoForce(Int_t detector);
44   TH2S           *GetFitterHistoNoForce(Int_t detector) const   { return (TH2S*)fFitterHistoArray.UncheckedAt(detector);};
45   Bool_t          GetParam(Int_t detector, TVectorD *param);
46   Bool_t          GetError(Int_t detector, TVectorD *error);
47
48   TObjArray      *GetPArray()                    { return &fFitterPArray;       };
49   TObjArray      *GetEArray()                    { return &fFitterEArray;       };
50   TObjArray       GetHistoArray() const          { return fFitterHistoArray;    };
51
52   void            SetRobustFit(Bool_t robustFit) { fRobustFit = robustFit;            };
53
54 private:
55   TGraphErrors   *DrawMS(const TH2 *const h2, Int_t &nEntries);
56    
57   Int_t           fVersion;                 // Version of the object
58
59   TObjArray       fFitterHistoArray;  // TObjArray of histo2D for debugging  Fitters
60   TObjArray       fFitterPArray;      // Array of result parameters from  fitters for the detectors
61   TObjArray       fFitterEArray;      // Array of result errors from  fitters for the detectors
62
63   Bool_t          fRobustFit;         // Robust fit
64   TTreeSRedirector *fDebugStreamer;   // debug stream
65   Short_t         fDebugLevel;        // debug level
66
67   
68   ClassDef(AliTRDCalibraExbAltFit,2)  // Online ExB Calibration
69
70 };
71
72
73
74 #endif
75