Public Member Functions | |
def | __init__ |
def | createConfiguration |
def | createCrabCfg |
def | createScript |
def | getRepMap |
Public Attributes | |
crabWorkingDir | |
jobmode |
Definition at line 895 of file validateAlignments.py.
def validateAlignments::ZMuMuValidation::__init__ | ( | self, | |
valName, | |||
alignment, | |||
config | |||
) |
Reimplemented from validateAlignments::GenericValidation.
Definition at line 896 of file validateAlignments.py.
00897 : 00898 GenericValidation.__init__(self, valName, alignment, config) 00899 defaults = { 00900 "zmumureference": ("/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN2" 00901 "/TMP_EM/ZMuMu/data/MC/BiasCheck_DYToMuMu_Summer" 00902 "11_TkAlZMuMu_IDEAL.root"), 00903 "jobmode":self.jobmode, 00904 "runRange":"", 00905 "JSON":"" 00906 } 00907 mandatories = [ "dataset", "maxevents", "etamax1", "etamin1", "etamax2", 00908 "etamin2" ] 00909 if not config.has_section( "zmumu:"+self.name ): 00910 zmumu = config.getResultingSection( "general", 00911 defaultDict = defaults, 00912 demandPars = mandatories ) 00913 else: 00914 zmumu = config.getResultingSection( "zmumu:"+self.name, 00915 defaultDict = defaults, 00916 demandPars = mandatories ) 00917 self.general.update( zmumu ) 00918 self.jobmode = self.general["jobmode"]
def validateAlignments::ZMuMuValidation::createConfiguration | ( | self, | |
path, | |||
configBaseName = "TkAlZMuMuValidation" |
|||
) |
Definition at line 919 of file validateAlignments.py.
def validateAlignments::ZMuMuValidation::createCrabCfg | ( | self, | |
path, | |||
crabCfgBaseName = "TkAlZMuMuValidation" |
|||
) |
Reimplemented from validateAlignments::GenericValidation.
Definition at line 938 of file validateAlignments.py.
00940 : 00941 crabCfgName = "crab.%s.%s.%s.cfg"%( crabCfgBaseName, self.name, 00942 self.alignmentToValidate.name ) 00943 repMap = self.getRepMap() 00944 repMap["script"] = "dummy_script.sh" 00945 repMap["crabOutputDir"] = os.path.basename( path ) 00946 repMap["crabWorkingDir"] = crabCfgName.split( '.cfg' )[0] 00947 self.crabWorkingDir = repMap["crabWorkingDir"] 00948 repMap["numberOfJobs"] = self.general["parallelJobs"] 00949 repMap["cfgFile"] = self.configFiles[0] 00950 repMap["queue"] = self.jobmode.split( ',' )[1].split( '-q' )[1] 00951 crabCfg = {crabCfgName: replaceByMap( configTemplates.crabCfgTemplate, 00952 repMap ) } 00953 return GenericValidation.createCrabCfg( self, crabCfg, path )
def validateAlignments::ZMuMuValidation::createScript | ( | self, | |
path, | |||
scriptBaseName = "TkAlZMuMuValidation" |
|||
) |
Definition at line 926 of file validateAlignments.py.
00927 : 00928 scriptName = "%s.%s.%s.sh"%(scriptBaseName, self.name, 00929 self.alignmentToValidate.name ) 00930 repMap = self.getRepMap() 00931 repMap["CommandLine"]="" 00932 for cfg in self.configFiles: 00933 repMap["CommandLine"]+= repMap["CommandLineTemplate"]%{"cfgFile":cfg, 00934 "postProcess":"" 00935 } 00936 scripts = {scriptName: replaceByMap( configTemplates.zMuMuScriptTemplate, repMap ) } 00937 return GenericValidation.createScript(self, scripts, path)
def validateAlignments::ZMuMuValidation::getRepMap | ( | self, | |
alignment = None |
|||
) |
Reimplemented from validateAlignments::GenericValidation.
Definition at line 954 of file validateAlignments.py.
Definition at line 938 of file validateAlignments.py.
Reimplemented from validateAlignments::GenericValidation.
Definition at line 896 of file validateAlignments.py.