StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Example_plotTable.C
1 // $Id: Example_plotTable.C,v 1.11 2006/08/15 21:42:51 jeromel Exp $
2 // $Log: Example_plotTable.C,v $
3 // Revision 1.11 2006/08/15 21:42:51 jeromel
4 // Fix rhic -> rhic.bnl.gov
5 //
6 // Revision 1.10 2000/05/09 20:15:42 kathy
7 // transfer obsolete macros to /macros/obsolete; update other macros so that they use standard default inputs plus only few events by default so they'll be easy to run in autoQA macro testing
8 //
9 // Revision 1.9 2000/04/18 20:37:24 kathy
10 // St_DataSet,St_DataSetIter,St_Table classes are nowchanged to TDataSet,TDataSetIter,TTable
11 //
12 // Revision 1.8 2000/04/12 16:13:39 kathy
13 // have changed so that macro loads only table libraries needed instead of all table libraries
14 //
15 // Revision 1.7 2000/01/20 17:03:26 genevb
16 // Need to cast reference pointer now???
17 //
18 // Revision 1.6 2000/01/06 19:35:48 kathy
19 // change to use available xdf file as input
20 //
21 // Revision 1.5 1999/10/07 05:00:29 genevb
22 // Update to work properly with library changes and file changes
23 //
24 // Revision 1.4 1999/06/22 20:38:48 genevb
25 // Changed default table
26 //
27 // Revision 1.3 1999/06/07 17:31:22 kathy
28 // clean up some macros
29 //
30 // Revision 1.2 1999/05/21 15:33:47 kathy
31 // made sure Log & Id are in each file and also put in standard comment line with name of owner
32 //
33 //=======================================================================
34 // owner: Gene Van Buren
35 // what it does: read xdf file, creates ntuple, draws histogram of value
36 //=======================================================================
37 
38 {
39 gSystem->Load("St_base");
40 gSystem->Load("St_Tables");
41 gSystem->Load("xdf2root");
42 gSystem->Load("StUtilities");
43 gSystem->Load("StAnalysisUtilities");
44 St_TableNtuple myNtuple((TTable&) St_dst_v0_vertex());
45 myNtuple.AddXDFFile("/afs/rhic.bnl.gov/star/data/samples/gstar.dst.root",
46 "dst","dst_v0_vertex");
47 myNtuple.Draw("pos_py:pos_px");
48 }
49 
50 
51 
52 
53 
54 
55 
Definition: TTable.h:48