Public Member Functions | |
def | __init__ |
def | createConfiguration |
def | createCrabCfg |
def | createScript |
def | getRepMap |
Definition at line 8 of file trackSplittingValidation.py.
def trackSplittingValidation::TrackSplittingValidation::__init__ | ( | self, | |
valName, | |||
alignment, | |||
config | |||
) |
Reimplemented from genericValidation::GenericValidation.
Definition at line 9 of file trackSplittingValidation.py.
def trackSplittingValidation::TrackSplittingValidation::createConfiguration | ( | self, | |
path | |||
) |
Definition at line 14 of file trackSplittingValidation.py.
00015 : 00016 cfgName = "TkAlTrackSplitting.%s.%s_cfg.py"%(self.name, 00017 self.alignmentToValidate.name) 00018 repMap = self.getRepMap() 00019 cfgs = {cfgName:replaceByMap(configTemplates.TrackSplittingTemplate, 00020 repMap)} 00021 self.filesToCompare[GenericValidationData.defaultReferenceName] = \ 00022 repMap["resultFile"] 00023 GenericValidationData.createConfiguration(self, cfgs, path)
def trackSplittingValidation::TrackSplittingValidation::createCrabCfg | ( | self, | |
path, | |||
crabCfgBaseName = "TkAlTrackSplitting" |
|||
) |
Method which creates a `crab.cfg` for a validation on datasets. Arguments: - `path`: Path at which the file will be stored. - `crabCfgBaseName`: String which depends on the actual type of validation calling this method.
Reimplemented from genericValidation::GenericValidationData.
Definition at line 37 of file trackSplittingValidation.py.
def trackSplittingValidation::TrackSplittingValidation::createScript | ( | self, | |
path | |||
) |
Definition at line 24 of file trackSplittingValidation.py.
00025 : 00026 scriptName = "TkAlTrackSplitting.%s.%s.sh"%(self.name, 00027 self.alignmentToValidate.name) 00028 repMap = self.getRepMap() 00029 repMap["CommandLine"]="" 00030 for cfg in self.configFiles: 00031 repMap["CommandLine"]+= (repMap["CommandLineTemplate"] 00032 %{"cfgFile":cfg, "postProcess":""}) 00033 00034 scripts = {scriptName: replaceByMap(configTemplates.scriptTemplate, 00035 repMap)} 00036 return GenericValidationData.createScript(self, scripts, path)
def trackSplittingValidation::TrackSplittingValidation::getRepMap | ( | self, | |
alignment = None |
|||
) |
Reimplemented from genericValidation::GenericValidation.
Definition at line 40 of file trackSplittingValidation.py.
00041 : 00042 repMap = GenericValidationData.getRepMap(self) 00043 repMap.update({ 00044 "resultFile": replaceByMap( ("/store/caf/user/$USER/.oO[eosdir]Oo." 00045 "/TrackSplitting_" 00046 + self.name + 00047 "_.oO[name]Oo..root"), 00048 repMap ), 00049 "outputFile": replaceByMap( ("TrackSplitting_" 00050 + self.name + 00051 "_.oO[name]Oo..root"), 00052 repMap ), 00053 "nEvents": self.general["maxevents"], 00054 "TrackCollection": self.general["trackcollection"] 00055 }) 00056 repMap["outputFile"] = os.path.expandvars( repMap["outputFile"] ) 00057 repMap["resultFile"] = os.path.expandvars( repMap["resultFile"] ) 00058 # repMap["outputFile"] = os.path.abspath( repMap["outputFile"] ) 00059 # if self.jobmode.split( ',' )[0] == "crab": 00060 # repMap["outputFile"] = os.path.basename( repMap["outputFile"] ) 00061 return repMap