1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
4 ////////////////////////////////////////////////////////////////////////////
5 // AliTPCCorrectionLookupTable class //
6 // Authors: Jens Wiechula //
7 ////////////////////////////////////////////////////////////////////////////
9 #include "AliTPCCorrection.h"
11 #include <TMatrixFfwd.h>
13 class AliTPCCorrectionLookupTable : public AliTPCCorrection {
16 AliTPCCorrectionLookupTable();
17 virtual ~AliTPCCorrectionLookupTable();
19 virtual void GetCorrection(const Float_t x[],const Short_t roc,Float_t dx[]);
20 virtual void GetDistortion(const Float_t x[],const Short_t roc,Float_t dx[]);
22 void CreateLookupTable(AliTPCCorrection &tpcCorr, Float_t stepSize=5.);
27 // sizes of lookup tables
28 Int_t fNR; // number of rows (r) used for lookup table
29 Int_t fNPhi; // number of phi slices used for lookup table
30 Int_t fNZ; // number of columns (z) used for lookup table
32 TVectorD fLimitsRows; // bin limits in row direction
33 TVectorD fLimitsPhiSlices; // bin limits in phi direction
34 TVectorD fLimitsColumns; // bin limits in z direction
36 TMatrixF **fLookUpDxDist; //[fNPhi] Array to store electric field integral (int Er/Ez)
37 TMatrixF **fLookUpDyDist; //[fNPhi] Array to store electric field integral (int Er/Ez)
38 TMatrixF **fLookUpDzDist; //[fNPhi] Array to store electric field integral (int Er/Ez)
41 TMatrixF **fLookUpDxCorr; //[fNPhi] Array to store electric field integral (int Er/Ez)
42 TMatrixF **fLookUpDyCorr; //[fNPhi] Array to store electric field integral (int Er/Ez)
43 TMatrixF **fLookUpDzCorr; //[fNPhi] Array to store electric field integral (int Er/Ez)
47 void SetupDefaultLimits();
49 void GetInterpolation(const Float_t x[],const Short_t roc,Float_t dx[],
50 TMatrixF **mR, TMatrixF **mPhi, TMatrixF **mZ);
52 AliTPCCorrectionLookupTable(const AliTPCCorrectionLookupTable &corr);
53 AliTPCCorrectionLookupTable& operator= (const AliTPCCorrectionLookupTable &corr);
54 ClassDef(AliTPCCorrectionLookupTable,1); // TPC corrections dumped into a lookup table