
#include <TCanvas.h>
#include <TH1.h>
#include <THashList.h>
#include <TIterator.h>
#include <TList.h>
#include <TObject.h>
#include <TFile.h>
#include <TRandom.h>
#include <TSystem.h>
#include <TFrame.h>
#include <TString.h>

void display_one_histo(){

  
  // The name of the canvas, title, top left coordinates and length (x and y)
  std::cout<<"hello1"<<endl;
  TCanvas* myCanvas = new TCanvas("myCanvas","Graph",300,20,800,700); 
  std::cout<<"hello2"<<endl;
  //myCanvas->SetFillColor(11);
  //myCanvas->GetFrame()->SetFillColor(30);
  //myCanvas->GetFrame()->SetBorderSize(6);
  //myCanvas->GetFrame()->SetBorderMode(-1);
  
  
  TFile *histfile = new TFile("/nfs/farm/g/glast/u05/systests/Gleam/v4r1/AllGamma/linux/AllGammaHistos.root");
  char *qstr= "PARTCOUNTMC";
  TH1 *hpx= (TH1 *)histfile->Get(qstr);
  std::cout<<"hello3"<<endl;
  hpx->Draw();
  std::cout<<"hello4"<<endl;
  myCanvas->Update();

}// end display_one_histo
