CMS 3D CMS Logo

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

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

Member Function Documentation

def genericValidation.ValidationWithPlots.appendToPlots (   self)

Definition at line 603 of file genericValidation.py.

def genericValidation.ValidationWithPlots.createPlottingScript (   cls,
  validations 
)

Definition at line 624 of file genericValidation.py.

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

Referenced by genericValidation.ValidationWithPlots.doRunPlots().

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

Definition at line 616 of file genericValidation.py.

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

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

Definition at line 612 of file genericValidation.py.

Referenced by genericValidation.ValidationWithPlotsSummaryBase.summaryitemsstring(), and presentation.ValidationPlots.validationclass().

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

Definition at line 606 of file genericValidation.py.

607  """override with a classmethod"""
def genericValidation.ValidationWithPlots.plottingscripttemplate (   cls)
override with a classmethod

Definition at line 609 of file genericValidation.py.

Referenced by genericValidation.ValidationWithPlots.createPlottingScript().

610  """override with a classmethod"""
def genericValidation.ValidationWithPlots.runPlots (   cls,
  validations 
)

Definition at line 599 of file genericValidation.py.

Referenced by genericValidation.ValidationWithPlots.doRunPlots().

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