How to use given function

char *Background1General(float *spectrum,
                         int size,
                         int number_of_iterations,
                         int direction,
                         int filter_order,
                         bool compton);
}

Before defining this function suppose if i defined the spectrum as:

TSpectrum *s = new TSpectrum();

Now, how can i use the above function?
For eg. in the place of float spectrum, should i write s or what else?
Similarly for the other parameters?

Have a good day!!!


ROOT Version: 6.14
Platform: ubuntu

See the TSpectrum examples.

Note also that the TSpectrum class in ROOT uses modified / improved source code with respect to the original one so, the original Spectrum library manual no longer describes the current TSpectrum class methods well (e.g. the “spectrum” is a “double*” now, the original “Background1General” is not provided under its original name and so on),

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.