New version of fit of alternative ExB method (Theo)
[u/mrichter/AliRoot.git] / TRD / AliTRDCalibraExbAltFit.h
CommitLineData
a0bb5615 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;
19class TObjArray;
20class TH2S;
661c7be6 21class TH2;
a0bb5615 22class TTreeSRedirector;
661c7be6 23class TGraphErrors;
a0bb5615 24
25class 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();
661c7be6 40 void FillPEArray2();
a0bb5615 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
2a1a7b36 52 void SetRobustFit(Bool_t robustFit) { fRobustFit = robustFit; };
53
661c7be6 54private:
55 TGraphErrors *DrawMS(const TH2 *const h2, Int_t &nEntries);
a0bb5615 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
2a1a7b36 63 Bool_t fRobustFit; // Robust fit
661c7be6 64 TTreeSRedirector *fDebugStreamer;
65 Short_t fDebugLevel;
2a1a7b36 66
a0bb5615 67
2a1a7b36 68 ClassDef(AliTRDCalibraExbAltFit,2) // Online ExB Calibration
a0bb5615 69
70};
71
72
73
74#endif
75