]>
Commit | Line | Data |
---|---|---|
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 | ||
15 | //#include "TObjArray.h" | |
16 | #include "TObject.h" | |
17 | ||
18 | //class TVectorD; | |
19 | class TObjArray; | |
20 | class TH2S; | |
21 | class TTreeSRedirector; | |
22 | ||
23 | class AliTRDCalibraVdriftLinearFit : public TObject { | |
24 | ||
25 | public: | |
26 | ||
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; | |
33 | ||
34 | AliTRDCalibraVdriftLinearFit& operator = (const AliTRDCalibraVdriftLinearFit &source); | |
35 | ||
36 | void Update(Int_t detector, Float_t tnp, Float_t pars1); | |
37 | void FillPEArray(); | |
38 | void Add(const AliTRDCalibraVdriftLinearFit *ped); | |
39 | TH2S *GetLinearFitterHisto(Int_t detector, Bool_t force=kFALSE); | |
40 | TH2S *GetLinearFitterHistoForce(Int_t detector); | |
41 | TH2S *GetLinearFitterHistoNoForce(Int_t detector) const { return (TH2S*)fLinearFitterHistoArray.UncheckedAt(detector);}; | |
42 | Bool_t GetParam(Int_t detector, TVectorD *param); | |
43 | Bool_t GetError(Int_t detector, TVectorD *error); | |
44 | ||
45 | TObjArray *GetPArray() { return &fLinearFitterPArray; }; | |
46 | TObjArray *GetEArray() { return &fLinearFitterEArray; }; | |
47 | TObjArray GetHistoArray() const { return fLinearFitterHistoArray; }; | |
48 | ||
49 | private: | |
50 | ||
51 | Int_t fVersion; // Version of the object | |
52 | ||
53 | TObjArray fLinearFitterHistoArray; // TObjArray of histo2D for debugging Linear Fitters | |
54 | TObjArray fLinearFitterPArray; // Array of result parameters from linear fitters for the detectors | |
55 | TObjArray fLinearFitterEArray; // Array of result errors from linear fitters for the detectors | |
56 | ||
57 | ||
58 | ClassDef(AliTRDCalibraVdriftLinearFit,1) // Online Vdrift calibration | |
59 | ||
60 | }; | |
61 | ||
62 | ||
63 | ||
64 | #endif | |
65 |