]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/AliTPCPointCorrection.h
Adding class for space point (unlinear correction)
[u/mrichter/AliRoot.git] / TPC / AliTPCPointCorrection.h
1 #ifndef ALITPCPOINTCORRECTION_H
2 #define ALITPCPOINTCORRECTION_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6
7 #include "TNamed.h"
8 #include "TArrayD.h"
9 #include "TObjArray.h"
10 #include "TVectorD.h"
11
12
13  
14 class AliTPCPointCorrection:public TNamed {
15 public:
16   AliTPCPointCorrection(); 
17   AliTPCPointCorrection(const Text_t *name, const Text_t *title);
18   virtual ~AliTPCPointCorrection();
19   //  
20   TVectorD * GetParamOutR(Int_t sector) {return (TVectorD*)fParamsOutR.At(sector);}
21   TVectorD * GetParamOutZ(Int_t sector) {return (TVectorD*)fParamsOutZ.At(sector);}
22   //
23   Double_t      GetDrOut(Bool_t isGlobal, Bool_t type, Double_t cx, Double_t cy, Double_t cz, Int_t sector);
24   Double_t      GetDzOut(Bool_t isGlobal, Bool_t type, Double_t cx, Double_t cy, Double_t cz, Int_t sector);
25
26   static Double_t      SGetDrOut(Bool_t isGlobal, Bool_t type, Double_t cx, Double_t cy, Double_t cz, Int_t sector);
27   static Double_t      SGetDzOut(Bool_t isGlobal, Bool_t type, Double_t cx, Double_t cy, Double_t cz, Int_t sector);
28   
29   static AliTPCPointCorrection* Instance();
30   void SetInstance(AliTPCPointCorrection*param){fgInstance = param;}
31   //
32   Double_t CorrectionOutR0(Bool_t isGlobal, Bool_t type, Double_t cx, Double_t cy, Double_t cz, Int_t sector);
33   Double_t CorrectionOutZ0(Bool_t isGlobal, Bool_t type, Double_t cx, Double_t cy, Double_t cz, Int_t sector);
34   
35 public: 
36   //
37   // Correction out
38   //
39   TObjArray   fParamsOutR;       // Parameters  for radial distortion  - outer field cage
40   TObjArray   fParamsOutZ;       // Parameters  for z      distortion  - outer field cage
41   Int_t       fParamOutRVersion;  // version of the parameterization
42   TObjArray   fErrorsOutR;       // Parameters  for radial distortion  - outer field cage
43   TObjArray   fErrorsOutZ;       // Parameters  for z      distortion  - outer field cage
44   Int_t       fParamOutZVersion;  // version of the parameterization
45   //
46 private:
47   AliTPCPointCorrection(const AliTPCPointCorrection&); 
48   AliTPCPointCorrection& operator=(const AliTPCPointCorrection&); 
49   static AliTPCPointCorrection*   fgInstance; //! Instance of this class (singleton implementation)
50   ClassDef(AliTPCPointCorrection, 1); 
51 };
52
53 #endif
54
55