Example to illustrate the background estimator (class TSpectrum).
void Background_decr() {
const Int_t nbins = 1024;
TH1F *d =
new TH1F(
"d",
"",nbins,xmin,xmax);
TString file = dir+
"/spectrum/TSpectrum.root";
back->SetTitle("Estimation of background with decreasing window");
back->GetXaxis()->SetRange(1,nbins);
for (i = 0; i < nbins; i++) source[i]=back->GetBinContent(i + 1);
}
- Authors
- Miroslav Morhac, Olivier Couet
Definition in file Background_decr.C.