CMS 3D CMS Logo

List of all members | Public Member Functions
genericValidation.ValidationWithComparison Class Reference
Inheritance diagram for genericValidation.ValidationWithComparison:
genericValidation.GenericValidation 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)
 

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"}
 

Detailed Description

Definition at line 762 of file genericValidation.py.

Member Function Documentation

def genericValidation.ValidationWithComparison.comparealignmentsname (   cls)
classmethod

Definition at line 779 of file genericValidation.py.

780  """classmethod"""
781 
def genericValidation.ValidationWithComparison.comparealignmentspath (   cls)

Definition at line 776 of file genericValidation.py.

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

Definition at line 773 of file genericValidation.py.

Referenced by genericValidation.ValidationWithComparison.doComparison().

774  return configTemplates.compareAlignmentsExecution
def genericValidation.ValidationWithComparison.doComparison (   cls,
  validations 
)

Definition at line 764 of file genericValidation.py.

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

764  def doComparison(cls, validations):
765  from plottingOptions import PlottingOptions
766  repmap = PlottingOptions(None, cls).copy()
767  repmap["compareStrings"] = " , ".join(v.getCompareStrings("OfflineValidation") for v in validations)
768  repmap["compareStringsPlain"] = " , ".join(v.getCompareStrings("OfflineValidation", True) for v in validations)
769  comparison = replaceByMap(cls.comparisontemplate(), repmap)
770  return comparison
771 
def PlottingOptions(config, valType)
def replaceByMap(target, the_map)
— Helpers —############################
static std::string join(char **cmd)
Definition: RemoteFile.cc:18