35 Int_t GetUnID(
void) {
return ++nID ; }
52 virtual ~TableTest() ;
56 TGTable *GetTable() {
return fTable; }
64 :
TGMainFrame(p, w, h), fNTableRows(ntrows), fNTableColumns(ntcols),
68 Connect(
"CloseWindow()",
"TableTest",
this,
"DoExit()") ;
72 fFile =
new TFile(
"cernstaff.root");
74 if (!fFile || fFile->IsZombie()) {
75 printf(
"Please run <ROOT location>/tutorials/tree/cernbuild.C first.");
91 fTable =
new TGTable(
this, fIDs.GetUnID(), fInterface, fNTableRows,
96 SetWindowName(
"Tree Table Test") ;
99 Resize(GetDefaultWidth()+20, 600) ;
104 TableTest::~TableTest()
112 void TableTest::DoExit()
124 TableTest *
test =
new TableTest(0, ntrows, ntcols, 500, 200);
125 return test->GetTable();
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
#define ClassDef(name, id)
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.
A TTree object has a header with a name and a title.
const char * Data() const