3 import globalDictionaries
4 from genericValidation
import GenericValidationData
5 from helperFunctions
import replaceByMap
6 from TkAlExceptions
import AllInOneError
12 "zmumureference": (
"/store/caf/user/emiglior/Alignment/TkAlDiMuonValidation/Reference/BiasCheck_DYToMuMu_Summer12_TkAlZMuMu_IDEAL.root"),
15 mandatories = [
"dataset",
"maxevents",
16 "etamaxneg",
"etaminneg",
"etamaxpos",
"etaminpos"]
17 GenericValidationData.__init__(self, valName, alignment, config,
18 "zmumu", addDefaults=defaults,
19 addMandatories=mandatories)
22 cfgName =
"%s.%s.%s_cfg.py"%( configBaseName, self.
name,
23 self.alignmentToValidate.name )
25 cfgs = {cfgName:
replaceByMap(configTemplates.ZMuMuValidationTemplate,
27 GenericValidationData.createConfiguration(self, cfgs, path)
29 def createScript(self, path, scriptBaseName = "TkAlZMuMuValidation"):
30 scriptName =
"%s.%s.%s.sh"%(scriptBaseName, self.
name,
31 self.alignmentToValidate.name )
33 repMap[
"CommandLine"]=
""
35 repMap[
"CommandLine"]+= repMap[
"CommandLineTemplate"]%{
"cfgFile":cfg,
38 scripts = {scriptName:
replaceByMap(configTemplates.zMuMuScriptTemplate,
40 return GenericValidationData.createScript(self, scripts, path)
44 return GenericValidationData.createCrabCfg(self, path, crabCfgBaseName)
47 repMap = GenericValidationData.getRepMap(self, alignment)
49 "nEvents": self.
general[
"maxevents"],
51 "outputFile": (
"0_zmumuHisto.root"
52 ",genSimRecoPlots.root"
def replaceByMap
— Helpers —############################