13 const Int_t nbins = 1024;
22 TString file = dir +
"/legacy/spectrum/TSpectrum.root";
26 back->
SetTitle(
"Estimation of background with increasing window");
31 for (i = 0; i < nbins; i++)
39 for (i = 0; i < nbins; i++)
40 d->SetBinContent(i + 1,
source[i]);
41 d->SetLineColor(
kRed);
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
virtual void SetRange(Int_t first=0, Int_t last=0)
Set the viewing range for the axis using bin numbers.
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.
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.
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