14 const Int_t nbins = 4096;
26 TString file = dir+
"/spectrum/TSpectrum.root";
30 back->
SetTitle(
"Influence of clipping window width on the estimated background");
41 for (i = 0; i < nbins; i++)
d1->SetBinContent(i + 1,
source[i]);
49 for (i = 0; i < nbins; i++)
d2->SetBinContent(i + 1,
source[i]);
57 for (i = 0; i < nbins; i++)
d3->SetBinContent(i + 1,
source[i]);
65 for (i = 0; i < nbins; i++)
d4->SetBinContent(i + 1,
source[i]);
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
1-D histogram with a float per channel (see TH1 documentation)
void SetTitle(const char *title) override
Change/set the title.
virtual void SetMaximum(Double_t maximum=-1111)
void Draw(Option_t *option="") override
Draw this histogram with options.
virtual Double_t GetBinContent(Int_t bin) const
Return content of bin number bin.
virtual void SetAxisRange(Double_t xmin, Double_t xmax, Option_t *axis="X")
Set the "axis" range.
Advanced Spectra Processing.
virtual TH1 * Background(const TH1 *hist, Int_t niter=20, Option_t *option="")
One-dimensional background estimation function.
const char * Data() const