def systUncert(self, combFunc=add_hist_quad, systNames=None): if systNames == None: systNames = self._systs.keys() hsystuncert = self._nom.Clone() hsystuncert.Reset() for k in systNames: h = self._systs[k].Clone() hist_subtract(h, self._nom) hsystuncert = combFunc(hsystuncert, h) return hsystuncert
def systUncert(self, combFunc=add_hist_quad, systNames=None): if systNames == None: systNames = self._systs.keys() hnom = self.nomHist() hsystuncert = hnom.Clone() hsystuncert.Reset() d = self.systHists(systNames=systNames) for k in systNames: h = d[k].Clone() hist_subtract(h, hnom) hsystuncert = combFunc(hsystuncert, h) continue return hsystuncert