Example to illustrate the background estimator (class TSpectrum2).
void Background_synt256() {
for (i=0;i<nbinsx;i++)
auto back = (
TH2F*)
f->Get(
"back3");
for (i = 0; i < nbinsx; i++){
for (j = 0; j < nbinsy; j++){
source[i][j] = back->GetBinContent(i + 1,j + 1);
}
}
s->Background(source,nbinsx,nbinsy,8,8,
for (i = 0; i < nbinsx; i++){
for (j = 0; j < nbinsy; j++)
back->SetBinContent(i + 1,j + 1, source[i][j]);
}
back->Draw("SURF2");
}
R__EXTERN TStyle * gStyle
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
2-D histogram with a float per channel (see TH1 documentation)}
Advanced 2-dimensional spectra processing.
@ kBackSuccessiveFiltering
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
static constexpr double s
- Authors
- Miroslav Morhac, Olivier Couet
Definition in file Background_synt256.C.