Error: cannot open file "TSpectrum.h"

Hello:
I want to search peaks ,but when I use TSpectrum class,there will appear an Error "cannot open file “TSpectrum.h” ".What should I do ? :question: :open_mouth:

   Thanks.

I do not see any problem. For instance the attached example works well for me.

root [0] .x dpeaks.C
Found 10 candidate peaks to fit

dpeaks.C (1.37 KB)

[quote=“couet”]I do not see any problem. For instance the attached example works well for me.

root [0] .x dpeaks.C Found 10 candidate peaks to fit [/quote]
Thanks,I deal with this problem,before I used ubutun 14, Maybe there are some incompatible with ROOT ,when I use ubutun 12 to install and run ROOT,this problem is solved.

      Thanks for your answer!