15 const Int_t nbinsx = 256;
16 const Int_t nbinsy = 256;
22 for (i=0;i<nbinsx;i++)
25 TString file = dir+
"/spectrum/TSpectrum2.root";
27 auto smooth = (
TH2F*)
f->Get(
"smooth1");
30 for (i = 0; i < nbinsx; i++){
31 for (j = 0; j < nbinsy; j++){
32 source[i][j] = smooth->GetBinContent(i + 1,j + 1);
35 s->SmoothMarkov(source,nbinsx,nbinsx,3);
36 for (i = 0; i < nbinsx; i++){
37 for (j = 0; j < nbinsy; j++)
38 smooth->SetBinContent(i + 1,j + 1, source[i][j]);
40 smooth->Draw(
"SURF2");
R__EXTERN TStyle * gStyle
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
2-D histogram with a float per channel (see TH1 documentation)
Advanced 2-dimensional spectra processing.
const char * Data() const
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...