]>
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; |
b2277aa2 | 22 | class TString; |
3a0f6479 | 23 | |
24 | class AliTRDCalibraVdriftLinearFit : public TObject { | |
25 | ||
0bc7827a | 26 | public: |
3a0f6479 | 27 | |
28 | AliTRDCalibraVdriftLinearFit(); | |
29 | AliTRDCalibraVdriftLinearFit(const AliTRDCalibraVdriftLinearFit &ped); | |
d0569428 | 30 | AliTRDCalibraVdriftLinearFit(const TObjArray &obja); |
3a0f6479 | 31 | virtual ~AliTRDCalibraVdriftLinearFit(); |
6bbdc11a | 32 | virtual Long64_t Merge(const TCollection* list); |
64942b85 | 33 | virtual void Copy(TObject &c) const; |
3a0f6479 | 34 | |
35 | AliTRDCalibraVdriftLinearFit& operator = (const AliTRDCalibraVdriftLinearFit &source); | |
36 | ||
37 | void Update(Int_t detector, Float_t tnp, Float_t pars1); | |
38 | void FillPEArray(); | |
b2277aa2 | 39 | void SetNameCalibUsed(const char*name) { fNameCalibUsed = name;}; |
40 | const char* GetNameCalibUsed() const { return fNameCalibUsed;}; | |
fe4ee353 | 41 | void Add(const AliTRDCalibraVdriftLinearFit *ped); |
0ca1720e | 42 | TH2S *GetLinearFitterHisto(Int_t detector, Bool_t force=kFALSE); |
fe4ee353 | 43 | TH2S *GetLinearFitterHistoForce(Int_t detector); |
44 | TH2S *GetLinearFitterHistoNoForce(Int_t detector) const { return (TH2S*)fLinearFitterHistoArray.UncheckedAt(detector);}; | |
3a0f6479 | 45 | Bool_t GetParam(Int_t detector, TVectorD *param); |
46 | Bool_t GetError(Int_t detector, TVectorD *error); | |
47 | ||
0bc7827a | 48 | TObjArray *GetPArray() { return &fLinearFitterPArray; }; |
49 | TObjArray *GetEArray() { return &fLinearFitterEArray; }; | |
50 | TObjArray GetHistoArray() const { return fLinearFitterHistoArray; }; | |
2a1a7b36 | 51 | void SetRobustFit(Bool_t robustFit) { fRobustFit = robustFit; }; |
52 | ||
3a0f6479 | 53 | |
0bc7827a | 54 | private: |
3a0f6479 | 55 | |
56 | Int_t fVersion; // Version of the object | |
b2277aa2 | 57 | TString fNameCalibUsed; // Info of the version, subversion, firstrun of the calib used |
3a0f6479 | 58 | |
59 | TObjArray fLinearFitterHistoArray; // TObjArray of histo2D for debugging Linear Fitters | |
60 | TObjArray fLinearFitterPArray; // Array of result parameters from linear fitters for the detectors | |
61 | TObjArray fLinearFitterEArray; // Array of result errors from linear fitters for the detectors | |
2a1a7b36 | 62 | Bool_t fRobustFit; // Robust fit or not |
ba94744a | 63 | |
2a1a7b36 | 64 | ClassDef(AliTRDCalibraVdriftLinearFit,3) // Online Vdrift calibration |
3a0f6479 | 65 | |
66 | }; | |
67 | ||
68 | ||
69 | ||
70 | #endif | |
a5dcf618 | 71 |