File indexing completed on 2025-02-23 09:22:40
0001
0002 void plotResults(const char* fname = "polar.root") {
0003
0004 TFile myfile(fname,"READ");
0005 TH1D* histo[12];
0006
0007 for (Int_t j=0; j<12;j++)
0008 histo[j] = (TH1D *) myfile.Get(Form("h%d",j+1));
0009
0010
0011 TCanvas *c1 = new TCanvas("c1","The Pol01 example",1200,900);
0012 gStyle->SetOptStat(0);
0013 c1->Divide(4,3);
0014
0015 for (Int_t j=0; j<12;j++) {
0016 c1->cd(j+1);
0017 histo[j]->ls();
0018 histo[j]->DrawCopy();
0019 }
0020 c1->Update();
0021 }