36 Int_t GetUnID(
void) {
return ++nID ; }
53 virtual ~TableTest() ;
57 TGTable *GetTable() {
return fTable; }
65 :
TGMainFrame(p, w, h), fNTableRows(ntrows), fNTableColumns(ntcols),
69 Connect(
"CloseWindow()",
"TableTest",
this,
"DoExit()") ;
73 fFile =
new TFile(
"$ROOTSYS/tutorials/hsimple.root");
75 if (!fFile || fFile->IsZombie()) {
76 printf(
"Please run <ROOT location>/tutorials/hsimple.C first.");
85 TString varexp =
"px:py:pz:random:sin(px):log(px/py):log(pz)";
94 fTable =
new TGTable(
this, fIDs.GetUnID(), fInterface, fNTableRows,
99 SetWindowName(
"Tree Table Test") ;
102 Resize(GetDefaultWidth()+20, 600) ;
107 TableTest::~TableTest()
115 void TableTest::DoExit()
127 TableTest *
test =
new TableTest(0, ntrows, ntcols, 500, 200);
128 return test->GetTable();
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
#define ClassDef(name, id)
A simple TTree restricted to a list of float variables only.
RooCmdArg Layout(Double_t xmin, Double_t xmax=0.99, Double_t ymin=0.95)
TTreeTableInterface is used to interface to data that is stored in a TTree.
const char * Data() const