Added support for NEWIO, merged cern-hlt tree, updated to latest track candidate...
[u/mrichter/AliRoot.git] / HLT / exa / SetHoughParameters.C
1 //$Id$
2
3 void SetHoughParameters(AliL3Hough *hough,Char_t *path)
4 {
5   
6   bool binary = kTRUE;    //binary files input
7   int n_eta_segments=100;
8   double histptmin = 0.5; //mininum pt to find (controls the histogram range)
9
10   int threshold=6000;  //peak threshold
11   int nxbins = 140;
12   int nybins = 150;
13   
14   int patch=-1; //-1 -> Hough transform on slices (means adding histograms)
15   
16   hough->SetThreshold(4); //noise threshold on single digits
17   hough->SetTransformerParams(nxbins,nybins,histptmin,patch);
18
19 /*
20   hough->SetTransformerParams(0.068,histptmin,histptmax,20,0);
21   hough->SetTransformerParams(0.043,histptmin,histptmax,23,1);
22   hough->SetTransformerParams(0.03,histptmin,histptmax,25,2);
23   hough->SetTransformerParams(0.02,histptmin,histptmax,25,3);
24   hough->SetTransformerParams(0.016,histptmin,histptmax,30,4);
25   hough->SetTransformerParams(0.012,histptmin,histptmax,30,5);
26 */
27   hough->SetPeakThreshold(threshold,patch);
28   hough->Init(path,binary,n_eta_segments);
29 }