]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/exa/SetHoughParameters.C
- check for AliRoot features/libs/files and corresponding conditional
[u/mrichter/AliRoot.git] / HLT / exa / SetHoughParameters.C
1 //$Id$
2
3 void SetHoughParameters(AliL3Hough *hough,Char_t *path,Int_t tversion=1)
4 {
5   bool binary = kTRUE;    //binary files input
6   int n_eta_segments=100;
7   double histptmin = 0.5; //mininum pt to find (controls the histogram range)
8
9   int threshold=6000;  //peak threshold
10   int nxbins = 140;
11   int nybins = 150;
12   //Int_t threshold=5000;  //peak threshold
13   //Int_t nxbins = 190;
14   //Int_t nybins = 200;
15   
16   int patch=-1; //-1 -> Hough transform on slices (means adding histograms)
17   
18   hough->SetThreshold(4); //noise threshold on single digits
19   hough->SetTransformerParams(nxbins,nybins,histptmin,patch);
20   hough->SetPeakThreshold(threshold,patch);
21   hough->Init(path,binary,n_eta_segments,kFALSE,tversion);
22 }