| # Gaudi Framework, version v23r1 |

Home |  | Generated: Wed Feb 29 2012

Classes | Namespaces

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

## Classes
class | GaudiMP::PyROOTPickle
## Namespaces
namespace | 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.

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines