Public Member Functions | |
def | __init__ |
def | createConfiguration |
def | createCrabCfg |
def | createScript |
def | getRepMap |
Public Attributes | |
crabWorkingDir | |
jobmode |
Definition at line 742 of file validateAlignments.py.
def validateAlignments::MonteCarloValidation::__init__ | ( | self, | |
valName, | |||
alignment, | |||
config | |||
) |
Reimplemented from validateAlignments::GenericValidation.
Definition at line 743 of file validateAlignments.py.
00744 : 00745 GenericValidation.__init__(self, valName, alignment, config) 00746 defaults = { 00747 "jobmode":self.jobmode, 00748 "runRange":"", 00749 "JSON":"" 00750 } 00751 mandatories = [ "relvalsample", "maxevents" ] 00752 if not config.has_section( "mcValidate:"+self.name ): 00753 mcValidate = config.getResultingSection( "general", 00754 defaultDict = defaults, 00755 demandPars = mandatories ) 00756 else: 00757 mcValidate = config.getResultingSection( "mcValidate:"+self.name, 00758 defaultDict = defaults, 00759 demandPars = mandatories ) 00760 self.general.update( mcValidate ) 00761 self.jobmode = self.general["jobmode"]
def validateAlignments::MonteCarloValidation::createConfiguration | ( | self, | |
path | |||
) |
Definition at line 762 of file validateAlignments.py.
00763 : 00764 cfgName = "TkAlMcValidation.%s.%s_cfg.py"%( self.name, 00765 self.alignmentToValidate.name ) 00766 repMap = self.getRepMap() 00767 repMap.update({ 00768 "outputFile": replaceByMap( (".oO[workdir]Oo./McValidation_" 00769 + self.name + 00770 "_.oO[name]Oo..root"), 00771 repMap ) 00772 }) 00773 repMap["outputFile"] = os.path.expandvars( repMap["outputFile"] ) 00774 repMap["outputFile"] = os.path.abspath( repMap["outputFile"] ) 00775 cfgs = {cfgName:replaceByMap( configTemplates.mcValidateTemplate, repMap)} 00776 self.filesToCompare[ GenericValidation.defaultReferenceName ] = repMap["outputFile"] 00777 GenericValidation.createConfiguration(self, cfgs, path)
def validateAlignments::MonteCarloValidation::createCrabCfg | ( | self, | |
path, | |||
crabCfgBaseName = "TkAlMcValidate" |
|||
) |
Reimplemented from validateAlignments::GenericValidation.
Definition at line 791 of file validateAlignments.py.
00793 : 00794 crabCfgName = "crab.%s.%s.%s.cfg"%( crabCfgBaseName, self.name, 00795 self.alignmentToValidate.name ) 00796 repMap = self.getRepMap() 00797 repMap["script"] = "dummy_script.sh" 00798 repMap["crabOutputDir"] = os.path.basename( path ) 00799 repMap["crabWorkingDir"] = crabCfgName.split( '.cfg' )[0] 00800 self.crabWorkingDir = repMap["crabWorkingDir"] 00801 repMap["numberOfJobs"] = self.general["parallelJobs"] 00802 repMap["cfgFile"] = self.configFiles[0] 00803 repMap["queue"] = self.jobmode.split( ',' )[1].split( '-q' )[1] 00804 crabCfg = {crabCfgName: replaceByMap( configTemplates.crabCfgTemplate, 00805 repMap ) } 00806 return GenericValidation.createCrabCfg( self, crabCfg, path )
def validateAlignments::MonteCarloValidation::createScript | ( | self, | |
path | |||
) |
Definition at line 778 of file validateAlignments.py.
00779 : 00780 scriptName = "TkAlMcValidate.%s.%s.sh"%( self.name, 00781 self.alignmentToValidate.name ) 00782 repMap = self.getRepMap() 00783 repMap["CommandLine"]="" 00784 for cfg in self.configFiles: 00785 repMap["CommandLine"]+= repMap["CommandLineTemplate"]%{"cfgFile":cfg, 00786 "postProcess":"" 00787 } 00788 00789 scripts = {scriptName: replaceByMap( configTemplates.scriptTemplate, repMap ) } 00790 return GenericValidation.createScript(self, scripts, path)
def validateAlignments::MonteCarloValidation::getRepMap | ( | self, | |
alignment = None |
|||
) |
Reimplemented from validateAlignments::GenericValidation.
Definition at line 807 of file validateAlignments.py.
Definition at line 791 of file validateAlignments.py.
Reimplemented from validateAlignments::GenericValidation.
Definition at line 743 of file validateAlignments.py.