3 import globalDictionaries
4 from dataset
import Dataset
5 from genericValidation
import GenericValidationData
6 from helperFunctions
import replaceByMap
7 from TkAlExceptions
import AllInOneError
11 configBaseName =
"TkAlMcValidate" 12 scriptBaseName =
"TkAlMcValidate" 13 crabCfgBaseName =
"TkAlMcValidate" 14 resultBaseName =
"McValidation" 15 outputBaseName =
"McValidation" 16 needParentFiles =
True 17 valType =
"mcValidate" 18 def __init__(self, valName, alignment, config):
19 super(MonteCarloValidation, self).
__init__(valName, alignment, config)
21 raise AllInOneError(
"Parallel jobs not implemented for the MC validation!\n" 22 "Please set parallelJobs = 1.")
26 return configTemplates.mcValidateTemplate
29 return super(MonteCarloValidation, self).
createScript(path)
35 repMap = super(MonteCarloValidation, self).
getRepMap(alignment)
37 "nEvents": self.
general[
"maxevents"]
39 repMap[
"outputFile"] = os.path.expandvars( repMap[
"outputFile"] )
40 repMap[
"resultFile"] = os.path.expandvars( repMap[
"resultFile"] )
def getRepMap(self, alignment=None)
def createScript(self, path)
def __init__(self, valName, alignment, config)
def createCrabCfg(self, path)