47 void Example_read_hist_file_list_draw_ps(
48 const char* filein=
"Example_read_dst_makehist.root")
55 printf(
"<E> Cannot open input file %s\n",filein) ;
63 TCanvas MyCanvas(
"CanvasName",
"Canvas Title",800,600);
66 gStyle->SetOptStat(111111);
71 gStyle->SetPaperSize(width, height);
74 TPostScript ps(
"Example_read_hist_file_list_draw_ps.ps",111);
83 TList* list = fin->GetListOfKeys() ;
84 if (!list) { printf(
"<E> No keys found in file\n") ; exit(1) ; }
89 while ( key = (TKey*)next() ) {
90 obj = key->ReadObj() ;
91 if ( (strcmp(obj->IsA()->GetName(),
"TProfile")!=0)
92 && (!obj->InheritsFrom(
"TH2"))
93 && (!obj->InheritsFrom(
"TH1")) )
95 printf(
"<W> Object %s is not 1D or 2D histogram : "
96 "will not be converted\n",obj->GetName()) ;
99 printf(
"Histo name:%s title:%s\n",obj->GetName(),obj->GetTitle());
111 cout <<
" finished macro " << endl;