3 from genericValidation
import GenericValidationData
4 from helperFunctions
import replaceByMap
5 from TkAlExceptions
import AllInOneError
9 def __init__(self, valName, alignment, config,
10 configBaseName =
"TkAlTrackSplitting", scriptBaseName =
"TkAlTrackSplitting", crabCfgBaseName =
"TkAlTrackSplitting",
11 resultBaseName =
"TrackSplitting", outputBaseName =
"TrackSplitting"):
12 mandatories = [
"trackcollection"]
19 GenericValidationData.__init__(self, valName, alignment, config,
20 "split", addMandatories = mandatories)
24 self.alignmentToValidate.name)
26 cfgs = {cfgName: configTemplates.TrackSplittingTemplate}
27 self.
filesToCompare[GenericValidationData.defaultReferenceName] = \
28 repMap[
"finalResultFile"]
29 GenericValidationData.createConfiguration(self, cfgs, path, repMap = repMap)
32 return GenericValidationData.createScript(self, path)
35 return GenericValidationData.createCrabCfg(self, path, self.
crabCfgBaseName)
38 repMap = GenericValidationData.getRepMap(self)
40 "nEvents": self.
general[
"maxevents"],
41 "TrackCollection": self.
general[
"trackcollection"]
51 if no argument or "" is passed a string with an instantiation is
52 returned, else the validation is appended to the list
56 if validationsSoFar !=
"":
57 validationsSoFar +=
','
58 validationsSoFar += comparestring
59 return validationsSoFar
63 if no argument or "" is passed a string with an instantiation is returned,
64 else the validation is appended to the list
68 parameters =
" ".
join(repMap[
"outputFiles"])
70 mergedoutputfile = repMap[
"finalOutputFile"]
71 validationsSoFar +=
"hadd %s %s\n" % (mergedoutputfile, parameters)
72 return validationsSoFar
static std::string join(char **cmd)
def appendToExtendedValidation