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.ValidationWithPlots Class Reference
Inheritance diagram for genericValidation.ValidationWithPlots:
genericValidation.GenericValidation genericValidation.ValidationMetaClass genericValidation.ValidationForPresentation genericValidation.ValidationWithPlotsSummaryBase genericValidation.ValidationWithPlotsSummary

Public Member Functions

def appendToPlots
 
def createPlottingScript
 
def doRunPlots
 
def plotsdirname
 
def plottingscriptname
 
def plottingscripttemplate
 
def runPlots
 
- 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 598 of file genericValidation.py.

Member Function Documentation

def genericValidation.ValidationWithPlots.appendToPlots (   self)

Definition at line 604 of file genericValidation.py.

605  def appendToPlots(self):
pass
def genericValidation.ValidationWithPlots.createPlottingScript (   cls,
  validations 
)

Definition at line 625 of file genericValidation.py.

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

626  def createPlottingScript(cls, validations):
627  from .plottingOptions import PlottingOptions
628  repmap = PlottingOptions(None, cls).copy()
629  filename = replaceByMap(".oO[plottingscriptpath]Oo.", repmap)
630  repmap["PlottingInstantiation"] = "\n".join(
631  replaceByMap(v.appendToPlots(), v.getRepMap()).rstrip("\n")
632  for v in validations
633  )
634  plottingscript = replaceByMap(cls.plottingscripttemplate(), repmap)
635  with open(filename, 'w') as f:
636  f.write(plottingscript)
static std::string join(char **cmd)
Definition: RemoteFile.cc:19
def replaceByMap
— Helpers —############################
def genericValidation.ValidationWithPlots.doRunPlots (   cls,
  validations 
)

Definition at line 617 of file genericValidation.py.

References plottingOptions.PlottingOptions(), and helperFunctions.replaceByMap().

618  def doRunPlots(cls, validations):
619  from .plottingOptions import PlottingOptions
620  cls.createPlottingScript(validations)
621  result = cls.runPlots(validations)
622  result = replaceByMap(result, PlottingOptions(None, cls))
623  if result and result[-1] != "\n": result += "\n"
return result
def replaceByMap
— Helpers —############################
def genericValidation.ValidationWithPlots.plotsdirname (   cls)
override with a classmethod

Definition at line 613 of file genericValidation.py.

614  def plotsdirname(cls):
615  """override with a classmethod"""
def genericValidation.ValidationWithPlots.plottingscriptname (   cls)
override with a classmethod

Definition at line 607 of file genericValidation.py.

608  def plottingscriptname(cls):
"""override with a classmethod"""
def genericValidation.ValidationWithPlots.plottingscripttemplate (   cls)
override with a classmethod

Definition at line 610 of file genericValidation.py.

611  def plottingscripttemplate(cls):
"""override with a classmethod"""
def genericValidation.ValidationWithPlots.runPlots (   cls,
  validations 
)

Definition at line 600 of file genericValidation.py.

601  def runPlots(cls, validations):
602  return ("cp .oO[plottingscriptpath]Oo. .\n"
"root -x -b -q .oO[plottingscriptname]Oo.++")