*/
-
+#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;
}