Exemple #1
0
    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]
Exemple #2
0
    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]
Exemple #3
0
 def _createCounter(self):
     self.counter = [x[1] for x in dataset._histoToCounter(self.datasetRootHisto.getHistogram())]
Exemple #4
0
 def _createCounter(self):
     self.counter = [
         x[1] for x in dataset._histoToCounter(
             self.datasetRootHisto.getHistogram())
     ]