1 #ifndef ALITRDCALIBRAEXBALTFIT_H
2 #define ALITRDCALIBRAEXBALTFIT_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
7 /* $Id: AliTRDCalibraExbAltFit.h 46327 2011-01-10 13:29:56Z cblume $ */
9 ///////////////////////////////////////////////////////////////////////////////
11 // TRD calibration class for online calibration //
13 ///////////////////////////////////////////////////////////////////////////////
15 //#include "TObjArray.h"
22 class TTreeSRedirector;
25 class AliTRDCalibraExbAltFit : public TObject {
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;
36 AliTRDCalibraExbAltFit& operator = (const AliTRDCalibraExbAltFit &source);
38 void Update(Int_t detector, Float_t tnp, Float_t pars1);
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);
48 TObjArray *GetPArray() { return &fFitterPArray; };
49 TObjArray *GetEArray() { return &fFitterEArray; };
50 TObjArray GetHistoArray() const { return fFitterHistoArray; };
52 void SetRobustFit(Bool_t robustFit) { fRobustFit = robustFit; };
55 TGraphErrors *DrawMS(const TH2 *const h2, Int_t &nEntries);
57 Int_t fVersion; // Version of the object
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
63 Bool_t fRobustFit; // Robust fit
64 TTreeSRedirector *fDebugStreamer; // debug stream
65 Short_t fDebugLevel; // debug level
68 ClassDef(AliTRDCalibraExbAltFit,2) // Online ExB Calibration