Exemplo n.º 1
0
    def conclude(self) :
        for tag in self.sideBySideAnalysisTags() :
            #for skimming only
            org = organizer.organizer( self.sampleSpecs(tag) )
            utils.printSkimResults(org)            

            #organize
            org = organizer.organizer( self.sampleSpecs(tag) )
            lineWidth = 3; goptions = "hist"
            org.mergeSamples(targetSpec = {"name":"2011 Data", "color":r.kBlack, "markerStyle":20}, allWithPrefix="SingleMu.Run2011A")
            org.mergeSamples(targetSpec = {"name":"t#bar{t}",  "color":r.kOrange, "lineWidth":lineWidth, "goptions":goptions}, allWithPrefix="tt")
            org.mergeSamples(targetSpec = {"name":"DY->ll",    "color":r.kBlue,   "lineWidth":lineWidth, "goptions":goptions}, allWithPrefix="dyll")
            org.mergeSamples(targetSpec = {"name":"W + jets",  "color":r.kRed,    "lineWidth":lineWidth, "goptions":goptions}, allWithPrefix="w_jets")
            org.mergeSamples(targetSpec = {"name":"SM",        "color":r.kGreen+3,"lineWidth":lineWidth, "goptions":goptions}, sources = ["t#bar{t}","DY->ll","W + jets",], keepSources = True)
            
            org.scale() if not self.parameters()["tanBeta"] else org.scale(100.0)
            
            #plot
            pl = supy.plotter(org,
                                 pdfFileName = self.pdfFileName(tag),
                                 samplesForRatios = ("2011 Data","SM"),
                                 sampleLabelsForRatios = ("data","s.m."),
                                 showStatBox = True,
                                 #doLog = False,
                                 linYAfter = ("value", "0.40<=xcak5JetMhtOverHtPat"),
                                 pegMinimum = 0.1,
                                 blackList = ["lumiHisto","xsHisto","nJobsHisto"],
                                 )
            pl.plotAll()
Exemplo n.º 2
0
 def conclude(self, conf) :
     org = self.organizer(conf)
     utils.printSkimResults(org)
Exemplo n.º 3
0
 def conclude(self, config) :
     utils.printSkimResults(self.organizer(config))