Dear ROOT expert,
I develop a Qt program that uses ROOT libraries. The problem is I do not understand why the code
int Npics = h2X->ShowPeaks(1,"",0.01);
is understood as
int Npics = h2X->ShowPeaks(1,"",0,01);
I attached a minimal reproducer
code.zip (16.1 KB)
Unzip code.zip. Type “qmake Gammalysis.pro”, then “make” and run it “./Gammalysis”
You should see the following error
./Gammalysis
input_line_31:2:50: error: too many arguments to function call, expected at most 4, have 5
TSpectrum2::StaticSearch((TH1*)0x1fdc410,1,“”,0,01)
/home/pamputt/root-6.14.00/builddir/include/TSpectrum2.h:58:4: note: 'StaticSearch' declared here
static Int_t StaticSearch(const TH1 *hist, Double_t sigma=2, Option_t *option="goff", Double_t threshold=0.05);
Do you have any trick to solve this issue?