35 Int_t GetUnID(
void) {
return ++nID ; }
47 TTreeTableInterface *fInterface;
50 TableTest(
const TGWindow *p,
UInt_t ntrows,
UInt_t ntcols,
52 ~TableTest()
override ;
56 TGTable *GetTable() {
return fTable; }
57 TTreeTableInterface *GetInterface() {
return fInterface; }
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(
nullptr, ntrows, ntcols, 500, 200);
125 return test->GetTable();
#define ClassDefOverride(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void w
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize MapSubwindows
A file, usually with extension .root, that stores data and code in the form of serialized objects in ...
This class describes layout hints used by the layout classes.
Defines top level windows that interact with the system Window Manager.
Create an array to hold a bunch of numbers.
ROOT GUI Window base class.
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 xmin, double xmax=0.99, double ymin=0.95)