Example to illustrate the background estimator (class TSpectrum) including Compton edges.
void Background_smooth() {
const Int_t nbins = 4096;
TH1F *d1 =
new TH1F(
"d1",
"",nbins,xmin,xmax);
TH1F *d2 =
new TH1F(
"d2",
"",nbins,xmin,xmax);
TString file = dir+
"/spectrum/TSpectrum.root";
back->SetTitle("Estimation of background with noise");
back->SetAxisRange(3460,3830);
for (i = 0; i <
nbins; i++) source[i]=back->GetBinContent(i + 1);
for (i = 0; i <
nbins; i++) source[i]=back->GetBinContent(i + 1);
}
- Authors
- Miroslav Morhac, Olivier Couet
Definition in file Background_smooth.C.