00001 // $Id: Example_read_dst_browse.C,v 1.8 2006/08/15 21:42:53 jeromel Exp $ 00002 // $Log: Example_read_dst_browse.C,v $ 00003 // Revision 1.8 2006/08/15 21:42:53 jeromel 00004 // Fix rhic -> rhic.bnl.gov 00005 // 00006 // Revision 1.7 2000/06/14 19:21:40 kathy 00007 // use MainFile input 00008 // 00009 // Revision 1.6 2000/04/13 21:46:20 kathy 00010 // remove loading of libtpc_Tables since l3Track table is now dst_track type from global 00011 // 00012 // Revision 1.5 2000/04/12 16:13:40 kathy 00013 // have changed so that macro loads only table libraries needed instead of all table libraries 00014 // 00015 // Revision 1.4 2000/01/19 15:46:04 kathy 00016 // change default input files to point to ones in /afs/rhic.bnl.gov/star/data/samples 00017 // 00018 // Revision 1.3 1999/10/07 14:13:10 kathy 00019 // changes to Example macros to make them work in dev - mostly changes were correcting input file name 00020 // 00021 // Revision 1.2 1999/06/07 21:10:36 kathy 00022 // fixing up macros - removed or renamed some, fixed others so the default input file is there 00023 // 00024 // Revision 1.1 1999/06/07 17:31:23 kathy 00025 // clean up some macros 00026 // 00027 // Revision 1.2 1999/05/21 15:33:49 kathy 00028 // made sure Log & Id are in each file and also put in standard comment line with name of owner 00029 // 00030 //======================================================================= 00031 // owner: Kathy Turner 00032 // what it does: see below 00033 //======================================================================= 00034 // Example_read_dst_browse.C 00035 // 00036 // Kathy (6/7/99): 00037 // This is an example showing how to read in a ROOT DST file 00038 // (created using bfc.C) and then pop a Browser to look at it. 00039 // - the Browser reads the WHOLE file for you. 00040 // - click on ROOT in Browser 00041 // - you can't really do much else here because you haven't loaded 00042 // the tree_Maker and set up a chain 00043 // 00044 //=============================================================== 00045 { 00046 Char_t *MainFile="/afs/rhic.bnl.gov/star/data/samples/gstar.dst.root"; 00047 00048 gSystem->Load("St_base"); 00049 00050 gSystem->Load("libglobal_Tables"); 00051 gSystem->Load("libgen_Tables"); 00052 gSystem->Load("libsim_Tables"); 00053 00054 00055 TFile *root_file=0; 00056 root_file = new TFile(MainFile,"read"); 00057 root_file.ls(); 00058 root_file.Dump(); 00059 TBrowser browser1; 00060 00061 } 00062
1.5.9