00001 // $Id: Example_plotTable.C,v 1.11 2006/08/15 21:42:51 jeromel Exp $ 00002 // $Log: Example_plotTable.C,v $ 00003 // Revision 1.11 2006/08/15 21:42:51 jeromel 00004 // Fix rhic -> rhic.bnl.gov 00005 // 00006 // Revision 1.10 2000/05/09 20:15:42 kathy 00007 // 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 00008 // 00009 // Revision 1.9 2000/04/18 20:37:24 kathy 00010 // St_DataSet,St_DataSetIter,St_Table classes are nowchanged to TDataSet,TDataSetIter,TTable 00011 // 00012 // Revision 1.8 2000/04/12 16:13:39 kathy 00013 // have changed so that macro loads only table libraries needed instead of all table libraries 00014 // 00015 // Revision 1.7 2000/01/20 17:03:26 genevb 00016 // Need to cast reference pointer now??? 00017 // 00018 // Revision 1.6 2000/01/06 19:35:48 kathy 00019 // change to use available xdf file as input 00020 // 00021 // Revision 1.5 1999/10/07 05:00:29 genevb 00022 // Update to work properly with library changes and file changes 00023 // 00024 // Revision 1.4 1999/06/22 20:38:48 genevb 00025 // Changed default table 00026 // 00027 // Revision 1.3 1999/06/07 17:31:22 kathy 00028 // clean up some macros 00029 // 00030 // Revision 1.2 1999/05/21 15:33:47 kathy 00031 // made sure Log & Id are in each file and also put in standard comment line with name of owner 00032 // 00033 //======================================================================= 00034 // owner: Gene Van Buren 00035 // what it does: read xdf file, creates ntuple, draws histogram of value 00036 //======================================================================= 00037 00038 { 00039 gSystem->Load("St_base"); 00040 gSystem->Load("St_Tables"); 00041 gSystem->Load("xdf2root"); 00042 gSystem->Load("StUtilities"); 00043 gSystem->Load("StAnalysisUtilities"); 00044 St_TableNtuple myNtuple((TTable&) St_dst_v0_vertex()); 00045 myNtuple.AddXDFFile("/afs/rhic.bnl.gov/star/data/samples/gstar.dst.root", 00046 "dst","dst_v0_vertex"); 00047 myNtuple.Draw("pos_py:pos_px"); 00048 } 00049 00050 00051 00052 00053 00054 00055
1.5.9