Skip to content

Commit

Permalink
ATO-260, ATO-240 extract calibration also in case of small statistic.…
Browse files Browse the repository at this point in the history
… 2 level trehsold to accept the time dipendent calibration
  • Loading branch information
miranov25 committed Jul 31, 2015
1 parent 13e6147 commit 144ed54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion TPC/TPCcalib/AliTPCcalibBase.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ TGraphErrors * AliTPCcalibBase::FitSlices(THnSparse *h, Int_t axisDim1, Int_t ax
//
// Fitting slices of the projection(axisDim1,axisDim2) of a sparse histogram
//
const Int_t kMinStat=100;
TF1 funcGaus("funcGaus","gaus");
TH2D * hist = h->Projection(axisDim1, axisDim2);
Double_t *xvec = new Double_t[hist->GetNbinsX()];
Expand All @@ -280,7 +281,7 @@ TGraphErrors * AliTPCcalibBase::FitSlices(THnSparse *h, Int_t axisDim1, Int_t ax
if (nsum==0) break;
if (nsum>minEntries) break;
}
if (nsum<minEntries) continue;
if (nsum<kMinStat) continue;
//
hist->GetXaxis()->SetRange(imin,imax);
projectionHist = hist->ProjectionY("gain",imin,imax);
Expand Down
2 changes: 1 addition & 1 deletion TPC/TPCcalib/AliTPCcalibGainMult.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ AliTPCcalibGainMult::AliTPCcalibGainMult(const Text_t *name, const Text_t *title
// pad region equalization
//
Int_t binsPadEqual[5] = { 400, 400, 4, 5, 20};
Double_t xminPadEqual[5] = { 0.0, 0.0, -0.5, 0, -1.};
Double_t xminPadEqual[5] = { 0.001, 0.001, -0.5, 0, -1.};
Double_t xmaxPadEqual[5] = { 2.0, 2.0, 3.5, 13000, +1};
TString axisNamePadEqual[5] = {"dEdxRatioMax","dEdxRatioTot","padType","mult","dipAngle"};
TString axisTitlePadEqual[5] = {"dEdx_padRegion/mean_dEdx Qmax", "dEdx_padRegion/mean_dEdx Qtot","padType","mult","tan(lambda)"};
Expand Down

0 comments on commit 144ed54

Please sign in to comment.