36 Int_t GetUnID(
void) {
return ++nID ; }
53 ~TableTest()
override ;
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) ;
107TableTest::~TableTest()
115 void TableTest::DoExit()
127 TableTest *
test =
new TableTest(
nullptr, ntrows, ntcols, 500, 200);
128 return test->GetTable();
#define ClassDefOverride(name, id)
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize MapSubwindows
A ROOT file is composed of a header, followed by consecutive data records (TKey instances) with a wel...
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.
A simple TTree restricted to a list of float variables only.
const char * Data() const
TTreeTableInterface is used to interface to data that is stored in a TTree.
RooCmdArg Layout(double xmin, double xmax=0.99, double ymin=0.95)