Esempio n. 1
0
 def createMakefile(self, lines_makefile):
     """Creates Makefile that runs the MEM
     """
     targets = self.hadd_records.keys()
     tools_createMakefile(self.makefile, targets, lines_makefile, self.filesToClean)
     logging.info("Run it with:\tmake -f %s -j %i " %
         (self.makefile, self.num_parallel_jobs))
Esempio n. 2
0
 def createMakefile(self, lines_makefile):
     """Creates Makefile that runs the MEM
     """
     targets = self.hadd_records.keys()
     tools_createMakefile(self.makefile, targets, lines_makefile,
                          self.filesToClean, self.is_sbatch)
     logging.info("Run it with:\tmake -f %s -j %i " %
                  (self.makefile, self.num_parallel_jobs))
Esempio n. 3
0
 def createMakefile(self, lines_makefile):
     """Creates Makefile that runs the Ntuple production.
     """
     targets = None
     if self.is_sbatch:
         targets = [ MAKEFILE_TARGET ]
     else:
         targets = self.outputFiles.values()
     tools_createMakefile(self.makefile, targets, lines_makefile, self.filesToClean)
     logging.info("Run it with:\tmake -f %s -j %i " % (self.makefile, self.num_parallel_jobs))
Esempio n. 4
0
 def createMakefile(self, lines_makefile):
     """Creates Makefile that runs the PU profile production.
     """
     tools_createMakefile(makefileName=self.makefile,
                          targets=self.targets,
                          lines_makefile=lines_makefile,
                          filesToClean=self.filesToClean,
                          isSbatch=self.is_sbatch,
                          phoniesToAdd=self.phoniesToAdd)
     logging.info("Run it with:\tmake -f %s -j %i " %
                  (self.makefile, self.num_parallel_jobs))
Esempio n. 5
0
 def createMakefile(self, lines_makefile):
     """Creates Makefile that runs the Ntuple production.
     """
     targets = None
     if self.is_sbatch:
         targets = [ "sbatch" ]
     else:
         targets = self.outputFiles.values()
     tools_createMakefile(self.makefile, targets, lines_makefile, self.filesToClean)
     logging.info("Run it with:\tmake -f %s -j %i " %
         (self.makefile, self.num_parallel_jobs))    
Esempio n. 6
0
 def createMakefile(self, lines_makefile):
     """Creates Makefile that runs the complete analysis workfow.
     """        
     targets = []
     targets.extend(self.datacardFiles.values())
     if self.rootOutputAux:
         targets.append("selEventTree_hadd")
     for idxJob in range(len(self.cfgFiles_make_plots_modified)):
         targets.append("makePlots%i" % idxJob)
     for rootOutput in self.rootOutputAux.values():
         self.filesToClean.append(rootOutput[0])
     tools_createMakefile(self.makefile, targets, lines_makefile, self.filesToClean)
     logging.info("Run it with:\tmake -f %s -j %i " %
         (self.makefile, self.num_parallel_jobs))
Esempio n. 7
0
 def createMakefile(self, lines_makefile):
     """Creates Makefile that runs the complete analysis workfow.
     """
     self.targets.extend([ jobOptions['datacardFile'] for jobOptions in self.jobOptions_prep_dcard.values() ])
     self.targets.extend([ jobOptions['outputFile'] for jobOptions in self.jobOptions_add_syst_dcard.values() ])
     if self.rootOutputAux:
         self.targets.append("selEventTree_hadd")
     for idxJob, jobOptions in enumerate(self.jobOptions_make_plots.values()):
         self.targets.append("makePlots%i" % idxJob)
     for rootOutput in self.rootOutputAux.values():
         self.filesToClean.append(rootOutput[0])
     if len(self.targets) == 0:
         self.targets.append("sbatch_analyze")
     tools_createMakefile(self.makefile, self.targets, lines_makefile, self.filesToClean, self.is_sbatch, self.phoniesToAdd)
     logging.info("Run it with:\tmake -f %s -j %i " % (self.makefile, self.num_parallel_jobs))
Esempio n. 8
0
 def createMakefile(self, lines_makefile):
     """Creates Makefile that runs the complete analysis workfow.
     """
     targets = []
     targets.extend(self.datacardFiles.values())
     if self.rootOutputAux:
         targets.append("selEventTree_hadd")
     for idxJob in range(len(self.cfgFiles_make_plots_modified)):
         targets.append("makePlots%i" % idxJob)
     for rootOutput in self.rootOutputAux.values():
         self.filesToClean.append(rootOutput[0])
     tools_createMakefile(self.makefile, targets, lines_makefile,
                          self.filesToClean, self.is_sbatch)
     logging.info("Run it with:\tmake -f %s -j %i " %
                  (self.makefile, self.num_parallel_jobs))