Example #1
0
    def plotAll(self) :
        print utils.hyphens
        self.setupStyle(self.optStat)

        self.printCanvas("[")
        text1 = self.printTimeStamp()
        text2 = self.printNEventsIn()
        self.flushPage()

        if self.detailedCalculables :
            blocks = filter(None, utils.splitList( self.someOrganizer.formattedCalculablesGraph(), ('','','')))
            for page in utils.pages(blocks,50) :
                text3 = self.printCalculablesDetailed(page)
                self.flushPage()
        else :
            text3 = self.printCalculables(selectImperfect = False)
            self.flushPage()
            text4 = self.printCalculables(selectImperfect = True)
            if text4 or self.printImperfectCalcPageIfEmpty:
                self.flushPage()
            
        nSelectionsPrinted = 0
        selectionsSoFar=[]
        for step in self.someOrganizer.steps :
            if step.isSelector : selectionsSoFar.append(step)
            elif nSelectionsPrinted<len(selectionsSoFar) and not self.compactOutput :
                self.printSteps(selectionsSoFar, printAll = self.compactOutput)
                nSelectionsPrinted = len(selectionsSoFar)
            if (step.name, step.title)==self.linYAfter : self.doLog = False
            for plotName in sorted(step.keys()) :
                if self.compactOutput and plotName not in self.whiteList : continue
                if any( re.match(pattern+'$',plotName) for pattern in self.blackList ): continue
                self.onePlotFunction(step[plotName])

        self.printCanvas("]")
        print self.pdfFileName, 'has been written'
        if self.latexYieldTable : self.printLatexYieldTable()
        print utils.hyphens
Example #2
0
 def printFormattedCalculablesGraph(self) :
     for block in filter(None,utils.splitList(self.formattedCalculablesGraph(), ("","","") )) :
         print
         maxLenName = max([len(line[1]) for line in block])
         for line in block : print "%s%s  %s"%(line[0],line[1].ljust(maxLenName),line[2])