3 import globalDictionaries
4 from genericValidation
import GenericValidationData
5 from helperFunctions
import replaceByMap
6 from TkAlExceptions
import AllInOneError
12 "zmumureference": (
"/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN2"
13 "/TMP_EM/ZMuMu/data/MC/BiasCheck_DYToMuMu_Summer"
14 "11_TkAlZMuMu_IDEAL.root"),
17 mandatories = [
"dataset",
"maxevents",
18 "etamaxneg",
"etaminneg",
"etamaxpos",
"etaminpos"]
19 GenericValidationData.__init__(self, valName, alignment, config,
20 "zmumu", addDefaults=defaults,
21 addMandatories=mandatories)
24 cfgName =
"%s.%s.%s_cfg.py"%( configBaseName, self.
name,
25 self.alignmentToValidate.name )
27 cfgs = {cfgName:
replaceByMap(configTemplates.ZMuMuValidationTemplate,
29 GenericValidationData.createConfiguration(self, cfgs, path)
31 def createScript(self, path, scriptBaseName = "TkAlZMuMuValidation"):
32 scriptName =
"%s.%s.%s.sh"%(scriptBaseName, self.
name,
33 self.alignmentToValidate.name )
35 repMap[
"CommandLine"]=
""
37 repMap[
"CommandLine"]+= repMap[
"CommandLineTemplate"]%{
"cfgFile":cfg,
40 scripts = {scriptName:
replaceByMap(configTemplates.zMuMuScriptTemplate,
42 return GenericValidationData.createScript(self, scripts, path)
46 return GenericValidationData.createCrabCfg(self, path, crabCfgBaseName)
49 repMap = GenericValidationData.getRepMap(self, alignment)
51 "nEvents": self.
general[
"maxevents"],
53 "outputFile": (
"0_zmumuHisto.root"
54 ",genSimRecoPlots.root"
def replaceByMap
— Helpers —############################