コード例 #1
0
 def addHistogramToStack(self,histName,histConstituents,style={}):
     '''
     Add a histogram to the stack. histConstituents is a list.
     '''
     for sampleName in histConstituents:
         self.__openFile(sampleName)
     self.histDict[histName] = histConstituents
     self.stackOrder += [histName]
     self.styles[histName] = getStyle(histName)
     self.styles[histName].update(style)
コード例 #2
0
 def addHistogram(self,histName,histConstituents,style={}):
     '''
     Add histogram to plot. histConstituents is a list.
     Style is a custom styling.
     '''
     for sampleName in histConstituents:
         self.__openFile(sampleName)
     self.histDict[histName] = histConstituents
     self.histOrder += [histName]
     self.styles[histName] = getStyle(histName)
     self.styles[histName].update(style)