CMS 3D CMS Logo

List of all members | Public Member Functions
genericValidation.ValidationWithPlots Class Reference
Inheritance diagram for genericValidation.ValidationWithPlots:
genericValidation.GenericValidation genericValidation.ValidationMetaClass genericValidation.ValidationForPresentation genericValidation.ValidationWithPlotsSummaryBase overlapValidation.OverlapValidation primaryVertexResolution.PrimaryVertexResolution primaryVertexValidation.PrimaryVertexValidation zMuMuValidation.ZMuMuValidation offlineValidation.OfflineValidation trackSplittingValidation.TrackSplittingValidation genericValidation.ValidationWithPlotsSummary preexistingValidation.PreexistingPrimaryVertexValidation offlineValidation.OfflineValidationDQM preexistingValidation.PreexistingOfflineValidation preexistingValidation.PreexistingTrackSplittingValidation offlineValidation.OfflineValidation trackSplittingValidation.TrackSplittingValidation offlineValidation.OfflineValidationDQM preexistingValidation.PreexistingOfflineValidation preexistingValidation.PreexistingTrackSplittingValidation

Public Member Functions

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 598 of file genericValidation.py.

Member Function Documentation

◆ appendToPlots()

def genericValidation.ValidationWithPlots.appendToPlots (   self)

◆ createPlottingScript()

def genericValidation.ValidationWithPlots.createPlottingScript (   cls,
  validations 
)

Definition at line 625 of file genericValidation.py.

625  def createPlottingScript(cls, validations):
626  from .plottingOptions import PlottingOptions
627  repmap = PlottingOptions(None, cls).copy()
628  filename = replaceByMap(".oO[plottingscriptpath]Oo.", repmap)
629  repmap["PlottingInstantiation"] = "\n".join(
630  replaceByMap(v.appendToPlots(), v.getRepMap()).rstrip("\n")
631  for v in validations
632  )
633  plottingscript = replaceByMap(cls.plottingscripttemplate(), repmap)
634  with open(filename, 'w') as f:
635  f.write(plottingscript)
636 

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

Referenced by genericValidation.ValidationWithPlots.doRunPlots().

◆ doRunPlots()

def genericValidation.ValidationWithPlots.doRunPlots (   cls,
  validations 
)

Definition at line 617 of file genericValidation.py.

617  def doRunPlots(cls, validations):
618  from .plottingOptions import PlottingOptions
619  cls.createPlottingScript(validations)
620  result = cls.runPlots(validations)
621  result = replaceByMap(result, PlottingOptions(None, cls))
622  if result and result[-1] != "\n": result += "\n"
623  return result

References genericValidation.ValidationWithPlots.createPlottingScript(), plottingOptions.PlottingOptions(), helperFunctions.replaceByMap(), and genericValidation.ValidationWithPlots.runPlots().

◆ plotsdirname()

def genericValidation.ValidationWithPlots.plotsdirname (   cls)

◆ plottingscriptname()

def genericValidation.ValidationWithPlots.plottingscriptname (   cls)

◆ plottingscripttemplate()

def genericValidation.ValidationWithPlots.plottingscripttemplate (   cls)

◆ runPlots()

def genericValidation.ValidationWithPlots.runPlots (   cls,
  validations 
)

Reimplemented in primaryVertexValidation.PrimaryVertexValidation, primaryVertexResolution.PrimaryVertexResolution, and overlapValidation.OverlapValidation.

Definition at line 600 of file genericValidation.py.

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

Referenced by genericValidation.ValidationWithPlots.doRunPlots().

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