]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/hough/AliL3Histogram.cxx
Merged HLT tag v1-2 with ALIROOT tag v3-09-Release.
[u/mrichter/AliRoot.git] / HLT / hough / AliL3Histogram.cxx
index b8df4b846fa147fb9e0a12f696dcc88cae572386..35eab6f3f69ebd895c518f36546f850a362738f4 100644 (file)
@@ -1,7 +1,7 @@
-//$Id$
+// @(#) $Id$
 
 // Author: Anders Vestbo <mailto:vestbo@fi.uib.no>
-//*-- Copyright &copy ASV
+//*-- Copyright &copy ALICE HLT Group
 
 #include "AliL3StandardIncludes.h"
 #include "AliL3Logging.h"
@@ -246,12 +246,17 @@ void AliL3Histogram::Draw(Char_t *option)
 #ifdef use_root
   if(!fRootHisto)
     CreateRootHisto();
-  for(Int_t bin=0; bin<fNcells; bin++)
+  
+  for(Int_t xbin=GetFirstXbin(); xbin<=GetLastXbin(); xbin++)
     {
-      fRootHisto->AddBinContent(bin,GetBinContent(bin));
+      for(Int_t ybin=GetFirstYbin(); ybin<=GetLastYbin(); ybin++)
+       {
+         Int_t bin = GetBin(xbin,ybin);
+         fRootHisto->Fill(GetBinCenterX(xbin),GetBinCenterY(ybin),GetBinContent(bin));
+       }
     }
   
-  fRootHisto->SetStats(kFALSE);
+  //fRootHisto->SetStats(kFALSE);
   fRootHisto->Draw(option);
   return;
 #endif