def generate_plots_timing(): printed = [] for refstr, percent in zip(ref_strings, ref_percent): rootfile = ref_tree_pat % refstr file, tree = make_file_tree(rootfile) printer.set_prefix(prefix_base + "-timing-13a-water-ref" + refstr) label = "%d percent" % percent printed += plot_timing_per_event(tree, label, printer) continue return printed
def __init__(self, **kwds): print kwds self.opts = util.format_dict(kwds) print self.opts from cowbells.ana.util import make_file_tree tree_file = self.opts.get('tree_file') ft = make_file_tree(tree_file) if not ft: raise ValueError, "Failed to open %s" % tree_file self.file , self.tree = ft self.hists = {} self.book()