CMS 3D CMS Logo

List of all members | Public Member Functions
genericValidation.ValidationWithPlotsSummary Class Reference
Inheritance diagram for genericValidation.ValidationWithPlotsSummary:
genericValidation.ValidationWithPlotsSummaryBase genericValidation.ValidationWithPlots genericValidation.GenericValidation genericValidation.ValidationMetaClass offlineValidation.OfflineValidation trackSplittingValidation.TrackSplittingValidation offlineValidation.OfflineValidationDQM preexistingValidation.PreexistingOfflineValidation preexistingValidation.PreexistingTrackSplittingValidation

Public Member Functions

def getsummaryitems (cls, folder)
 
- Public Member Functions inherited from genericValidation.ValidationWithPlotsSummaryBase
def printsummaryitems (cls, *args, **kwargs)
 
def summaryitemsstring (cls, folder=None, latex=False, transpose=True)
 
def writesummaryitems (cls, filename, *args, **kwargs)
 
- Public Member Functions inherited from genericValidation.ValidationWithPlots
def appendToPlots (self)
 
def createPlottingScript (cls, validations)
 
def doRunPlots (cls, validations)
 
def plotsdirname (cls)
 
def plottingscriptname (cls)
 
def plottingscripttemplate (cls)
 
def runPlots (cls, validations)
 
- Public Member Functions inherited from genericValidation.GenericValidation
def __init__ (self, valName, alignment, config)
 
def createConfiguration (self, fileContents, path, schedule=None, repMap=None, repMaps=None)
 
def createCrabCfg (self, fileContents, path)
 
def createFiles (self, fileContents, path, repMap=None, repMaps=None)
 
def createScript (self, fileContents, path, downloadFiles=[], repMap=None, repMaps=None)
 
def filesToCompare (self)
 
def getCompareStrings (self, requestId=None, plain=False)
 
def getRepMap (self, alignment=None)
 
- Public Member Functions inherited from genericValidation.ValidationMetaClass
def __new__ (cls, clsname, bases, dct)
 

Additional Inherited Members

- Public Attributes inherited from genericValidation.GenericValidation
 alignmentToValidate
 
 AutoAlternates
 
 cmssw
 
 cmsswreleasebase
 
 config
 
 configFiles
 
 crabConfigFiles
 
 general
 
 jobid
 
 jobmode
 
 name
 
 needsproxy
 
 NJobs
 
 packages
 
 randomWorkdirPart
 
 scramarch
 
 scriptFiles
 
- Static Public Attributes inherited from genericValidation.GenericValidation
string defaultReferenceName = "DEFAULT"
 
dictionary defaults
 
 mandatories = set()
 
dictionary needpackages = {"Alignment/OfflineValidation"}
 
dictionary optionals = {"jobmode"}
 
- Static Public Attributes inherited from genericValidation.ValidationMetaClass
list dicts = ["defaults"]
 
list sets = ["mandatories", "optionals", "needpackages"]
 

Detailed Description

Definition at line 747 of file genericValidation.py.

Member Function Documentation

◆ getsummaryitems()

def genericValidation.ValidationWithPlotsSummary.getsummaryitems (   cls,
  folder 
)
override with a classmethod that returns a list of SummaryItems
   based on the plots saved in folder

Reimplemented from genericValidation.ValidationWithPlotsSummaryBase.

Definition at line 749 of file genericValidation.py.

749  def getsummaryitems(cls, folder):
750  result = []
751  with open(os.path.join(folder, "{}Summary.txt".format(cls.__name__))) as f:
752  for line in f:
753  split = line.rstrip("\n").split("\t")
754  kwargs = {}
755  for thing in split[:]:
756  if thing.startswith("format="):
757  kwargs["format"] = thing.replace("format=", "", 1)
758  split.remove(thing)
759  if thing.startswith("latexname="):
760  kwargs["latexname"] = thing.replace("latexname=", "", 1)
761  split.remove(thing)
762  if thing.startswith("latexformat="):
763  kwargs["latexformat"] = thing.replace("latexformat=", "", 1)
764  split.remove(thing)
765 
766  name = split[0]
767  values = split[1:]
768  result.append(cls.SummaryItem(name, values, **kwargs))
769  return result
770 

References Types._Untracked.__name__, and submitPVValidationJobs.split().

submitPVValidationJobs.split
def split(sequence, size)
Definition: submitPVValidationJobs.py:352
format