Exemplo n.º 1
0
    def extract(self, dirname, layout):
        self.logger.info("   Checking SampleAnalyzer output...")
        jobber = JobReader(dirname)
        if not jobber.CheckDir():
            self.logger.error("errors have occured during the analysis.")
            return False

        for item in self.main.datasets:
            if self.main.recasting.status == 'on':
                if not self.main.recasting.CheckFile(dirname, item):
                    return False
            elif not jobber.CheckFile(item):
                self.logger.error("errors have occured during the analysis.")
                return False

        if self.main.recasting.status != 'on':
            self.logger.info("   Extracting data from the output files...")
            for i in range(0, len(self.main.datasets)):
                jobber.ExtractGeneral(self.main.datasets[i])
                jobber.ExtractHistos(self.main.datasets[i],
                                     layout.plotflow.detail[i])
                jobber.ExtractCuts(self.main.datasets[i],
                                   layout.cutflow.detail[i])
                if self.main.merging.enable:
                    jobber.ExtractHistos(self.main.datasets[i],
                                         layout.merging.detail[i],
                                         merging=True)
        return True
Exemplo n.º 2
0
    def extract(self, dirname):
        logging.info("   Checking SampleAnalyzer output...")
        jobber = JobReader(dirname)
        if not jobber.Open():
            logging.error("errors have occured during the analysis.")
            return False

        for item in self.main.datasets:
            if not jobber.CheckRootFile(item):
                logging.error("errors have occured during the analysis.")
                return False

        logging.info("   Extracting data from the output files...")
        for item in self.main.datasets:
            jobber.ExtractDatasetInfo(item)

        return True
Exemplo n.º 3
0
    def extract(self, dirname, layout):
        logging.info("   Checking SampleAnalyzer output...")
        jobber = JobReader(dirname)
        if not jobber.CheckDir():
            logging.error("errors have occured during the analysis.")
            return False

        for item in self.main.datasets:
            if not jobber.CheckFile(item):
                logging.error("errors have occured during the analysis.")
                return False

        logging.info("   Extracting data from the output files...")
        for i in range(0, len(self.main.datasets)):
            jobber.Extract(self.main.datasets[i],\
                           layout.cutflow.detail[i],\
                           layout.merging.detail[i],\
                           layout.plotflow.detail[i])
        return True