Hello everyone,
I tried to use TSpectrum in my code to find peaks in Histograms and wanted to get expose the background.
The problem I experience is that I get error messages of type:
/tmp/cc8t1vYP.o: In function main': Spectrum.cc:(.text+0x3312): undefined reference to
TSpectrum::TSpectrum(int, float)'
collect2: ld returned 1 exit status
My code is simply:
TSpectrum *see = new TSpectrum(2 , 1.7);
Int_t nfound = see->Search( LonePixHist1 , 2 , " " , 50);
I have of course included TSpectrum like :
#include “TSpectrum.h”
and have also tried
#include <TSpectrum.h> .
Does anyone know, what I am doing wrong?
The root version I am using is 5.20.
Thanks in advance,
Stevan