17 const Int_t nbins = 1024;
28 h->
SetTitle(
"High resolution peak searching, number of iterations = 3");
39 nfound =
s->SearchHighRes(source,
dest, nbins, 8, 2,
kTRUE, 3,
kTRUE, 3);
41 for (i = 0; i < nfound; i++) {
53 pm =
new TPolyMarker(nfound, fPositionX, fPositionY);
63 printf(
"Found %d candidate peaks\n",nfound);
64 for( i=0;i<nfound;i++) printf(
"posx= %f, posy= %f\n",fPositionX[i], fPositionY[i]);
virtual Double_t GetBinCenter(Int_t bin) const
Return bin center for 1D histogram.
THist< 1, float, THistStatContent, THistStatUncertainty > TH1F
virtual Double_t GetBinContent(Int_t bin) const
Return content of bin number bin.
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.
1-D histogram with a float per channel (see TH1 documentation)}
virtual TObject * FindObject(const char *name) const
Delete a TObjLink object.
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual void SetRange(Int_t first=0, Int_t last=0)
Set the viewing range for the axis from bin first to last.
virtual void Draw(Option_t *option="")
Draw this histogram with options.
virtual TObject * Remove(TObject *obj)
Remove object from the list.
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.
static constexpr double s
Advanced Spectra Processing.
virtual void Add(TObject *obj)
#define dest(otri, vertexptr)
virtual void SetTitle(const char *title)
Change (i.e.
TList * GetListOfFunctions() const