workaround for bug https://savannah.cern.ch/bugs/index.php?56116
authorrvernet <rvernet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 25 Sep 2009 17:17:33 +0000 (17:17 +0000)
committerrvernet <rvernet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 25 Sep 2009 17:17:33 +0000 (17:17 +0000)
CORRFW/AliCFGridSparse.cxx

index a72e160..3641f66 100755 (executable)
@@ -448,8 +448,9 @@ void AliCFGridSparse::Divide(const AliCFGridSparse* aGrid, Double_t c)
   
   if (!fSumW2  && aGrid->GetSumW2()) SumW2();
 
-  THnSparse *h = aGrid->GetGrid();
-  fData->Divide(h);
+  THnSparse *h1 = aGrid->GetGrid();
+  THnSparse *h2 = (THnSparse*)fData->Clone();
+  fData->Divide(h2,h1);
   fData->Scale(c);
 }