1 #ifndef ALITRDCALIBRAVDRIFTLINEARFIT_H
2 #define ALITRDCALIBRAVDRIFTLINEARFIT_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
9 ///////////////////////////////////////////////////////////////////////////////
11 // TRD calibration class for online calibration //
13 ///////////////////////////////////////////////////////////////////////////////
15 //#include "TObjArray.h"
21 class TTreeSRedirector;
23 class AliTRDCalibraVdriftLinearFit : public TObject {
27 AliTRDCalibraVdriftLinearFit();
28 AliTRDCalibraVdriftLinearFit(const AliTRDCalibraVdriftLinearFit &ped);
29 AliTRDCalibraVdriftLinearFit(const TObjArray &obja);
30 virtual ~AliTRDCalibraVdriftLinearFit();
31 virtual Long64_t Merge(const TCollection* list);
32 virtual void Copy(TObject &c) const;
34 AliTRDCalibraVdriftLinearFit& operator = (const AliTRDCalibraVdriftLinearFit &source);
36 void Update(Int_t detector, Float_t tnp, Float_t pars1);
38 void Add(AliTRDCalibraVdriftLinearFit *ped);
39 TH2S *GetLinearFitterHisto(Int_t detector, Bool_t force=kFALSE);
40 Bool_t GetParam(Int_t detector, TVectorD *param);
41 Bool_t GetError(Int_t detector, TVectorD *error);
43 TObjArray *GetPArray() { return &fLinearFitterPArray; };
44 TObjArray *GetEArray() { return &fLinearFitterEArray; };
45 TObjArray GetHistoArray() const { return fLinearFitterHistoArray; };
49 Int_t fVersion; // Version of the object
51 TObjArray fLinearFitterHistoArray; // TObjArray of histo2D for debugging Linear Fitters
52 TObjArray fLinearFitterPArray; // Array of result parameters from linear fitters for the detectors
53 TObjArray fLinearFitterEArray; // Array of result errors from linear fitters for the detectors
56 ClassDef(AliTRDCalibraVdriftLinearFit,1) // Online Vdrift calibration