Loading [MathJax]/extensions/tex2jax.js
ROOT
6.10/09
Reference Guide
ROOT Home Page
Main Page
Tutorials
User's Classes
+
Namespaces
Namespace List
+
Namespace Members
+
All
<
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
<
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
u
w
x
+
Enumerations
a
e
f
g
m
p
t
w
y
+
Enumerator
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
w
+
All Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
x
y
+
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
w
y
+
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Properties
f
+
Related Functions
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Files
File List
+
File Members
+
All
1
2
3
4
5
6
7
8
9
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Enumerations
c
e
f
i
l
m
p
r
u
x
+
Enumerator
a
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
v
w
x
y
z
+
Macros
1
2
3
4
5
6
7
8
9
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
tree
treeviewer
src
TGTreeTable.cxx
Go to the documentation of this file.
1
// Author: Roel Aaij 30/08/2007
2
3
/*************************************************************************
4
* Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
5
* All rights reserved. *
6
* *
7
* For the licensing terms see $ROOTSYS/LICENSE. *
8
* For the list of contributors see $ROOTSYS/README/CREDITS. *
9
*************************************************************************/
10
11
#include "
TGTable.h
"
12
#include "
TClass.h
"
13
#include "
TGWindow.h
"
14
#include "
TGResourcePool.h
"
15
#include "
Riostream.h
"
16
#include "
TSystem.h
"
17
#include "
TImage.h
"
18
#include "
TEnv.h
"
19
#include "
TGToolTip.h
"
20
#include "
TGPicture.h
"
21
#include "
TRandom3.h
"
22
#include "
TTreeTableInterface.h
"
23
#include "
TGTreeTable.h
"
24
25
ClassImp
(
TGTreeTable
)
26
27
/** \class TGTreeTable
28
29
TGTreeTable is a TGTable that owns it's own interface.
30
It can be used to view a TTree. If an expression is given to the
31
constructor, it will be used to define the columns. A selection can
32
also be given. This selection is applied to the TTree as a
33
TEntryList. See the documentation of TGTable for more information
34
35
The interface is accesible after the creation through the
36
GetInterface() method.
37
*/
38
39
////////////////////////////////////////////////////////////////////////////////
40
/// TGTreeTable constructor.
41
42
TGTreeTable
::
TGTreeTable
(
TGWindow
*p,
Int_t
id
,
TTree
*
tree
,
43
const
char
*expression, const
char
*selection,
44
const
char
*option,
UInt_t
nrows,
UInt_t
ncolumns)
45
:
TGTable
(p,
id
, 0, nrows, ncolumns)
46
{
47
TTreeTableInterface
*iface =
new
TTreeTableInterface
(tree, expression,
48
selection, option);
49
SetInterface(iface, nrows, ncolumns);
50
Update();
51
}
52
53
////////////////////////////////////////////////////////////////////////////////
54
/// TGTreeTable destructor.
55
56
TGTreeTable::~TGTreeTable
()
57
{
58
//FIXME this causes a double delete segfault, why???
59
// delete fInterface;
60
}
61
TClass.h
TGTable
Definition:
TGTable.h:34
TGTreeTable
TGTreeTable is a TGTable that owns it's own interface.
Definition:
TGTreeTable.h:19
TGWindow.h
Int_t
int Int_t
Definition:
RtypesCore.h:41
TImage.h
TSystem.h
TGWindow
Definition:
TGWindow.h:32
TGTreeTable::~TGTreeTable
~TGTreeTable()
TGTreeTable destructor.
Definition:
TGTreeTable.cxx:56
UInt_t
unsigned int UInt_t
Definition:
RtypesCore.h:42
TGPicture.h
Riostream.h
ClassImp
#define ClassImp(name)
Definition:
Rtypes.h:336
tree
Definition:
tree.py:1
TTreeTableInterface
TTreeTableInterface is used to interface to data that is stored in a TTree.
Definition:
TTreeTableInterface.h:25
TTree
A TTree object has a header with a name and a title.
Definition:
TTree.h:78
TGToolTip.h
TGTreeTable.h
TGResourcePool.h
TRandom3.h
TEnv.h
TGTable.h
TTreeTableInterface.h