]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG0/AliCorrectionMatrix.cxx
First version of ZDC tower visualization.
[u/mrichter/AliRoot.git] / PWG0 / AliCorrectionMatrix.cxx
index 66b704865523838c2f5192dd415e90f3964784f2..6f283d7c0ee871c4c931247ff6cc8323e8a5d4e7 100644 (file)
@@ -160,12 +160,6 @@ void AliCorrectionMatrix::Divide()
   // divides generated by measured to get the correction
   //
 
-//   if (!fhCorr) {
-//     fhCorr = (TH1*)fhGene->Clone("correction");
-//     fhCorr->SetTitle(Form("%s correction",GetTitle()));
-//     fhCorr->Reset();
-//   }
-
   if (!fhMeas || !fhGene || !fhCorr) {
     AliDebug(AliLog::kError, "measured or generated histograms not available");
     return;
@@ -359,9 +353,9 @@ void AliCorrectionMatrix::SetCorrectionToUnity()
   if (!fhCorr)
     return;
 
-  for (Int_t x=1; x<=fhCorr->GetNbinsX(); ++x)
-    for (Int_t y=1; y<=fhCorr->GetNbinsY(); ++y)
-      for (Int_t z=1; z<=fhCorr->GetNbinsZ(); ++z)
+  for (Int_t x=0; x<=fhCorr->GetNbinsX()+1; ++x)
+    for (Int_t y=0; y<=fhCorr->GetNbinsY()+1; ++y)
+      for (Int_t z=0; z<=fhCorr->GetNbinsZ()+1; ++z)
       {
         fhCorr->SetBinContent(x, y, z, 1);
         fhCorr->SetBinError(x, y, z, 0);