3 import globalDictionaries
4 from genericValidation
import GenericValidationData
5 from helperFunctions
import replaceByMap
6 from TkAlExceptions
import AllInOneError
10 def __init__(self, valName, alignment, config,
11 configBaseName =
"TkAlZMuMuValidation", scriptBaseName =
"TkAlZMuMuValidation", crabCfgBaseName =
"TkAlZMuMuValidation",
12 resultBaseName =
"ZMuMuValidation", outputBaseName =
"ZMuMuValidation"):
14 "zmumureference": (
"/store/caf/user/emiglior/Alignment/TkAlDiMuonValidation/Reference/BiasCheck_DYToMuMu_Summer12_TkAlZMuMu_IDEAL.root"),
17 mandatories = [
"etamaxneg",
"etaminneg",
"etamaxpos",
"etaminpos"]
24 GenericValidationData.__init__(self, valName, alignment, config,
25 "zmumu", addDefaults=defaults,
26 addMandatories=mandatories)
28 raise AllInOneError(
"Parallel jobs not implemented for the Z->mumu validation!\n"
29 "Please set parallelJobs = 1.")
33 self.alignmentToValidate.name )
35 cfgs = {cfgName: configTemplates.ZMuMuValidationTemplate}
36 GenericValidationData.createConfiguration(self, cfgs, path, repMap = repMap)
39 return GenericValidationData.createScript(self, path, template = configTemplates.zMuMuScriptTemplate)
42 return GenericValidationData.createCrabCfg(self, path, self.
crabCfgBaseName)
45 repMap = GenericValidationData.getRepMap(self, alignment)
47 "nEvents": self.
general[
"maxevents"],
49 "outputFile": (
"0_zmumuHisto.root"
50 ",genSimRecoPlots.root"