def __init__(self, name, rootHisto, countNameFunction=None): self.name = name cntr = dataset._histoToCounter(rootHisto) self.countNames = [x[0] for x in cntr] self.counter = [x[1] for x in cntr] if countNameFunction != None: self.countNames = [countNameFunction(x) for x in self.countNames]
def _createCounter(self): self.counter = [x[1] for x in dataset._histoToCounter(self.datasetRootHisto.getHistogram())]
def _createCounter(self): self.counter = [ x[1] for x in dataset._histoToCounter( self.datasetRootHisto.getHistogram()) ]