Esempio n. 1
0
 def createScript(self, path, scriptBaseName = "TkAlOfflineValidation"):
     # A separate script is created for each parallel jobs.
     # Since only one cfg is saved a bit ugly solution is needed in the loop.
     returnValue = []
     numJobs = int( self.general["parallelJobs"] )
     for index in range(numJobs):
         scriptName = "%s.%s.%s_%s.sh"%(scriptBaseName, self.name, 
                                        self.alignmentToValidate.name,
                                        str(index))
         repMap = self.getRepMap()
         repMap["nIndex"]=""
         repMap["nIndex"]=str(index)
         repMap["CommandLine"]=""
         repMap.update({
             "outputFile": replaceByMap("AlignmentValidation_"
                                        + self.name +
                                        "_.oO[name]Oo._.oO[nIndex]Oo..root",
                                        repMap )
             })
         for cfg in self.configFiles:
             # The ugly solution here is to change the name for each parallel job 
             cfgtemp = cfg.replace(str(numJobs-1)+"_cfg.py",
                                   str(index)+"_cfg.py")
             repMap["CommandLine"]+= repMap["CommandLineTemplate"]%{"cfgFile":cfgtemp,
                                                                    "postProcess":""
                                                                    }
             scripts = {scriptName: replaceByMap(configTemplates.parallelScriptTemplate,
                                                 repMap ) }
             returnValue.extend(GenericValidationData.createScript(self,
                                                                   scripts,
                                                                   path) )
     return returnValue
Esempio n. 2
0
 def createScript(self, path, scriptBaseName="TkAlOfflineValidation"):
     # A separate script is created for each parallel jobs.
     # Since only one cfg is saved a bit ugly solution is needed in the loop.
     returnValue = []
     numJobs = int(self.general["parallelJobs"])
     for index in range(numJobs):
         scriptName = "%s.%s.%s_%s.sh" % (scriptBaseName, self.name,
                                          self.alignmentToValidate.name,
                                          str(index))
         repMap = self.getRepMap()
         repMap["nIndex"] = ""
         repMap["nIndex"] = str(index)
         repMap["CommandLine"] = ""
         repMap.update({"outputFile": self.outputFiles[index]})
         for cfg in self.configFiles:
             # The ugly solution here is to change the name for each parallel job
             cfgtemp = cfg.replace(
                 str(numJobs - 1) + "_cfg.py",
                 str(index) + "_cfg.py")
             repMap["CommandLine"] += repMap["CommandLineTemplate"] % {
                 "cfgFile": cfgtemp,
                 "postProcess": ""
             }
             scripts = {
                 scriptName:
                 replaceByMap(configTemplates.parallelScriptTemplate,
                              repMap)
             }
             returnValue.extend(
                 GenericValidationData.createScript(self, scripts, path))
     return returnValue
Esempio n. 3
0
 def createScript(self, path, scriptBaseName="TkAlZMuMuValidation"):
     scriptName = "%s.%s.%s.sh" % (scriptBaseName, self.name, self.alignmentToValidate.name)
     repMap = self.getRepMap()
     repMap["CommandLine"] = ""
     for cfg in self.configFiles:
         repMap["CommandLine"] += repMap["CommandLineTemplate"] % {"cfgFile": cfg, "postProcess": ""}
     scripts = {scriptName: replaceByMap(configTemplates.zMuMuScriptTemplate, repMap)}
     return GenericValidationData.createScript(self, scripts, path)
Esempio n. 4
0
 def createScript(self, path, scriptBaseName = "TkAlZMuMuValidation"):
     scriptName = "%s.%s.%s.sh"%(scriptBaseName, self.name,
                                 self.alignmentToValidate.name )
     repMap = self.getRepMap()
     repMap["CommandLine"]=""
     for cfg in self.configFiles:
         repMap["CommandLine"]+= repMap["CommandLineTemplate"]%{"cfgFile":cfg,
                                               "postProcess":""
                                               }
     scripts = {scriptName: replaceByMap(configTemplates.zMuMuScriptTemplate,
                                         repMap ) }
     return GenericValidationData.createScript(self, scripts, path)
Esempio n. 5
0
 def createScript(self, path):
     return GenericValidationData.createScript(self, path, template = configTemplates.PVValidationScriptTemplate)
 def createScript(self, path):
     return GenericValidationData.createScript(
         self, path, template=configTemplates.PVValidationScriptTemplate)
Esempio n. 7
0
 def createScript(self, path):
     return GenericValidationData.createScript(self, path)
Esempio n. 8
0
 def createScript(self, path):
     return GenericValidationData.createScript(self, path)