SND@LHC Software
Loading...
Searching...
No Matches
rootpyPickler.ROOT_Proxy Class Reference

Public Member Functions

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

Private Member Functions

 __obj (self)
 

Private Attributes

 __f
 
 __pid
 
 __o
 

Detailed Description

Definition at line 124 of file rootpyPickler.py.

Constructor & Destructor Documentation

◆ __init__()

rootpyPickler.ROOT_Proxy.__init__ (   self,
  f,
  pid 
)

Definition at line 125 of file rootpyPickler.py.

125 def __init__(self, f, pid):
126 self.__f = f
127 self.__pid = pid
128 self.__o = None
129

Member Function Documentation

◆ __getattr__()

rootpyPickler.ROOT_Proxy.__getattr__ (   self,
  a 
)

Definition at line 130 of file rootpyPickler.py.

130 def __getattr__(self, a):
131 if self.__o is None:
132 self.__o = self.__f.Get(self.__pid)
133 if self.__o.__class__.__module__ != 'ROOT':
134 self.__o.__class__.__module__ = 'ROOT'
135 return getattr(self.__o, a)
136

◆ __obj()

rootpyPickler.ROOT_Proxy.__obj (   self)
private

Definition at line 137 of file rootpyPickler.py.

137 def __obj(self):
138 if self.__o is None:
139 self.__o = self.__f.Get(self.__pid)
140 if self.__o.__class__.__module__ != 'ROOT':
141 self.__o.__class__.__module__ = 'ROOT'
142 return self.__o
143
144

Member Data Documentation

◆ __f

rootpyPickler.ROOT_Proxy.__f
private

Definition at line 126 of file rootpyPickler.py.

◆ __o

rootpyPickler.ROOT_Proxy.__o
private

Definition at line 128 of file rootpyPickler.py.

◆ __pid

rootpyPickler.ROOT_Proxy.__pid
private

Definition at line 127 of file rootpyPickler.py.


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