ATLAS Offline Software
Loading...
Searching...
No Matches
PyROOTPickle.h File Reference

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

#include "CxxUtils/checker_macros.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  RootUtils::PyROOTPickle

Namespaces

namespace  RootUtils

Variables

 ATLAS_NO_CHECK_FILE_THREAD_SAFETY

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.

Variable Documentation

◆ ATLAS_NO_CHECK_FILE_THREAD_SAFETY

ATLAS_NO_CHECK_FILE_THREAD_SAFETY

Definition at line 35 of file PyROOTPickle.h.