ROOT
v6-26
Reference Guide
Loading...
Searching...
No Matches
_tfile.pyzdoc
Go to the documentation of this file.
1
/**
2
\class TFile
3
\brief \parblock \endparblock
4
\htmlonly
5
<div class="pyrootbox">
6
\endhtmlonly
7
## PyROOT
8
9
In the same way as for TDirectory, it is possible to inspect the content of a
10
TFile object from Python as if the directories and objects it contains were its
11
attributes. For more information, please refer to the TDirectory documentation.
12
13
In addition, TFile instances can be inspected via the `Get` method, a feature
14
that is inherited from TDirectoryFile (please see the documentation of
15
TDirectoryFile for examples on how to use it).
16
17
In order to write objects into a TFile, the `WriteObject` Python method can
18
be used (more information in the documentation of TDirectoryFile).
19
20
Finally, PyROOT modifies the TFile constructor and the TFile::Open
21
method to make them behave in a more pythonic way. In particular,
22
they both throw an `OSError` if there was a problem accessing the
23
file (e.g. non-existent or corrupted file).
24
\htmlonly
25
</div>
26
\endhtmlonly
27
*/
v626_TMP
pyzdoc
_tfile.pyzdoc
ROOT v6-26 - Reference Guide Generated on Mon Sep 11 2023 21:03:04 (GVA Time) using Doxygen 1.9.8