New calculation of material budget
[u/mrichter/AliRoot.git] / TRD / AliTRDCalibraVdriftLinearFit.h
CommitLineData
3a0f6479 1#ifndef ALITRDCALIBRAVDRIFTLINEARFIT_H
2#define ALITRDCALIBRAVDRIFTLINEARFIT_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$ */
8
9///////////////////////////////////////////////////////////////////////////////
10// //
11// TRD calibration class for online calibration //
12// //
13///////////////////////////////////////////////////////////////////////////////
14
15class TObjArray;
16class TH2F;
17class TTreeSRedirector;
18
19class AliTRDCalibraVdriftLinearFit : public TObject {
20
21public:
22
23 AliTRDCalibraVdriftLinearFit();
24 AliTRDCalibraVdriftLinearFit(const AliTRDCalibraVdriftLinearFit &ped);
25 virtual ~AliTRDCalibraVdriftLinearFit();
26
27 AliTRDCalibraVdriftLinearFit& operator = (const AliTRDCalibraVdriftLinearFit &source);
28
29 void Update(Int_t detector, Float_t tnp, Float_t pars1);
30 void FillPEArray();
31 void Add(AliTRDCalibraVdriftLinearFit *ped);
32 TH2F *GetLinearFitterHisto(Int_t detector, Bool_t force=kFALSE);
33 Bool_t GetParam(Int_t detector, TVectorD *param);
34 Bool_t GetError(Int_t detector, TVectorD *error);
35
36 TObjArray *GetPArray() { return &fLinearFitterPArray; };
37 TObjArray *GetEArray() { return &fLinearFitterEArray; };
38
39private:
40
41 Int_t fVersion; // Version of the object
42
43 TObjArray fLinearFitterHistoArray; // TObjArray of histo2D for debugging Linear Fitters
44 TObjArray fLinearFitterPArray; // Array of result parameters from linear fitters for the detectors
45 TObjArray fLinearFitterEArray; // Array of result errors from linear fitters for the detectors
46
47public:
48
49 ClassDef(AliTRDCalibraVdriftLinearFit,1) // Online Vdrift calibration
50
51};
52
53
54
55#endif
56