![]() |
ATLAS Offline Software
|
Classes | |
class | ILogger |
Very simple interface for writing log messages. More... | |
class | InitHist |
Initialize Root's getline history. More... | |
class | PyBytes |
class | PyGILStateEnsure |
class | PyLogger |
A concrete implementation of ILogger that calls back to Python. More... | |
class | PyROOTInspector |
class | PyROOTIteratorFuncs |
Provide functions for iterator comparisons. More... | |
class | PyROOTPickle |
class | PyROOTTTreePatch |
class | PyROOTTypePatch |
Work around pyroot problem with __pair_base. More... | |
class | ScatterH2 |
A 2-D histogram that can draw a proper scatter plot. More... | |
class | TRandomTLS |
Thread-local TRandom generator. More... | |
class | TreeNotifier |
Tree notification handler. More... | |
class | TSMethodCall |
Helper for making a thread-safe function call. More... | |
class | Type |
Wrapper for ROOT types. More... | |
class | WithRootErrorHandler |
Run a MT piece of code with an alternate root error handler. More... | |
Typedefs | |
using | PyException = CPyCppyy::PyException |
Functions | |
std::pair< std::string, bool > | PyGetString (PyObject *s) |
Convert python string -> C++ string for py2 and py3. More... | |
PyBytes | _pythonize_read_root_file (TFile *f, Int_t len) |
read len bytes from file f More... | |
Long64_t | _pythonize_tell_root_file (TFile *f) |
tell the current position in file f More... | |
PyObject * | CPPInstanceReduce (PyObject *self, PyObject *) |
PyROOT object proxy pickle support. More... | |
PyObject * | CPPInstanceExpand (PyObject *, PyObject *args) |
Helper for (un)pickling of CPPInstance's. More... | |
PyObject * | treeSetNotify (PyObject *, PyObject *args) |
Implementation for pythonization of TTree::SetNotify . More... | |
PyObject * | treeGetNotify (PyObject *, PyObject *args) |
Implementation for pythonization of TTree::SetNotify . More... | |
PyObject * | branchSetAddress (PyObject *, PyObject *args) |
Pythonization of TBranch::SetAddress . More... | |
void | installMethod (PyObject *pyclass, PyMethodDef &pdef, const char *name, PyCFunction cfunc) |
Helper to install a method in a Python class. More... | |
int | GetBuffer (PyObject *pyobject, char tc, int size, void *&buf, Bool_t check) |
PyObject * | getRootModule () |
PyObject * | rootModule () |
TClass * | objectIsA (PyObject *obj) |
PyObject * | getSetOwnershipFunc () |
PyObject * | setOwnershipFunc () |
bool | setOwnership (PyObject *obj, bool flag) |
using RootUtils::PyException = typedef CPyCppyy::PyException |
PyBytes RootUtils::_pythonize_read_root_file | ( | TFile * | f, |
Int_t | len | ||
) |
Long64_t RootUtils::_pythonize_tell_root_file | ( | TFile * | f | ) |
tell the current position in file f
Definition at line 49 of file PyROOTTFilePythonize.cxx.
Pythonization of TBranch::SetAddress
.
args | The Python arguments. |
Definition at line 257 of file PyROOTTTreePatch.cxx.
Helper for (un)pickling of CPPInstance's.
args | The Python arguments. |
Definition at line 86 of file PyROOTPickle.cxx.
PyROOT object proxy pickle support.
self | object proxy instance to be pickled |
Definition at line 36 of file PyROOTPickle.cxx.
int RootUtils::GetBuffer | ( | PyObject * | pyobject, |
char | tc, | ||
int | size, | ||
void *& | buf, | ||
Bool_t | check | ||
) |
Definition at line 26 of file Utility.cxx.
PyObject* RootUtils::getRootModule | ( | ) |
Definition at line 89 of file Utility.cxx.
PyObject* RootUtils::getSetOwnershipFunc | ( | ) |
Definition at line 126 of file Utility.cxx.
void RootUtils::installMethod | ( | PyObject * | pyclass, |
PyMethodDef & | pdef, | ||
const char * | name, | ||
PyCFunction | cfunc | ||
) |
Helper to install a method in a Python class.
pyclass | The Python class. |
pdef | A PyMethodDef object. |
name | The method name. |
cfunc | The C function to install. |
Definition at line 307 of file PyROOTTTreePatch.cxx.
TClass * RootUtils::objectIsA | ( | PyObject * | obj | ) |
Definition at line 103 of file Utility.cxx.
|
inline |
Convert python string -> C++ string for py2 and py3.
Returns a pair (string, bool); the second element is true of the conversion succeeded.
This should be kept as an inline function to avoid having to have direct dependencies on python where it's not really needed.
Definition at line 40 of file PyGetString.h.
PyObject* RootUtils::rootModule | ( | ) |
Definition at line 95 of file Utility.cxx.
bool RootUtils::setOwnership | ( | PyObject * | obj, |
bool | flag | ||
) |
Definition at line 141 of file Utility.cxx.
PyObject* RootUtils::setOwnershipFunc | ( | ) |
Definition at line 134 of file Utility.cxx.
Implementation for pythonization of TTree::SetNotify
.
args | The Python arguments. |
Definition at line 230 of file PyROOTTTreePatch.cxx.
Implementation for pythonization of TTree::SetNotify
.
args | The Python arguments. |
Definition at line 179 of file PyROOTTTreePatch.cxx.