35 Int_t GetUnID(
void) {
return ++nID; }
47 TTreeTableInterface *fInterface;
51 ~TableTest()
override;
55 TGTable *GetTable() {
return fTable; }
56 TTreeTableInterface *GetInterface() {
return fInterface; }
65 Connect(
"CloseWindow()",
"TableTest",
this,
"DoExit()");
69 fFile =
new TFile(
"$ROOTSYS/tutorials/hsimple.root");
71 if (!fFile || fFile->IsZombie()) {
72 printf(
"Please run <ROOT location>/tutorials/hsimple.C first.");
81 TString varexp =
"px:py:pz:random:sin(px):log(px/py):log(pz)";
89 fTable =
new TGTable(
this, fIDs.GetUnID(), fInterface, fNTableRows, fNTableColumns);
93 SetWindowName(
"Tree Table Test");
96 Resize(GetDefaultWidth() + 20, 600);
100TableTest::~TableTest()
108void TableTest::DoExit()
121 TableTest *test =
new TableTest(
nullptr, ntrows, ntcols, 500, 200);
122 return test->GetTable();
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
#define ClassDefOverride(name, id)
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.
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)