//#include "TString.h" //#include "TInterpreter.h" //#include //#include "TH1.h" //#include "TGraphSmooth.h" //#include "TCanvas.h" //#include "TSystem.h" void read_plot_from_file(std::string filename, int xmax, int ymax) { TFile *f = new TFile(filename.c_str()); f->cd("Event/PerEntryHistograms"); f->ls(); TH1F *h1 = (TH1F*)f->Get("Primary_Energy"); h1->Draw("SAME"); //TH1F *h2 = (TH1F*)f->Get("EnergyLoss"); //h2->Draw("SAME"); f->Close(); }