00001 // $Id: Example_read_hist_file_min_list_draw_ps.C,v 1.4 1999/11/30 20:04:17 kathy Exp $ 00002 // $Log: Example_read_hist_file_min_list_draw_ps.C,v $ 00003 // Revision 1.4 1999/11/30 20:04:17 kathy 00004 // fix Example macros so that they work from .dst.root files or .dst.xdf files & update documentation; also had to change which values printed in *read_dst_print_tables* macro since the names have changed in dst tables 00005 // 00006 // Revision 1.3 1999/11/03 19:03:06 kathy 00007 // changes to default input files and output file names - needed by perl script for testing 00008 // 00009 // Revision 1.2 1999/11/02 22:54:36 kathy 00010 // fixing documentation in macro 00011 // 00012 // Revision 1.1 1999/10/11 17:17:58 kathy 00013 // changed names of some macros to make them more standard; changed default input file to MakeHists since previous no longer existed; combined some macros so that the one example will show all functionality 00014 // 00015 // 00016 //======================================================================= 00017 // owner: Kathy Turner 00018 // what it does: 00019 // Minimal commands to read hist file and list,draw & send to ps 00020 // histogram with known name. 00021 // 00022 // You must first run Example_read_dst_makehist.C to create 00023 // an output *hist.root file (flat file). 00024 // This macro then reads in the histogram file and draws 00025 // histogram h1. 00026 // This will not work for *.hist.root files produced from bfc.C since 00027 // they have a tree directory structure. 00028 //======================================================================= 00029 // 00030 void Example_read_hist_file_min_list_draw_ps() 00031 { 00032 TFile f1("Example_read_dst_makehist.root"); 00033 f1.ls(); 00034 TCanvas MyCanvas("CanvasName","Canvas Title",800,600); 00035 gStyle->SetOptStat(111111); 00036 TPostScript ps("Example_read_hist_file_min_list_draw_ps.ps",111); 00037 h1->Draw(); 00038 ps.Close(); 00039 }
1.5.9