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

Public Member Functions

def __init__ (self)
 
def write (self, s)
 
def getvalue (self)
 
def reopen (self)
 
def __init__ (self)
 
def write (self, s)
 
def getvalue (self)
 
def reopen (self)
 

Private Attributes

 __s
 
 _s
 
 _str
 

Detailed Description

Definition at line 116 of file root_pickle.py.

Constructor & Destructor Documentation

◆ __init__() [1/2]

def python.root_pickle.Write_Wrapper.__init__ (   self)

Definition at line 117 of file root_pickle.py.

117  def __init__ (self):
118  self.reopen()
119 

◆ __init__() [2/2]

def python.root_pickle.Write_Wrapper.__init__ (   self)

Definition at line 152 of file root_pickle.py.

152  def __init__ (self):
153  self.reopen()
154 

Member Function Documentation

◆ getvalue() [1/2]

def python.root_pickle.Write_Wrapper.getvalue (   self)

Definition at line 123 of file root_pickle.py.

123  def getvalue (self):
124  return ROOT.TObjString (self.__s.getvalue())
125 

◆ getvalue() [2/2]

def python.root_pickle.Write_Wrapper.getvalue (   self)

Definition at line 175 of file root_pickle.py.

175  def getvalue (self):
176  return self._s
177 

◆ reopen() [1/2]

def python.root_pickle.Write_Wrapper.reopen (   self)

Definition at line 126 of file root_pickle.py.

126  def reopen (self):
127  self.__s = StringIO()
128  return
129 
130 
131  class Read_Wrapper:

◆ reopen() [2/2]

def python.root_pickle.Write_Wrapper.reopen (   self)

Definition at line 178 of file root_pickle.py.

178  def reopen (self):
179  self._s = ROOT.TObjString()
180  self._str = self._s.String()
181  return
182 
183 
184  class Read_Wrapper:

◆ write() [1/2]

def python.root_pickle.Write_Wrapper.write (   self,
  s 
)

Definition at line 120 of file root_pickle.py.

120  def write (self, s):
121  return self.__s.write (_protect (s))
122 

◆ write() [2/2]

def python.root_pickle.Write_Wrapper.write (   self,
  s 
)

Definition at line 155 of file root_pickle.py.

155  def write (self, s):
156  ss = self._str
157  log = []
158  for c in s:
159  code = c
160  if code == 0xff:
161  ss.Append (0xff)
162  ss.Append (0xfe)
163  log.append (0xff)
164  log.append (0xfe)
165  elif code == 0x00:
166  ss.Append (0xff)
167  ss.Append (0x01)
168  log.append (0xff)
169  log.append (0x01)
170  else:
171  ss.Append (code)
172  log.append (code)
173  return
174 

Member Data Documentation

◆ __s

python.root_pickle.Write_Wrapper.__s
private

Definition at line 127 of file root_pickle.py.

◆ _s

python.root_pickle.Write_Wrapper._s
private

Definition at line 179 of file root_pickle.py.

◆ _str

python.root_pickle.Write_Wrapper._str
private

Definition at line 180 of file root_pickle.py.


The documentation for this class was generated from the following file:
python.ByteStreamConfig.write
def write
Definition: Event/ByteStreamCnvSvc/python/ByteStreamConfig.py:248
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18