]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/hough/AliL3HoughTransformer.cxx
Another bugfix connected to fTrackID histograms
[u/mrichter/AliRoot.git] / HLT / hough / AliL3HoughTransformer.cxx
index 941a9464ff7c84d43de34b2ee51c6472dcf4c7d1..aebd5a1e645208f022676f5bca3b901b9c72acbd 100644 (file)
@@ -102,7 +102,8 @@ void AliL3HoughTransformer::CreateHistograms(Int_t nxbin,Double_t xmin,Double_t
 #ifdef do_mc
   if(fDoMC)
     {
-      Int_t ncells = (nxbin+2)*(nybin+2);
+      AliL3Histogram *hist = fParamSpace[0];
+      Int_t ncells = (hist->GetNbinsX()+2)*(hist->GetNbinsY()+2);
       cout<<"Allocating "<<GetNEtaSegments()*ncells*sizeof(TrackIndex)<<" bytes to fTrackID"<<endl;
       fTrackID = new TrackIndex*[GetNEtaSegments()];
       for(Int_t i=0; i<GetNEtaSegments(); i++)