| The Gaudi Framework v29r0 (ff2e7097)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

Classes | Namespaces
PyROOTPickle.h File Reference

Port pickling functionality while awaiting newer release. More...

`#include "Python.h"`
`#include "GaudiKernel/Kernel.h"`
Include dependency graph for PyROOTPickle.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Classes
class | GaudiMP::PyROOTPickle

## Namespaces
| GaudiMP
| A class to serialize/deserialize TES objects to and from a TBufferFile Author: P.

## Detailed Description

Port pickling functionality while awaiting newer release.

Author
  Wim Lavrijsen

Date
  Apr 2008 PyROOT does not implement direct pickling of ObjectProxy's until release 5.20 of ROOT; this code brings it forward for use in ATLAS.

The code here will make the following changes to PyROOT's behavior:

- Add a method "_ObjectProxy__expand__" to libPyROOT that is stored by name by the pickler used by the unpickler. The expand function takes a class name and a python string, which are turned into an object using TBufferFile.
- Add a "__reduce__" method to ObjectProxy, which turns ObjectProxy's into python strings through serialization done by TBufferFile. The python string is subsequently pickled.

Definition in file PyROOTPickle.h.