ROOT
v6-36
Reference Guide
Loading...
Searching...
No Matches
_tdirectoryfile.pyzdoc
Go to the documentation of this file.
1
\
pythondoc
TDirectoryFile
2
3
In
the
same
way
as
for
TDirectory
, it
is
possible
to inspect
the
content
of
a
4
TDirectoryFile
object
from
Python
as
if
the
subdirectories
and
objects
it
5
contains
were
its
attributes.
For
more
information
,
please
refer
to
the
6
TDirectory
documentation
.
7
8
In
addition
to
the
attribute
syntax
,
one
can
inspect
a
TDirectoryFile
in
Python
9
via
the
`Get`
method
.
In
this
case
,
the
subdirectory
/
object
name
is
specified
10
as
a
string:
11
\code{.py}
12
# Access a subdirectory
13
d
.Get(
'subdir'
)
14
15
# We can go further down in the hierarchy of directories
16
d
.Get(
'subdir/subsubdir'
)
17
18
# Access an object (e.g. a histogram) in the directory
19
d
.Get(
'obj'
)
20
21
# ... or in a subdirectory
22
d
.Get(
'subdir/obj'
)
23
24
# Wrong attribute: returns null
25
x
=
d
.Get(
'wrongAttr'
) #
x
points
to
null
26
\endcode
27
28
Furthermore
,
TDirectoryFile
inherits
a
`WriteObject`
Python
method
from
29
TDirectory
.
Such
method
allows
to write
an
object
into
a
TDirectoryFile
30
with
the
following
syntax
:
31
\code{.py}
32
# Write object obj with identifier 'keyName'
33
d
.WriteObject(obj,
'keyName'
)
34
\
endcode
35
36
\endpythondoc
d
#define d(i)
Definition
RSha256.hxx:102
a
#define a(i)
Definition
RSha256.hxx:99
TRangeDynCast
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Definition
TCollection.h:358
points
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t points
Definition
TGWin32VirtualXProxy.cxx:148
name
char name[80]
Definition
TGX11.cxx:110
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
TDirectoryFile
A ROOT file is structured in Directories (like a file system).
Definition
TDirectoryFile.h:32
TDirectory
Describe directory structure in memory.
Definition
TDirectory.h:45
x
Double_t x[n]
Definition
legend1.C:17
Rcpp::as
TString as(SEXP s)
Definition
RExports.h:86
v6-36-00-patches
pyzdoc
_tdirectoryfile.pyzdoc
ROOT v6-36 - Reference Guide Generated on Thu Aug 21 2025 04:30:48 (GVA Time) using Doxygen 1.10.0