| # Gaudi Framework, version v21r7p1 |

Home |  | Generated: 15 Feb 2010

# PyROOTPickle.h File Reference

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

`#include "GaudiKernel/Kernel.h"`
`#include "Python.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.

## Namespaces
namespace | GaudiPython
## Classes
class | GaudiPython::PyROOTPickle

## 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.