StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Example_read_dst_browse.C
1 // $Id: Example_read_dst_browse.C,v 1.8 2006/08/15 21:42:53 jeromel Exp $
2 // $Log: Example_read_dst_browse.C,v $
3 // Revision 1.8 2006/08/15 21:42:53 jeromel
4 // Fix rhic -> rhic.bnl.gov
5 //
6 // Revision 1.7 2000/06/14 19:21:40 kathy
7 // use MainFile input
8 //
9 // Revision 1.6 2000/04/13 21:46:20 kathy
10 // remove loading of libtpc_Tables since l3Track table is now dst_track type from global
11 //
12 // Revision 1.5 2000/04/12 16:13:40 kathy
13 // have changed so that macro loads only table libraries needed instead of all table libraries
14 //
15 // Revision 1.4 2000/01/19 15:46:04 kathy
16 // change default input files to point to ones in /afs/rhic.bnl.gov/star/data/samples
17 //
18 // Revision 1.3 1999/10/07 14:13:10 kathy
19 // changes to Example macros to make them work in dev - mostly changes were correcting input file name
20 //
21 // Revision 1.2 1999/06/07 21:10:36 kathy
22 // fixing up macros - removed or renamed some, fixed others so the default input file is there
23 //
24 // Revision 1.1 1999/06/07 17:31:23 kathy
25 // clean up some macros
26 //
27 // Revision 1.2 1999/05/21 15:33:49 kathy
28 // made sure Log & Id are in each file and also put in standard comment line with name of owner
29 //
30 //=======================================================================
31 // owner: Kathy Turner
32 // what it does: see below
33 //=======================================================================
34 // Example_read_dst_browse.C
35 //
36 // Kathy (6/7/99):
37 // This is an example showing how to read in a ROOT DST file
38 // (created using bfc.C) and then pop a Browser to look at it.
39 // - the Browser reads the WHOLE file for you.
40 // - click on ROOT in Browser
41 // - you can't really do much else here because you haven't loaded
42 // the tree_Maker and set up a chain
43 //
44 //===============================================================
45 {
46 Char_t *MainFile="/afs/rhic.bnl.gov/star/data/samples/gstar.dst.root";
47 
48 gSystem->Load("St_base");
49 
50 gSystem->Load("libglobal_Tables");
51 gSystem->Load("libgen_Tables");
52 gSystem->Load("libsim_Tables");
53 
54 
55 TFile *root_file=0;
56 root_file = new TFile(MainFile,"read");
57 root_file.ls();
58 root_file.Dump();
59 TBrowser browser1;
60 
61 }
62