#include #include #include void ReadHistos(const char* file) { cout << ">> Opening file \"" << file << "\"..." << endl; TFile *f = TFile::Open(file); cout << ">> Reading histograms..." << endl; TH1F* hChannel = (TH1F*)f->Get("hChannel"); TH1F* hdPhi = (TH1F*)f->Get("hdPhi"); cout << ">> Drawing histograms..." << endl; TCanvas* c = new TCanvas; c->Divide(2,1); c->cd(1); hChannel->Draw(); c->cd(2); hdPhi->Draw(); }