I am trying to plot histograms from 20 root files in five TCanvases (with each TCanvas divided into four).
The all 20 files are opened correctly but the TCanvases fail to divide and I end up displaying only one histogram on each canvas.
PC[i] = new TCanvas(Form("PC%d",i+1),Form("Fitting canvas - %d",i+1),10,10,1000,705);
PC[i]->Divide(1,4); //This divide is not happening
f[i][j] = TFile::Open( Pf[i][j].Data(), "READ" );
A short code snippet is given above and I have attached a running script and a zip file containing 20 small root files that illustrate the problem.