Skip to content

Commit

Permalink
fix: use full stat. for time-bin test, eliminate bias between VDrift …
Browse files Browse the repository at this point in the history
…graph t and histo t
  • Loading branch information
shahor02 authored and dberzano committed Oct 20, 2016
1 parent dea4425 commit a52d95b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TPC/TPCcalib/AliTPCDcalibRes.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ void AliTPCDcalibRes::FitDrift()
TObjArray arrH;
arrH.SetOwner(kTRUE);
fHVDTimeCorr->FitSlicesY(gs,0,-1,0,"QNR",&arrH);
TH1* hEnt = fHVDTimeCorr->ProjectionX("hEnt",1,ntbins);
TH1* hEnt = fHVDTimeCorr->ProjectionX("hEnt",1,kNTCorrBins);
TH1* hmean = (TH1*)arrH[1];
double tArr[ntbins],dArr[ntbins],deArr[ntbins];
nAcc = 0;
Expand Down Expand Up @@ -503,7 +503,7 @@ void AliTPCDcalibRes::FitDrift()
}
else {
for (int i=0;i<ntbins;i++) {
double tQuery = hEnt->GetBinCenter(i);
double tQuery = hEnt->GetBinCenter(i+1);
if (!GetSmooth1D(tQuery,resve,nAcc,tArr,dArr,deArr,fSigmaTVD,kGaussianKernel,usePol2,kTRUE)) {
AliWarningF("Failed to smooth at point %d out of %d (T=%d)",i,ntbins,int(tQuery));
continue;
Expand Down

0 comments on commit a52d95b

Please sign in to comment.