]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fix bug in graph plotting (keep boards with no track, to avoid shift of points when...
authorpcrochet <pcrochet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 19 Apr 2013 14:38:53 +0000 (14:38 +0000)
committerpcrochet <pcrochet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 19 Apr 2013 14:38:53 +0000 (14:38 +0000)
PWGPP/MUON/lite/AliAnalysisTaskTrigChEff.cxx

index fd48711e981cac39ecbe9ec01711778af3a23ecf..82b91610125cc421afa8b46d3a196900c8906b2c 100644 (file)
@@ -549,7 +549,7 @@ void AliAnalysisTaskTrigChEff::Terminate(Option_t *)
                 histoName += Form("%s%s",trackSel.At(itrackSel)->GetName(),methodSel.At(imethodSel)->GetName());
                 num = (TH1*)GetSum(physSel->At(isel)->GetName(), trigClasses->At(itrig)->GetName(), centrality->At(icent)->GetName(), histoName.Data());
                 if ( ! num ) continue;
-                effGraph = new TGraphAsymmErrors(num, den);
+                effGraph = new TGraphAsymmErrors(num, den, "e0");
                 currName = Form("%s_%s_%s_%s_%s", physSel->At(isel)->GetName(), trigClasses->At(itrig)->GetName(), centrality->At(icent)->GetName(), trackSel.At(itrackSel)->GetName(), methodSel.At(imethodSel)->GetName());
                 effGraph->SetTitle(currName.Data());
 
@@ -650,7 +650,7 @@ void AliAnalysisTaskTrigChEff::Terminate(Option_t *)
           histoName = GetHistoName(baseIndex[itype], kNcounts-1, ich, -1, -1);
           den = (TH1*)fList->FindObject(histoName.Data());
           if ( ! num || ! den ) continue;
-          effGraph = new TGraphAsymmErrors(num, den);
+          effGraph = new TGraphAsymmErrors(num, den, "e0");
           effGraph->GetYaxis()->SetRangeUser(0., 1.1);
           effGraph->GetYaxis()->SetTitle("Efficiency");
           effGraph->GetXaxis()->SetTitle(baseName[itype].Data());