23 h->SetTitle(
"Smoothed spectrum for m=3");
25 for (i = 0; i <
nbins; i++) source[i]=h->GetBinContent(i + 1);
26 h->SetAxisRange(1,1024);
31 TH1F *smooth =
new TH1F(
"smooth",
"smooth",nbins,0.,nbins);
36 smooth->
Draw(
"L SAME");
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.
tomato 1-D histogram with a float per channel (see TH1 documentation)}
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
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...
Advanced Spectra Processing.
const char * SmoothMarkov(Double_t *source, Int_t ssize, Int_t averWindow)
One-dimensional markov spectrum smoothing function.
const char * Data() const