def __init__(self): """ Constructor """ ComparisonPlot.__init__(self) self._comparisonContainer = TriggerEfficiencyContainer() self.SetFrame(TriggerEfficiencyFrame("tframe")) self.SetLegendAttributes(0.65, 0.15, 0.89, 0.5)
def __init__(self, frame, name = "spectrumcomparison"): """ Constructor """ ComparisonPlot.__init__(self) self._comparisonContainer = ComparisonData() self.SetFrame(frame) self.SetLegendAttributes(0.5, 0.65, 0.89, 0.89) self.SetPadAttributes(True, True, False, False) self.__name = name
def __init__(self, plottype = "tracks"): """ Constructor """ ComparisonPlot.__init__(self) self._comparisonContainer = MCSpectrumContainer() self._canvasname = "" self._canvastitle = "" self.__labeltext = "MC-true spectrum" if plottype == "tracks": self.SetFrame(WeightedPtSpectrumFrame()) else: self.SetFrame(WeightedEnergySpectrumFrame())