Example to illustrate the background estimator (class TSpectrum2).
{
TString file = dir +
"/legacy/spectrum/TSpectrum2.root";
auto back = (
TH2F *)
f->Get(
"back1");
for (i = 0; i <
nbinsx; i++) {
source[i][
j] = back->GetBinContent(i + 1,
j + 1);
}
}
for (i = 0; i <
nbinsx; i++) {
back->SetBinContent(i + 1,
j + 1,
source[i][
j]);
}
back->Draw("SURF1");
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
R__EXTERN TStyle * gStyle
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
2-D histogram with a float per channel (see TH1 documentation)
Advanced 2-dimensional spectra processing.
@ kBackSuccessiveFiltering
const char * Data() const
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
- Authors
- Miroslav Morhac, Olivier Couet
Definition in file Background_gamma64.C.