void read_from_file(){ // Let's open the TFile TFile in_file("my_rootfile.root"); // Get the Histogram out auto h = in_file.Get("my_histogram"); // Draw it auto myCanvas = new TCanvas(); h->DrawClone(); }