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) ;
104TableTest::~TableTest()
112 void TableTest::DoExit()
124 TableTest *
test =
new TableTest(0, ntrows, ntcols, 500, 200);
125 return test->GetTable();
#define ClassDef(name, id)
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
const char * Data() const
TTreeTableInterface is used to interface to data that is stored in a TTree.
A TTree represents a columnar dataset.
RooCmdArg Layout(Double_t xmin, Double_t xmax=0.99, Double_t ymin=0.95)