Bug Correction
authorskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 24 May 2004 09:00:37 +0000 (09:00 +0000)
committerskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 24 May 2004 09:00:37 +0000 (09:00 +0000)
HBTAN/AliHBTFunction.cxx

index be109bd690be7e3df2f1bde88fed8a1c27fdc3fe..04be138f56b37deaf3b7d4ab3d1ab808c1740796 100644 (file)
@@ -395,8 +395,8 @@ Double_t AliHBTFunction1D::Scale(TH1D* num,TH1D* den)
    {
     if ( num->GetBinContent(i) > 0.0 )
      {
-       densum = fDenominator->GetBinContent(i);
-       numsum = fNumerator->GetBinContent(i);
+       densum += fDenominator->GetBinContent(i);
+       numsum += fNumerator->GetBinContent(i);
      }
    }
   
@@ -589,8 +589,8 @@ Double_t AliHBTFunction2D::Scale()
      {
       if ( fNumerator->GetBinContent(i,j) > 0.0 )
        {
-           densum = fDenominator->GetBinContent(i,j);
-           numsum = fNumerator->GetBinContent(i,j);
+           densum += fDenominator->GetBinContent(i,j);
+           numsum += fNumerator->GetBinContent(i,j);
        }
      }
   
@@ -805,8 +805,8 @@ Double_t AliHBTFunction3D::Scale()
         if ( fNumerator->GetBinContent(i,j,k) > 0.0 )
          {
            
-           densum = fDenominator->GetBinContent(i,j,k);
-           numsum = fNumerator->GetBinContent(i,j,k);
+           densum += fDenominator->GetBinContent(i,j,k);
+           numsum += fNumerator->GetBinContent(i,j,k);
          }
        }