CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
genericValidation.ValidationWithComparison Class Reference
Inheritance diagram for genericValidation.ValidationWithComparison:
genericValidation.GenericValidation genericValidation.ValidationMetaClass

Public Member Functions

def comparealignmentsname
 
def comparealignmentspath
 
def comparisontemplate
 
def doComparison
 
- Public Member Functions inherited from genericValidation.GenericValidation
def __init__
 
def createConfiguration
 
def createCrabCfg
 
def createFiles
 
def createScript
 
def filesToCompare
 
def getCompareStrings
 
def getRepMap
 
- Public Member Functions inherited from genericValidation.ValidationMetaClass
def __new__
 

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
 
tuple 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

def genericValidation.ValidationWithComparison.comparealignmentsname (   cls)
classmethod

Definition at line 788 of file genericValidation.py.

789  def comparealignmentsname(cls):
790  """classmethod"""
def genericValidation.ValidationWithComparison.comparealignmentspath (   cls)

Definition at line 785 of file genericValidation.py.

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

Definition at line 782 of file genericValidation.py.

783  def comparisontemplate(cls):
return configTemplates.compareAlignmentsExecution
def genericValidation.ValidationWithComparison.doComparison (   cls,
  validations 
)

Definition at line 773 of file genericValidation.py.

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

774  def doComparison(cls, validations):
775  from .plottingOptions import PlottingOptions
776  repmap = PlottingOptions(None, cls).copy()
777  repmap["compareStrings"] = " , ".join(v.getCompareStrings("OfflineValidation") for v in validations)
778  repmap["compareStringsPlain"] = " , ".join(v.getCompareStrings("OfflineValidation", True) for v in validations)
779  comparison = replaceByMap(cls.comparisontemplate(), repmap)
780  return comparison
static std::string join(char **cmd)
Definition: RemoteFile.cc:19
def replaceByMap
— Helpers —############################