Exemplo n.º 1
0
    def __init__(self, infoRun, data = ''):
        self.infoRun = infoRun
        self.SetEnvironment(self.infoRun)
        self.data = data
        counter = 0
        
        # Apply selection cut
        for bck in self.backgrounds:
            self.listOfSelectors.append(Selector(bck, self.savepath))
            counter += 1
        if (self.data != ''): self.dataSelector = Selector(self.data, self.savepath)
        
        # == Draw histograms
        # Parse selectors and other parameters to the Plotter class
        p = Plotter(self.listOfSelectors, self.dataSelector, self.Histos, self.colors)
        p.SetSavePath(self.savepath)
        p.SetAnnotations(self.Annotations)
        p.DrawHistos()
        
        # ===== Compute the cross-section
        # == Set attributes and parameters and compute the final result
        self.SetParameters('MuonPt')
        self.PrintXsection('MuonPt')

        return