Marco,
The interface for TSpectrum::Background in the case of 1-d histograms is
only implemented
in the CVS version. See:
http://root.cern.ch/root/htmldoc/TSpectrum.html#TSpectrum:Background
An example is shown in the tutorials peaks.C
If you do not want to move to the CVS version (our next release is
planned for 11 July),
you can use the other function TSpectrum::Background that accepts as
input an array
that can contain your histogram bin contents. See an example of use in
the new Bacground function at
http://root.cern.ch/root/htmldoc/src/TSpectrum.cxx.html#TSpectrum:Background
Rene Brun
Marco Calviani wrote:
> Hi list,
> i have a problem regarding the use of Tspectrum and background
> determination. I'm currently using TSpectrum::Search in order to find
> the peaks of a given spectrum; in addition to this i would like to
> estimate the background of the latter with these instructions:
>
> TSpectrum *s = new TSpectrum();
> int numberiteration=5;
> const char *fondo = s->Background(h,numberiteration,"");
>
> However after a successfully compiling procedure, whenever i try to
> launch the program, it exits with this error:
>
> Background function not yet implemented:
>
> How would it be possible to implement it? Is this different with
> TSpectrum2? (please note that i'm using ROOT version 5.08/00)
>
> Regards,
> Marco Calviani
Received on Sun Jun 25 2006 - 09:11:03 MEST
This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:59 MET