+ Int_t n_patches;
+ if(fAddHistograms)
+ n_patches = 1; //Histograms has been added.
+ else
+ n_patches = NPatches;
+
+ for(Int_t i=0; i<n_patches; i++)
+ {
+ AliL3HoughTransformer *tr = fHoughTransformer[i];
+ for(Int_t j=0; j<fNEtaSegments; j++)
+ {
+ AliL3Histogram *hist = tr->GetHistogram(j);
+ fPeakFinder->SetHistogram(hist);
+ Int_t n=10;
+ Float_t x[10];
+ Float_t y[10];
+ fPeakFinder->FindPeak1(x,y,n);
+ for(Int_t k=0; k<n; k++)
+ {
+ AliL3HoughTrack *track = (AliL3HoughTrack*)fTracks->NextTrack();
+ track->SetTrackParameters(x[k],y[k],1);
+ track->SetEtaIndex(j);
+ }
+ }
+ }
+
+}
+
+void AliL3Hough::Evaluate(Bool_t remove)
+{
+ //Evaluate the tracks, by looking along the road in the raw data.
+ //You may choose to remove the found tracks from the image.
+
+ if(!fTracks)
+ {
+ LOG(AliL3Log::kError,"AliL3Hough::Evaluate","Track array")
+ <<AliL3Log::kHex<<"No tracks to work on "<<(Int_t)fTracks<<ENDLOG;
+ return;
+ }
+
+ if(fEval)
+ {
+ LOG(AliL3Log::kDebug,"AliL3Hough::Evaluate","Evaluate object")
+ <<"Deleting old AliL3HoughEval objects"<<ENDLOG;
+ DeleteEval();
+ }
+
+ fEval = new AliL3HoughEval*[NPatches];