]>
Commit | Line | Data |
---|---|---|
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 | ||
36dc3337 | 15 | //#include "TObjArray.h" |
16 | #include "TObject.h" | |
d0569428 | 17 | |
36dc3337 | 18 | //class TVectorD; |
3a0f6479 | 19 | class TObjArray; |
ba94744a | 20 | class THnSparse; |
3a0f6479 | 21 | class TTreeSRedirector; |
22 | ||
23 | class AliTRDCalibraVdriftLinearFit : public TObject { | |
24 | ||
0bc7827a | 25 | public: |
3a0f6479 | 26 | |
27 | AliTRDCalibraVdriftLinearFit(); | |
28 | AliTRDCalibraVdriftLinearFit(const AliTRDCalibraVdriftLinearFit &ped); | |
d0569428 | 29 | AliTRDCalibraVdriftLinearFit(const TObjArray &obja); |
3a0f6479 | 30 | virtual ~AliTRDCalibraVdriftLinearFit(); |
6bbdc11a | 31 | virtual Long64_t Merge(const TCollection* list); |
64942b85 | 32 | virtual void Copy(TObject &c) const; |
3a0f6479 | 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(AliTRDCalibraVdriftLinearFit *ped); | |
ba94744a | 39 | THnSparse *GetLinearFitterHisto(Int_t detector, Bool_t force=kFALSE); |
3a0f6479 | 40 | Bool_t GetParam(Int_t detector, TVectorD *param); |
41 | Bool_t GetError(Int_t detector, TVectorD *error); | |
42 | ||
0bc7827a | 43 | TObjArray *GetPArray() { return &fLinearFitterPArray; }; |
44 | TObjArray *GetEArray() { return &fLinearFitterEArray; }; | |
45 | TObjArray GetHistoArray() const { return fLinearFitterHistoArray; }; | |
3a0f6479 | 46 | |
0bc7827a | 47 | private: |
3a0f6479 | 48 | |
49 | Int_t fVersion; // Version of the object | |
50 | ||
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 | |
54 | ||
ba94744a | 55 | |
3a0f6479 | 56 | ClassDef(AliTRDCalibraVdriftLinearFit,1) // Online Vdrift calibration |
57 | ||
58 | }; | |
59 | ||
60 | ||
61 | ||
62 | #endif | |
ba94744a | 63 |