示例#1
0
文件: tree.py 项目: nextsw/alex
 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)
示例#2
0
 def __init__(self, name, title=None):
     """Initialize the tree."""
     if title is None:
         title = name
     TTree.__init__(self, name, title)
     self._fields = {}