ATLAS Offline Software
Loading...
Searching...
No Matches
python.root_pickle.Root_Proxy Class Reference
Inheritance diagram for python.root_pickle.Root_Proxy:
Collaboration diagram for python.root_pickle.Root_Proxy:

Public Member Functions

 __init__ (self, f, pid)
 __getattr__ (self, a)

Private Member Functions

 __obj (self)

Private Attributes

 __f = f
 __pid = sys.intern(pid)
 __o = None

Static Private Attributes

tuple __slots__ = ('__f', '__pid', '__o')

Detailed Description

Definition at line 295 of file root_pickle.py.

Constructor & Destructor Documentation

◆ __init__()

python.root_pickle.Root_Proxy.__init__ ( self,
f,
pid )

Definition at line 297 of file root_pickle.py.

297 def __init__ (self, f, pid):
298 self.__f = f
299 self.__pid = sys.intern(pid)
300 self.__o = None
301 return

Member Function Documentation

◆ __getattr__()

python.root_pickle.Root_Proxy.__getattr__ ( self,
a )

Definition at line 302 of file root_pickle.py.

302 def __getattr__ (self, a):
303 if self.__o is None:
304 self.__o = self.__f.Get (self.__pid)
305 if self.__o.__class__.__module__ != 'ROOT':
306 self.__o.__class__.__module__ = 'ROOT'
307 return getattr (self.__o, a)

◆ __obj()

python.root_pickle.Root_Proxy.__obj ( self)
private

Definition at line 308 of file root_pickle.py.

308 def __obj (self):
309 if self.__o is None:
310 self.__o = self.__f.Get (self.__pid)
311 if self.__o.__class__.__module__ != 'ROOT':
312 self.__o.__class__.__module__ = 'ROOT'
313 return self.__o

Member Data Documentation

◆ __f

python.root_pickle.Root_Proxy.__f = f
private

Definition at line 298 of file root_pickle.py.

◆ __o

python.root_pickle.Root_Proxy.__o = None
private

Definition at line 300 of file root_pickle.py.

◆ __pid

python.root_pickle.Root_Proxy.__pid = sys.intern(pid)
private

Definition at line 299 of file root_pickle.py.

◆ __slots__

tuple python.root_pickle.Root_Proxy.__slots__ = ('__f', '__pid', '__o')
staticprivate

Definition at line 296 of file root_pickle.py.


The documentation for this class was generated from the following file: