Belle II Software  release-05-02-19
RawRootFile.Key Class Reference

Public Member Functions

def __init__ (self, keydata, large=False)
 
def normalize (self, pos=None, offset=None)
 
def recreate_header (self)
 
def get_int (self, data, pos, wordlen=4)
 
def get_string (self, data, pos)
 

Public Attributes

 large
 are file location pointers 4 or 8 bits?
 
 wordlen
 size of file location pointers
 
 header
 length of compressed object (in bytes) More...
 
 data
 data bytes associated to the object
 
 showname
 name to show in the list of keys
 
 datime
 date and time when object was written to file
 
 seekkey
 pointer to record itself (consistency check)
 

Detailed Description

Root file key

Definition at line 112 of file b2root.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  keydata,
  large = False 
)
Obtain key header and data payload from given data and extract header information

Definition at line 117 of file b2root.py.

Member Function Documentation

◆ get_int()

def get_int (   self,
  data,
  pos,
  wordlen = 4 
)
Helper function to read an int from binary data

Definition at line 188 of file b2root.py.

◆ get_string()

def get_string (   self,
  data,
  pos 
)
Helper function to read a string from binary data

Definition at line 195 of file b2root.py.

◆ normalize()

def normalize (   self,
  pos = None,
  offset = None 
)
Set the key datime to zero adjust the pointer to itself if given as argument

Definition at line 156 of file b2root.py.

◆ recreate_header()

def recreate_header (   self)
Build the binary header information from the data members

Definition at line 171 of file b2root.py.

Member Data Documentation

◆ header

header

length of compressed object (in bytes)

TKey version identifier length of uncompressed object date and time when object was written to file length of the key structure (in bytes) cycle of key pointer to record itself (consistency check) pointer to directory header object Class Name name of the object title of the object binary header

Definition at line 150 of file b2root.py.


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