CMS 3D CMS Logo

List of all members | Public Member Functions
genericValidation.ValidationWithComparison Class Reference
Inheritance diagram for genericValidation.ValidationWithComparison:
genericValidation.GenericValidation genericValidation.ValidationMetaClass offlineValidation.OfflineValidation offlineValidation.OfflineValidationDQM preexistingValidation.PreexistingOfflineValidation

Public Member Functions

def comparealignmentsname (cls)
 
def comparealignmentspath (cls)
 
def comparisontemplate (cls)
 
def doComparison (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 771 of file genericValidation.py.

Member Function Documentation

◆ comparealignmentsname()

def genericValidation.ValidationWithComparison.comparealignmentsname (   cls)
classmethod

Reimplemented in offlineValidation.OfflineValidation.

Definition at line 788 of file genericValidation.py.

788  def comparealignmentsname(cls):
789  """classmethod"""
790 

◆ comparealignmentspath()

def genericValidation.ValidationWithComparison.comparealignmentspath (   cls)

Definition at line 785 of file genericValidation.py.

785  def comparealignmentspath(cls):
786  return ".oO[Alignment/OfflineValidation]Oo./scripts/.oO[compareAlignmentsName]Oo."

◆ comparisontemplate()

def genericValidation.ValidationWithComparison.comparisontemplate (   cls)

Definition at line 782 of file genericValidation.py.

782  def comparisontemplate(cls):
783  return configTemplates.compareAlignmentsExecution

Referenced by genericValidation.ValidationWithComparison.doComparison().

◆ doComparison()

def genericValidation.ValidationWithComparison.doComparison (   cls,
  validations 
)

Definition at line 773 of file genericValidation.py.

773  def doComparison(cls, validations):
774  from .plottingOptions import PlottingOptions
775  repmap = PlottingOptions(None, cls).copy()
776  repmap["compareStrings"] = " , ".join(v.getCompareStrings("OfflineValidation") for v in validations)
777  repmap["compareStringsPlain"] = " , ".join(v.getCompareStrings("OfflineValidation", True) for v in validations)
778  comparison = replaceByMap(cls.comparisontemplate(), repmap)
779  return comparison
780 

References genericValidation.ValidationWithComparison.comparisontemplate(), filterCSVwithJSON.copy, join(), plottingOptions.PlottingOptions(), and helperFunctions.replaceByMap().

filterCSVwithJSON.copy
copy
Definition: filterCSVwithJSON.py:36
join
static std::string join(char **cmd)
Definition: RemoteFile.cc:17
helperFunctions.replaceByMap
def replaceByMap(target, the_map)
— Helpers —############################
Definition: helperFunctions.py:12
plottingOptions.PlottingOptions
def PlottingOptions(config, valType)
Definition: plottingOptions.py:239