3In the same way as
for TDirectory, it is possible to inspect the content of
a
4TDirectoryFile object from Python as
if the subdirectories and objects it
5contains were its attributes. For more information, please refer to the
8In addition to the attribute syntax, one can inspect
a TDirectoryFile in Python
9via the `Get` method. In
this case, the subdirectory/
object name is specified
12# Access a subdirectory
15# We can go further down in the hierarchy of directories
16d.Get(
'subdir/subsubdir')
18# Access an object (e.g. a histogram) in the directory
21# ... or in a subdirectory
24# Wrong attribute: returns null
30with the following syntax:
32# Write object obj with identifier 'keyName'
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t points
A ROOT file is structured in Directories (like a file system).
Describe directory structure in memory.
std::enable_if_t<!std::is_base_of< TObject, T >::value, Int_t > WriteObject(const T *obj, const char *name, Option_t *option="", Int_t bufsize=0)
Write an object with proper type checking.