def __init__(self, cut, bin_width, use_column=1): """Inits the class. Args: cut: CutFile that is used to make a histogram. bin_width: Created histograms bin width use_column: Which column of the CutFile's data is used to create a histogram. """ self.cut = cut self.bin_width = bin_width self.use_column = use_column histed_file = hist(self.cut.data, self.bin_width, self.use_column) self.histogram_x = [float(pair[0]) for pair in histed_file] self.histogram_y = [float(pair[1]) for pair in histed_file]