26 def loadTrees(self, arg):
27 """load Trees method: loads trees that match one of the arguments in name"""
28 treedict = {}
29 for itree in range(0,self.entries):
30 treename = self.hashlist.At(itree).GetName()
31 if treename.find(arg) >= 0 :
32 tree = self.file.
Get(treename)
33 treedict[treename] = tree
34 print ('[>] ',len(treedict),'Trees loaded matching the selection:', arg)
35 return treedict
T * Get(TFile &f, const std::string &n, const std::string &dir="", const chainmap_t *chainmap=0, std::vector< std::string > *saved=0)
get a histogram given a path, and an optional initial directory if histogram is not found,...