*/
-
+#include "AliTPCcalibDB.h"
#include "TLinearFitter.h"
#include "Riostream.h"
#include "TList.h"
// qMax - cluster max charge - cl-.GetMax()
// threshold - clusterer threshold
//
- AliTPCClusterParam * clparam = AliTPCClusterParam::Instance();
+ AliTPCClusterParam * clparam = AliTPCcalibDB::Instance()->GetClusterParam();
+ if (!clparam) {
+ AliFatal("TPC OCDB not initialized");
+ return 0;
+ }
Int_t padtype=0;
if (sector>=36) padtype = (padrow>64)?2:1;
Double_t padwidth=(padtype==0)? 0.4:0.6;
Double_t xrow = AliTPCROC::Instance()->GetPadRowRadii(sector,padrow);
Double_t ymax = TMath::Tan(TMath::Pi()/18.)*xrow;
Double_t dedge = ymax-TMath::Abs(y);
- if (dedge-params[2]<0) return 0;
+ if (dedge-params[1]<0) return 0;
if (dedge>10.*params[1]) return 1;
- result = 1.-TMath::Exp(-params[0]*(dedge-params[2]));
+ result = 1.-TMath::Exp(-params[0]*(dedge-params[1]));
return result;
}
//
for (Int_t isec=0;isec<36;isec++){
TMatrixD * mat1 = (TMatrixD*)(sideAPar.At(isec));
- TMatrixD * mat1Covar = (TMatrixD*)(sideCPar.At(isec));
+ TMatrixD * mat1Covar = (TMatrixD*)(sideACov.At(isec));
if (!mat1) continue;
TMatrixD * mat0 = (TMatrixD*)(fArraySectorIntParam.At(isec));
TMatrixD * mat0Covar = (TMatrixD*)(fArraySectorIntCovar.At(isec));
}
-Double_t AliTPCPointCorrection::GetCorrectionSector(Int_t coord, Int_t sector, Double_t lx, Double_t ly, Double_t lz, Int_t quadrant){
+Double_t AliTPCPointCorrection::GetCorrectionSector(Int_t coord, Int_t sector, Double_t lx, Double_t ly, Double_t /*lz*/, Int_t quadrant){
//
// Get position correction for given sector
//
-Double_t AliTPCPointCorrection::GetCorrection(Int_t coord, Int_t sector, Double_t lx, Double_t ly, Double_t lz){
+Double_t AliTPCPointCorrection::GetCorrection(Int_t coord, Int_t sector, Double_t lx, Double_t ly, Double_t /*lz*/){
//
// Get position correction for given sector
//