Hi. I am having problems using the TSpectrum::Deconvolution1() implementation. I have a spectrum, y[size] from which I would like to deconvolute the response function, SPR[size]. I have used the following code but this doesn’t seem to work, and I can not find an example of the use of this elsewhere. Can someone give me a few pointers?? Apologies if there is a simple explanatation.
Regards
Ben
This is my code:
const int size = 6000/25;
TH1F *h = new TH1F(“h”,“FADC trace”,size,0,6000);
h->SetContent(y);
//set SPR in an array;
double SPR[size];
for (int j = 0; j Search(h,2,"");
//deconvolute SPR from trace
spec->Deconvolution1(y,SPR, size, 30);
Apologies again, I am attatching a new script with an ASCII input for the spectrum. It seems to be able to identify the peaks, but not deconvolve them.