Example to illustrate the background estimator (class TSpectrum).
void Background_incr() {
const Int_t nbins = 1024;
back->
SetTitle(
"Estimation of background with increasing window");
for (i = 0; i < nbins; i++) source[i] = back->
GetBinContent(i + 1);
for (i = 0; i < nbins; i++)
d->SetBinContent(i + 1,source[i]);
}
virtual void SetRange(Int_t first=0, Int_t last=0)
Set the viewing range for the axis from bin first to last.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
1-D histogram with a float per channel (see TH1 documentation)}
virtual void SetTitle(const char *title)
See GetStatOverflows for more information.
TAxis * GetXaxis()
Get the behaviour adopted by the object about the statoverflows. See EStatOverflows for more informat...
virtual void Draw(Option_t *option="")
Draw this histogram with options.
virtual Double_t GetBinContent(Int_t bin) const
Return content of bin number bin.
Advanced Spectra Processing.
static constexpr double s
- Authors
- Miroslav Morhac, Olivier Couet
Definition in file Background_incr.C.