]>
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; |
0ca1720e | 20 | class TH2S; |
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(); | |
fe4ee353 | 38 | void Add(const AliTRDCalibraVdriftLinearFit *ped); |
0ca1720e | 39 | TH2S *GetLinearFitterHisto(Int_t detector, Bool_t force=kFALSE); |
fe4ee353 | 40 | TH2S *GetLinearFitterHistoForce(Int_t detector); |
41 | TH2S *GetLinearFitterHistoNoForce(Int_t detector) const { return (TH2S*)fLinearFitterHistoArray.UncheckedAt(detector);}; | |
3a0f6479 | 42 | Bool_t GetParam(Int_t detector, TVectorD *param); |
43 | Bool_t GetError(Int_t detector, TVectorD *error); | |
44 | ||
0bc7827a | 45 | TObjArray *GetPArray() { return &fLinearFitterPArray; }; |
46 | TObjArray *GetEArray() { return &fLinearFitterEArray; }; | |
47 | TObjArray GetHistoArray() const { return fLinearFitterHistoArray; }; | |
3a0f6479 | 48 | |
0bc7827a | 49 | private: |
3a0f6479 | 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 | ||
ba94744a | 57 | |
3a0f6479 | 58 | ClassDef(AliTRDCalibraVdriftLinearFit,1) // Online Vdrift calibration |
59 | ||
60 | }; | |
61 | ||
62 | ||
63 | ||
64 | #endif | |
a5dcf618 | 65 |