1 from __future__
import absolute_import
3 from .
import configTemplates
4 from .
import globalDictionaries
5 from .dataset
import Dataset
6 from .genericValidation
import GenericValidationData
7 from .helperFunctions
import replaceByMap
8 from .TkAlExceptions
import AllInOneError
12 configBaseName =
"TkAlMcValidate" 13 scriptBaseName =
"TkAlMcValidate" 14 crabCfgBaseName =
"TkAlMcValidate" 15 resultBaseName =
"McValidation" 16 outputBaseName =
"McValidation" 17 needParentFiles =
True 18 valType =
"mcValidate" 19 def __init__(self, valName, alignment, config):
20 super(MonteCarloValidation, self).
__init__(valName, alignment, config)
22 raise AllInOneError(
"Parallel jobs not implemented for the MC validation!\n" 23 "Please set parallelJobs = 1.")
27 return configTemplates.mcValidateTemplate
30 return super(MonteCarloValidation, self).
createScript(path)
36 repMap = super(MonteCarloValidation, self).
getRepMap(alignment)
38 "nEvents": self.
general[
"maxevents"]
40 repMap[
"outputFile"] = os.path.expandvars( repMap[
"outputFile"] )
41 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)