@classmethod
def branch_type(cls, branch):
    """
        Return the string representation for the type of a branch
        """
    typename = branch.GetClassName()
    if not typename:
        leaf = branch.GetListOfLeaves()[0]
        typename = leaf.GetTypeName()
        leaf_count = leaf.GetLeafCount()
        if leaf_count:
            length = leaf_count.GetMaximum()
        else:
            length = leaf.GetLen()
        if length > 1:
            typename = '{0}[{1:d}]'.format(typename, length)
    return typename
