void SearchHR3() {
const Int_t nbins = 1024;
TString file = dir+
"/spectrum/TSpectrum.root";
h->
SetTitle(
"Influence of # of iterations in deconvolution in peak searching");
h->GetXaxis()->SetRange(1,nbins);
for (i = 0; i < nbins; i++) source[i]=
h->GetBinContent(i + 1);
for (i = 0; i < nfound; i++) {
fPositionX[i] =
h->GetBinCenter(bin);
fPositionY[i] =
h->GetBinContent(bin);
}
if (pm) {
h->GetListOfFunctions()->Remove(pm);
delete pm;
}
h->GetListOfFunctions()->Add(pm);
for (i = 0; i < nbins; i++) source[i]=
h->GetBinContent(i + 1);
for (i = 0; i < nbins; i++) source[i]=
h->GetBinContent(i + 1);
for (i = 0; i < nbins; i++) source[i]=
h->GetBinContent(i + 1);
printf("Found %d candidate peaks\n",nfound);
}
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t dest
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
virtual void SetMarkerSize(Size_t msize=1)
Set the marker size.
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 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 TObject * FindObject(const char *name) const
Must be redefined in derived classes.
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