]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
AliJetFlowTools.cxx - use ROOT error propagation by default for histogram operations...
authorrbertens <rbertens@cern.ch>
Wed, 8 Jan 2014 17:12:20 +0000 (18:12 +0100)
committerrbertens <rbertens@cern.ch>
Wed, 8 Jan 2014 17:12:50 +0000 (18:12 +0100)
PWG/FLOW/Tasks/AliJetFlowTools.cxx

index ec6a7f522d7761478ff50001e9f9e300d8a9014d..e2ed0e3ca5db64aff12cd649b0855d289c8b64a3 100644 (file)
@@ -1758,7 +1758,7 @@ TGraphErrors* AliJetFlowTools::GetRatio(TH1 *h1, TH1* h2, TString name, Bool_t a
     gr->GetXaxis()->SetTitle("p_{T} [GeV/c]");
     Double_t binCent(0.), ratio(0.), error2(0.), binWidth(0.);
     TH1* dud((TH1*)h1->Clone("dud"));
     gr->GetXaxis()->SetTitle("p_{T} [GeV/c]");
     Double_t binCent(0.), ratio(0.), error2(0.), binWidth(0.);
     TH1* dud((TH1*)h1->Clone("dud"));
-    if(!dud->Divide(h1, h2)) {
+    if(!dud->Divide(h1, h2, 1., 1., "B")) {
         for(Int_t i(1); i <= h1->GetNbinsX(); i++) {
             binCent = h1->GetXaxis()->GetBinCenter(i);
             if(xmax > 0. && binCent > xmax) continue;
         for(Int_t i(1); i <= h1->GetNbinsX(); i++) {
             binCent = h1->GetXaxis()->GetBinCenter(i);
             if(xmax > 0. && binCent > xmax) continue;