]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/Base/AliTPCCorrectionLookupTable.h
MFT track shit tool added
[u/mrichter/AliRoot.git] / TPC / Base / AliTPCCorrectionLookupTable.h
index 4a39a488e6be1edbd0d78f40b189a5f730914dbe..9c0d65db86d27c70b700aa3ea933ec84397ff11d 100644 (file)
@@ -9,6 +9,7 @@
 #include "AliTPCCorrection.h"
 #include <TVectorD.h>
 #include <TMatrixFfwd.h>
+#include <THn.h>
 
 class AliTPCCorrectionLookupTable : public AliTPCCorrection {
 
@@ -23,6 +24,9 @@ public:
   void CreateLookupTable(AliTPCCorrection &tpcCorr, Float_t stepSize=5.);
   void CreateLookupTableSinglePhi(AliTPCCorrection &tpcCorr, Int_t iPhi, Float_t stepSize=5.);
 
+  void CreateLookupTableFromResidualDistortion(THn &resDist);
+  void CreateResidual(AliTPCCorrection *distortion, AliTPCCorrection* correction);
+  
   void MergePhiTables(const char* files);
 
   void   SetFillCorrection(Bool_t fill) { fFillCorrection=fill;   }
@@ -37,6 +41,9 @@ public:
   const TVectorD& GetLimitsPhi() const { return fLimitsPhi; }
   const TVectorD& GetLimitsZ()   const { return fLimitsZ; }
   
+  void SetCorrScaleFactor(Float_t    val) { fCorrScaleFactor = val; }
+  Float_t    GetCorrScaleFactor() const { return fCorrScaleFactor; }
+  
 private:
 
   // sizes of lookup tables
@@ -44,6 +51,9 @@ private:
   Int_t     fNR;                   // number of rows (r) used for lookup table
   Int_t     fNPhi;                 // number of phi slices used for lookup table
   Int_t     fNZ;                   // number of columns (z) used for lookup table
+
+  Float_t   fCorrScaleFactor;      // overall scaling factor for the correction
+  
   Bool_t    fFillCorrection;       // whether to also fill the correction tables
   //
   TVectorD  fLimitsR;              // bin limits in row direction
@@ -75,7 +85,8 @@ private:
                            const Float_t xref[3], Float_t xret[3]);
   AliTPCCorrectionLookupTable(const AliTPCCorrectionLookupTable &corr);
   AliTPCCorrectionLookupTable& operator= (const AliTPCCorrectionLookupTable &corr);
-  ClassDef(AliTPCCorrectionLookupTable,2);  // TPC corrections dumped into a lookup table
+  
+  ClassDef(AliTPCCorrectionLookupTable,3);  // TPC corrections dumped into a lookup table
 };