18 const Int_t nbins = 1024;
26 TString file = dir+
"/spectrum/TSpectrum.root";
29 h->
SetTitle(
"Influence of # of iterations in deconvolution in peak searching");
30 h->GetXaxis()->SetRange(1,nbins);
39 for (i = 0; i < nbins; i++)
source[i]=
h->GetBinContent(i + 1);
43 for (i = 0; i <
nfound; i++) {
46 fPositionX[i] =
h->GetBinCenter(bin);
47 fPositionY[i] =
h->GetBinContent(bin);
51 h->GetListOfFunctions()->Remove(
pm);
55 h->GetListOfFunctions()->Add(
pm);
56 pm->SetMarkerStyle(23);
58 pm->SetMarkerSize(1.3);
62 for (i = 0; i < nbins; i++)
d1->SetBinContent(i + 1,
dest[i]);
66 for (i = 0; i < nbins; i++)
source[i]=
h->GetBinContent(i + 1);
68 for (i = 0; i < nbins; i++)
d2->SetBinContent(i + 1,
dest[i]);
72 for (i = 0; i < nbins; i++)
source[i]=
h->GetBinContent(i + 1);
74 for (i = 0; i < nbins; i++)
d3->SetBinContent(i + 1,
dest[i]);
78 for (i = 0; i < nbins; i++)
source[i]=
h->GetBinContent(i + 1);
80 for (i = 0; i < nbins; i++)
d4->SetBinContent(i + 1,
dest[i]);
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t dest
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.
A PolyMarker is defined by an array on N points in a 2-D space.
Advanced Spectra Processing.
Int_t SearchHighRes(Double_t *source, Double_t *destVector, Int_t ssize, Double_t sigma, Double_t threshold, bool backgroundRemove, Int_t deconIterations, bool markov, Int_t averWindow)
One-dimensional high-resolution peak search function.
Double_t * GetPositionX() const
const char * Data() const