Belle II Software  release-08-01-10
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 119 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 124 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 195 of file b2root.py.

◆ get_string()

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

Definition at line 202 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 163 of file b2root.py.

◆ recreate_header()

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

Definition at line 178 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 157 of file b2root.py.


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