void firstHisto() { //Opening the TFile TFile* in_file = new TFile("Sample Readings.root"); //print data in in_file in_file->ls(); //Create Canvas and draw histogram TCanvas*c1 = new TCanvas(); //Get the histogram out TH1*h1 = (TH1*)in_file->Get("FirstBuffer1;5"); h1->SetLineColor(kBlue); h1->DrawClone(); TH1*h2 = (TH1*)in_file->Get("FirstBuffer1;4"); h2->SetLineColor(kGreen); h2->Draw("same"); //TH1*h3 = (TH1*)in_file->Get("FirstBuffer1;2"); //h3->SetLineColor(kRed); //h3->Draw("same"); // c1->Update(); }