13void Deconvolution2_2() {
15 const Int_t nbinsx = 64;
16 const Int_t nbinsy = 64;
22 for (i=0;i<nbinsx;i++)
25 TString file = dir+
"/spectrum/TSpectrum2.root";
27 auto decon=(
TH2F*)
f->Get(
"decon2");
29 for (i=0;i<nbinsx;i++)
31 auto resp=(
TH2F*)
f->Get(
"resp2");
34 for (i = 0; i < nbinsx; i++){
35 for (j = 0; j < nbinsy; j++){
36 source[i][j] = decon->GetBinContent(i + 1,j + 1);
39 for (i = 0; i < nbinsx; i++){
40 for (j = 0; j < nbinsy; j++){
41 response[i][j] = resp->GetBinContent(i + 1,j + 1);
44 s->Deconvolution(source,response,nbinsx,nbinsy,1000,1,1);
45 for (i = 0; i < nbinsx; i++){
46 for (j = 0; j < nbinsy; j++)
47 decon->SetBinContent(i + 1,j + 1, source[i][j]);
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...