16 const Int_t nbinsx = 64;
17 const Int_t nbinsy = 64;
23 for (i=0;i<nbinsx;i++)
26 for (i=0;i<nbinsx;i++)
32 auto search = (
TH2F*)
f->Get(
"search3;1");
34 for (i = 0; i < nbinsx; i++){
35 for (j = 0; j < nbinsy; j++){
36 source[i][j] = search->GetBinContent(i + 1,j + 1);
40 printf(
"Found %d candidate peaks\n",nfound);
45 m->SetMarkerStyle(23);
46 m->SetMarkerColor(
kRed);
47 for (i=0;i<nfound;i++) {
48 printf(
"posx= %d, posy= %d, value=%d\n",(
Int_t)(PositionX[i]+0.5), (
Int_t)(PositionY[i]+0.5),
50 m->DrawMarker(PositionX[i],PositionY[i]);
R__EXTERN TStyle * gStyle
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
2-D histogram with a float per channel (see TH1 documentation)}
Advanced 2-dimensional spectra processing.
Double_t * GetPositionY() const
Int_t SearchHighRes(Double_t **source, Double_t **dest, Int_t ssizex, Int_t ssizey, Double_t sigma, Double_t threshold, Bool_t backgroundRemove, Int_t deconIterations, Bool_t markov, Int_t averWindow)
This function searches for peaks in source spectrum It is based on deconvolution method.
Double_t * GetPositionX() const
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
#define dest(otri, vertexptr)