Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
_tdirectoryfile.pyzdoc
Go to the documentation of this file.
2
3In the same way as for TDirectory, it is possible to inspect the content of a
5contains were its attributes. For more information, please refer to the
7
9via the `Get` method. In this case, the subdirectory/object name is specified
10as a string:
11\code{.py}
12# Access a subdirectory
13d.Get('subdir')
14
15# We can go further down in the hierarchy of directories
16d.Get('subdir/subsubdir')
17
18# Access an object (e.g. a histogram) in the directory
19d.Get('obj')
20
21# ... or in a subdirectory
22d.Get('subdir/obj')
23
24# Wrong attribute: returns null
25x = d.Get('wrongAttr') # x points to null
27
31\code{.py}
32# Write object obj with identifier 'keyName'
33d.WriteObject(obj, 'keyName')
35
#define d(i)
Definition RSha256.hxx:102
#define a(i)
Definition RSha256.hxx:99
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t points
char name[80]
Definition TGX11.cxx:110
A ROOT file is structured in Directories (like a file system).
Describe directory structure in memory.
Definition TDirectory.h:45
Double_t x[n]
Definition legend1.C:17
TString as(SEXP s)
Definition RExports.h:86