def getRepMap(self): result = self.general result.update({ "color": str(parsecolor(result["color"])), "style": str(parsestyle(result["style"])), }) return result
def __init__(self, name, config, runGeomComp = "1"): section = "alignment:%s"%name if not config.has_section( section ): raise AllInOneError("section %s not found. Please define the " "alignment!"%section) config.checkInput(section, knownSimpleOptions = ['globaltag', 'style', 'color', 'title', 'mp', 'mp_alignments', 'mp_deformations', 'mp_APEs', 'hp', 'hp_alignments', 'hp_deformations', 'sm', 'sm_alignments', 'sm_deformations'], knownKeywords = ['condition']) self.name = clean_name(name) if config.exists(section,"title"): self.title = config.get(section,"title") else: self.title = self.name if (int(runGeomComp) != 1): self.name += "_run" + runGeomComp self.title += " run " + runGeomComp if "|" in self.title or "," in self.title or '"' in self.title: msg = "The characters '|', '\"', and ',' cannot be used in the alignment title!" raise AllInOneError(msg) self.runGeomComp = runGeomComp self.globaltag = config.get( section, "globaltag" ) self.conditions = self.__getConditions( config, section ) self.color = config.get(section,"color") self.style = config.get(section,"style") self.color = str(parsecolor(self.color)) self.style = str(parsestyle(self.style))
def getRepMap(self): #do not call super try: result = PlottingOptions(self.config, self.valType) except KeyError: result = {} result.update(self.general) result.update({ "color": str(parsecolor(result["color"])), "style": str(parsestyle(result["style"])), }) return result
def __init__(self, name, config, runGeomComp="1"): self.condShorts = { "TrackerAlignmentErrorExtendedRcd": { "zeroAPE": { "connectString": ("frontier://FrontierProd" "/CMS_CONDITIONS"), "tagName": "TrackerIdealGeometryErrorsExtended210_mc", "labelName": "" } }, "TrackerSurfaceDeformationRcd": { "zeroDeformations": { "connectString": ("frontier://FrontierProd" "/CMS_CONDITIONS"), "tagName": "TrackerSurfaceDeformations_zero", "labelName": "" } }, } section = "alignment:%s" % name if not config.has_section(section): raise AllInOneError("section %s not found. Please define the " "alignment!" % section) config.checkInput( section, knownSimpleOptions=['globaltag', 'style', 'color', 'title'], knownKeywords=['condition']) self.name = name if config.exists(section, "title"): self.title = config.get(section, "title") else: self.title = self.name if (int(runGeomComp) != 1): self.name += "_run" + runGeomComp self.title += " run " + runGeomComp if "|" in self.title or "," in self.title or '"' in self.title: msg = "The characters '|', '\"', and ',' cannot be used in the alignment title!" raise AllInOneError(msg) self.runGeomComp = runGeomComp self.globaltag = config.get(section, "globaltag") self.conditions = self.__getConditions(config, section) self.color = config.get(section, "color") self.style = config.get(section, "style") self.color = str(parsecolor(self.color)) self.style = str(parsestyle(self.style))
def __init__(self, name, config, runGeomComp = "1"): self.condShorts = { "TrackerAlignmentErrorExtendedRcd": { "zeroAPE": { "connectString":("frontier://FrontierProd" "/CMS_CONDITIONS"), "tagName": "TrackerIdealGeometryErrorsExtended210_mc", "labelName": "" } }, "TrackerSurfaceDeformationRcd": { "zeroDeformations": { "connectString":("frontier://FrontierProd" "/CMS_CONDITIONS"), "tagName": "TrackerSurfaceDeformations_zero", "labelName": "" } }, } section = "alignment:%s"%name if not config.has_section( section ): raise AllInOneError("section %s not found. Please define the " "alignment!"%section) config.checkInput(section, knownSimpleOptions = ['globaltag', 'style', 'color', 'title'], knownKeywords = ['condition']) self.name = name if config.exists(section,"title"): self.title = config.get(section,"title") else: self.title = self.name if (int(runGeomComp) != 1): self.name += "_run" + runGeomComp self.title += " run " + runGeomComp if "|" in self.title or "," in self.title or '"' in self.title: msg = "The characters '|', '\"', and ',' cannot be used in the alignment title!" raise AllInOneError(msg) self.runGeomComp = runGeomComp self.globaltag = config.get( section, "globaltag" ) self.conditions = self.__getConditions( config, section ) self.color = config.get(section,"color") self.style = config.get(section,"style") self.color = str(parsecolor(self.color)) self.style = str(parsestyle(self.style))