Example to illustrate smoothing using Markov algorithm (class TSpectrum).
void Smoothing() {
const Int_t nbins = 1024;
TH1F *smooth =
new TH1F(
"smooth",
"smooth",nbins,0.,nbins);
s->SmoothMarkov(source,1024,3);
for (i = 0; i < nbins; i++) smooth->
SetBinContent(i + 1,source[i]);
}
- Author
- Miroslav Morhac
Definition in file Smoothing.C.