def __init__(self,name='tree',title='tree',ttree=None): """ empty constructor with a name and title. """ #if (ttree == None): self._constructor_empty(name,title) #else: self._constructor_copy(self,ttree) self.name = name self.labels = [] self.varnames = [] self.vars = {} self.nentries = 0 self.ttree = TTree.__init__(self,name,title)
def __init__(self, name, title=None): """Initialize the tree.""" if title is None: title = name TTree.__init__(self, name, title) self._fields = {}