29 h->SetTitle(
"Influence of # of iterations in deconvolution in peak searching");
30 h->GetXaxis()->SetRange(1,nbins);
32 TH1F *d1 =
new TH1F(
"d1",
"",nbins,xmin,xmax);
33 TH1F *d2 =
new TH1F(
"d2",
"",nbins,xmin,xmax);
34 TH1F *d3 =
new TH1F(
"d3",
"",nbins,xmin,xmax);
35 TH1F *d4 =
new TH1F(
"d4",
"",nbins,xmin,xmax);
39 for (i = 0; i <
nbins; i++) source[i]=h->GetBinContent(i + 1);
43 for (i = 0; i < nfound; i++) {
45 bin = 1 +
Int_t(a + 0.5);
46 fPositionX[i] = h->GetBinCenter(bin);
47 fPositionY[i] = h->GetBinContent(bin);
51 h->GetListOfFunctions()->Remove(pm);
54 pm =
new TPolyMarker(nfound, fPositionX, fPositionY);
55 h->GetListOfFunctions()->Add(pm);
66 for (i = 0; i <
nbins; i++) source[i]=h->GetBinContent(i + 1);
72 for (i = 0; i <
nbins; i++) source[i]=h->GetBinContent(i + 1);
78 for (i = 0; i <
nbins; i++) source[i]=h->GetBinContent(i + 1);
84 printf(
"Found %d candidate peaks\n",nfound);
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)}
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.
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
Double_t * GetPositionX() const
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual TObject * FindObject(const char *name) const
Must be redefined in derived classes.
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...
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
virtual void SetMarkerSize(Size_t msize=1)
Set the marker size.
A PolyMarker is defined by an array on N points in a 2-D space.
Advanced Spectra Processing.
#define dest(otri, vertexptr)
const char * Data() const