12 void Background_width() {
14 const Int_t nbins = 1024;
24 TH1F *d1 =
new TH1F(
"d1",
"",nbins,xmin,xmax);
25 TH1F *d2 =
new TH1F(
"d2",
"",nbins,xmin,xmax);
26 TH1F *d3 =
new TH1F(
"d3",
"",nbins,xmin,xmax);
28 back->GetXaxis()->SetRange(1,nbins);
29 back->SetTitle(
"Influence of clipping window width on the estimated background");
34 for (i = 0; i < nbins; i++) source[i]=back->GetBinContent(i + 1);
38 for (i = 0; i < nbins; i++) d1->
SetBinContent(i + 1,source[i]);
42 for (i = 0; i < nbins; i++) source[i]=back->GetBinContent(i + 1);
46 for (i = 0; i < nbins; i++) d2->
SetBinContent(i + 1,source[i]);
50 for (i = 0; i < nbins; i++) source[i]=back->GetBinContent(i + 1);
54 for (i = 0; i < nbins; i++) d3->
SetBinContent(i + 1,source[i]);
THist< 1, float, THistStatContent, THistStatUncertainty > TH1F
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
virtual TObject * Get(const char *namecycle)
Return pointer to object identified by namecycle.
1-D histogram with a float per channel (see TH1 documentation)}
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual void Draw(Option_t *option="")
Draw this histogram with options.
virtual void SetBinContent(Int_t bin, Double_t content)
Set bin content see convention for numbering bins in TH1::GetBin In case the bin number is greater th...
virtual TH1 * Background(const TH1 *hist, Int_t niter=20, Option_t *option="")
One-dimensional background estimation function.
static constexpr double s
Advanced Spectra Processing.
const char * Data() const