Installed root6.02/02 yesterday and thought I’d test with some code that worked fine with 5.34.
It did not - I found the problem was with the float array element returned by TSpectrum.
TSpectrum ss = new TSpectrum(1);
Int_t nfound = ss->Search(h,1,“new”,0.2);
xp = (Float_t) ss->GetPositionX();
cout<<“xp=”<<xp<<endl; // in root6 this gives 0, in root 5.34 the position in x of the first peak found.
Could anyone advise me?
(I leave steps and input as an easy working example)
Run84_120MeV_hists.root (185 KB)