Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

Commit

Permalink
Give streamers and TKeys , too.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpivarski committed Nov 3, 2019
1 parent aa829d1 commit 93a2956
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions uproot/rootio.py
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,9 @@ def __repr__(self):
return "<{0} at 0x{1:012x}>".format(self.__class__.__name__, id(self))

class TKey(ROOTObject):
_classname = b"TKey"
classname = "TKey"

@classmethod
def _readinto(cls, self, source, cursor, context, parent):
start = cursor.index
Expand Down Expand Up @@ -1052,6 +1055,9 @@ def _canonicaltype(name):
]

class TStreamerInfo(ROOTObject):
_classname = b"TStreamerInfo"
classname = "TStreamerInfo"

@classmethod
def _readinto(cls, self, source, cursor, context, parent):
start, cnt, self._classversion = _startcheck(source, cursor)
Expand All @@ -1073,6 +1079,9 @@ def show(self, stream=sys.stdout):
stream.write("\n")

class TStreamerElement(ROOTObject):
_classname = b"TStreamerElement"
classname = "TStreamerElement"

@classmethod
def _readinto(cls, self, source, cursor, context, parent):
start, cnt, self._classversion = _startcheck(source, cursor)
Expand Down Expand Up @@ -1122,6 +1131,9 @@ def show(self, stream=sys.stdout):
stream.write("\n")

class TStreamerArtificial(TStreamerElement):
_classname = b"TStreamerArtificial"
classname = "TStreamerArtificial"

@classmethod
def _readinto(cls, self, source, cursor, context, parent):
start, cnt, self._classversion = _startcheck(source, cursor)
Expand All @@ -1130,6 +1142,9 @@ def _readinto(cls, self, source, cursor, context, parent):
return self

class TStreamerBase(TStreamerElement):
_classname = b"TStreamerBase"
classname = "TStreamerBase"

@classmethod
def _readinto(cls, self, source, cursor, context, parent):
start, cnt, self._classversion = _startcheck(source, cursor)
Expand All @@ -1142,6 +1157,9 @@ def _readinto(cls, self, source, cursor, context, parent):
_format = struct.Struct(">i")

class TStreamerBasicPointer(TStreamerElement):
_classname = b"TStreamerBasicPointer"
classname = "TStreamerBasicPointer"

@classmethod
def _readinto(cls, self, source, cursor, context, parent):
start, cnt, self._classversion = _startcheck(source, cursor)
Expand All @@ -1155,6 +1173,9 @@ def _readinto(cls, self, source, cursor, context, parent):
_format = struct.Struct(">i")

class TStreamerBasicType(TStreamerElement):
_classname = b"TStreamerBasicType"
classname = "TStreamerBasicType"

@classmethod
def _readinto(cls, self, source, cursor, context, parent):
start, cnt, self._classversion = _startcheck(source, cursor)
Expand Down Expand Up @@ -1188,6 +1209,9 @@ def _readinto(cls, self, source, cursor, context, parent):
return self

class TStreamerLoop(TStreamerElement):
_classname = b"TStreamerLoop"
classname = "TStreamerLoop"

@classmethod
def _readinto(cls, self, source, cursor, context, parent):
start, cnt, self._classversion = _startcheck(source, cursor)
Expand All @@ -1201,6 +1225,9 @@ def _readinto(cls, self, source, cursor, context, parent):
_format = struct.Struct(">i")

class TStreamerObject(TStreamerElement):
_classname = b"TStreamerObject"
classname = "TStreamerObject"

@classmethod
def _readinto(cls, self, source, cursor, context, parent):
start, cnt, self._classversion = _startcheck(source, cursor)
Expand All @@ -1209,6 +1236,9 @@ def _readinto(cls, self, source, cursor, context, parent):
return self

class TStreamerObjectAny(TStreamerElement):
_classname = b"TStreamerObjectAny"
classname = "TStreamerObjectAny"

@classmethod
def _readinto(cls, self, source, cursor, context, parent):
start, cnt, self._classversion = _startcheck(source, cursor)
Expand All @@ -1217,6 +1247,9 @@ def _readinto(cls, self, source, cursor, context, parent):
return self

class TStreamerObjectAnyPointer(TStreamerElement):
_classname = b"TStreamerObjectAnyPointer"
classname = "TStreamerObjectAnyPointer"

@classmethod
def _readinto(cls, self, source, cursor, context, parent):
start, cnt, self._classversion = _startcheck(source, cursor)
Expand All @@ -1225,6 +1258,9 @@ def _readinto(cls, self, source, cursor, context, parent):
return self

class TStreamerObjectPointer(TStreamerElement):
_classname = b"TStreamerObjectPointer"
classname = "TStreamerObjectPointer"

@classmethod
def _readinto(cls, self, source, cursor, context, parent):
start, cnt, self._classversion = _startcheck(source, cursor)
Expand All @@ -1233,6 +1269,9 @@ def _readinto(cls, self, source, cursor, context, parent):
return self

class TStreamerSTL(TStreamerElement):
_classname = b"TStreamerSTL"
classname = "TStreamerSTL"

@classmethod
def _readinto(cls, self, source, cursor, context, parent):
start, cnt, self._classversion = _startcheck(source, cursor)
Expand Down Expand Up @@ -1260,6 +1299,9 @@ def vector(cls, fType, fTypeName):
_format = struct.Struct(">ii")

class TStreamerSTLstring(TStreamerSTL):
_classname = b"TStreamerSTLstring"
classname = "TStreamerSTLstring"

@classmethod
def _readinto(cls, self, source, cursor, context, parent):
start, cnt, self._classversion = _startcheck(source, cursor)
Expand All @@ -1268,6 +1310,9 @@ def _readinto(cls, self, source, cursor, context, parent):
return self

class TStreamerString(TStreamerElement):
_classname = b"TStreamerString"
classname = "TStreamerString"

@classmethod
def _readinto(cls, self, source, cursor, context, parent):
start, cnt, self._classversion = _startcheck(source, cursor)
Expand Down

0 comments on commit 93a2956

Please sign in to comment.