3 import globalDictionaries
4 from dataset
import Dataset
5 from genericValidation
import GenericValidationData
6 from helperFunctions
import replaceByMap
7 from TkAlExceptions
import AllInOneError
11 def __init__(self, valName, alignment, config,
12 configBaseName =
"TkAlMcValidate", scriptBaseName =
"TkAlMcValidate", crabCfgBaseName =
"TkAlMcValidate",
13 resultBaseName =
"McValidation", outputBaseName =
"McValidation"):
20 GenericValidationData.__init__(self, valName, alignment, config,
23 raise AllInOneError(
"Parallel jobs not implemented for the MC validation!\n"
24 "Please set parallelJobs = 1.")
28 self.alignmentToValidate.name)
30 cfgs = {cfgName: configTemplates.mcValidateTemplate}
31 self.
filesToCompare[GenericValidationData.defaultReferenceName] = \
32 repMap[
"finalResultFile"]
33 GenericValidationData.createConfiguration(self, cfgs, path, repMap = repMap)
36 return GenericValidationData.createScript(self, path)
39 return GenericValidationData.createCrabCfg(self, path, self.
crabCfgBaseName)
42 repMap = GenericValidationData.getRepMap(self, alignment)
44 "nEvents": self.
general[
"maxevents"]
46 repMap[
"outputFile"] = os.path.expandvars( repMap[
"outputFile"] )
47 repMap[
"resultFile"] = os.path.expandvars( repMap[
"resultFile"] )