ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
python.root_pickle.Read_Wrapper Class Reference
Collaboration diagram for python.root_pickle.Read_Wrapper:

Public Member Functions

def __init__ (self)
 
def read (self, i)
 
def readline (self)
 
def setvalue (self, s)
 
def reopen (self)
 
def __init__ (self)
 
def read (self, i)
 
def readline (self)
 
def setvalue (self, s)
 
def reopen (self)
 

Private Attributes

 __s
 
 _s
 
 _str
 
 _pos
 

Detailed Description

Definition at line 131 of file root_pickle.py.

Constructor & Destructor Documentation

◆ __init__() [1/2]

def python.root_pickle.Read_Wrapper.__init__ (   self)

Definition at line 132 of file root_pickle.py.

132  def __init__ (self):
133  self.reopen()
134 

◆ __init__() [2/2]

def python.root_pickle.Read_Wrapper.__init__ (   self)

Definition at line 185 of file root_pickle.py.

185  def __init__ (self):
186  self.reopen()
187 
188 

Member Function Documentation

◆ read() [1/2]

def python.root_pickle.Read_Wrapper.read (   self,
  i 
)

Definition at line 135 of file root_pickle.py.

135  def read (self, i):
136  return self.__s.read (i)
137 

◆ read() [2/2]

def python.root_pickle.Read_Wrapper.read (   self,
  i 
)

Definition at line 189 of file root_pickle.py.

189  def read (self, i):
190  out = []
191  slen = len(self._str)
192  while i != 0 and self._pos < slen:
193  c = ord(self._str[self._pos])
194  if c == 0xff:
195  self._pos += 1
196  if self._pos >= slen:
197  break
198  c = ord(self._str[self._pos])
199  if c == 0x01:
200  c = 0x00
201  elif c == 0xfe:
202  c = 0xff
203  out.append (c)
204  self._pos += 1
205  i -= 1
206  return bytes(out)
207 
208 

◆ readline() [1/2]

def python.root_pickle.Read_Wrapper.readline (   self)

Definition at line 138 of file root_pickle.py.

138  def readline (self):
139  return self.__s.readline ()
140 

◆ readline() [2/2]

def python.root_pickle.Read_Wrapper.readline (   self)

Definition at line 209 of file root_pickle.py.

209  def readline (self):
210  out = []
211  slen = len(self._str)
212  while self._pos < slen:
213  c = ord(self._str[self._pos])
214  if c == 0xff:
215  self._pos += 1
216  if self._pos >= slen:
217  break
218  c = ord(self._str[self._pos])
219  if c == 0x01:
220  c = 0x00
221  elif c == 0xfe:
222  c = 0xff
223  out.append (c)
224  self._pos += 1
225  if c == 10:
226  break
227  return bytes(out)
228 
229 

◆ reopen() [1/2]

def python.root_pickle.Read_Wrapper.reopen (   self)

Definition at line 145 of file root_pickle.py.

145  def reopen (self):
146  self.__s = StringIO()
147  return
148 
149 
150 else:
151  class Write_Wrapper:

◆ reopen() [2/2]

def python.root_pickle.Read_Wrapper.reopen (   self)

Definition at line 237 of file root_pickle.py.

237  def reopen (self):
238  self.setvalue (ROOT.TObjString())
239  return
240 
241 

◆ setvalue() [1/2]

def python.root_pickle.Read_Wrapper.setvalue (   self,
  s 
)

Definition at line 141 of file root_pickle.py.

141  def setvalue (self, s):
142  self.__s = StringIO (_restore (s.GetName()))
143  return
144 

◆ setvalue() [2/2]

def python.root_pickle.Read_Wrapper.setvalue (   self,
  s 
)

Definition at line 230 of file root_pickle.py.

230  def setvalue (self, s):
231  self._s = s
232  self._str = self._s.String()
233  self._pos = 0
234  return
235 
236 

Member Data Documentation

◆ __s

python.root_pickle.Read_Wrapper.__s
private

Definition at line 142 of file root_pickle.py.

◆ _pos

python.root_pickle.Read_Wrapper._pos
private

Definition at line 233 of file root_pickle.py.

◆ _s

python.root_pickle.Read_Wrapper._s
private

Definition at line 231 of file root_pickle.py.

◆ _str

python.root_pickle.Read_Wrapper._str
private

Definition at line 232 of file root_pickle.py.


The documentation for this class was generated from the following file:
read
IovVectorMap_t read(const Folder &theFolder, const SelectionCriterion &choice, const unsigned int limit=10)
Definition: openCoraCool.cxx:569
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18