#include #include #include void ReadHistos(const char* file) { cout << ">> Opening file \"" << file << "\"..." << endl; TFile *f = TFile::Open(file); cout << ">> Reading histograms..." << endl; TH1F* histoPxmuon = (TH1F*)f->Get("histoPxmuon"); cout << ">> Drawing histograms..." << endl; histoPxmuon->Draw(); }