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 | Private Attributes
trackingPlots.TrackingPlotFolder Class Reference
Inheritance diagram for trackingPlots.TrackingPlotFolder:

Public Member Functions

def __init__
 
def isAlgoIterative
 
def iterSelectionName
 
def limitSubFolder
 
def translateSubFolder
 

Private Attributes

 _fallbackRefFiles
 

Detailed Description

Definition at line 896 of file trackingPlots.py.

Constructor & Destructor Documentation

def trackingPlots.TrackingPlotFolder.__init__ (   self,
  args,
  kwargs 
)

Definition at line 897 of file trackingPlots.py.

898  def __init__(self, *args, **kwargs):
899  self._fallbackRefFiles = kwargs.pop("fallbackRefFiles", [])
900  PlotFolder.__init__(self, *args, **kwargs)

Member Function Documentation

def trackingPlots.TrackingPlotFolder.isAlgoIterative (   self,
  algo 
)

Definition at line 934 of file trackingPlots.py.

935  def isAlgoIterative(self, algo):
936  return algo not in _possibleTrackingNonIterationColls
def trackingPlots.TrackingPlotFolder.iterSelectionName (   self,
  plotFolderName,
  translatedDqmSubFolder 
)

Definition at line 908 of file trackingPlots.py.

References trackingPlots.TrackingPlotFolder._fallbackRefFiles.

909  def iterSelectionName(self, plotFolderName, translatedDqmSubFolder):
910  (algoOrig, quality) = translatedDqmSubFolder
911 
912  for fallback in [lambda n: n]+self._fallbackRefFiles:
913  algo = fallback(algoOrig)
914 
915  ret = ""
916  if plotFolderName != "":
917  ret += "_"+plotFolderName
918  if quality != "":
919  ret += "_"+quality
920  if not (algo == "ootb" and quality != ""):
921  ret += "_"+algo
922  yield ret
def trackingPlots.TrackingPlotFolder.limitSubFolder (   self,
  limitOnlyTo,
  translatedDqmSubFolder 
)
Return True if this subfolder should be processed

Arguments:
limitOnlyTo            -- Function '(algo, quality) -> bool'
translatedDqmSubFolder -- Return value of translateSubFolder

Definition at line 923 of file trackingPlots.py.

924  def limitSubFolder(self, limitOnlyTo, translatedDqmSubFolder):
925  """Return True if this subfolder should be processed
926 
927  Arguments:
928  limitOnlyTo -- Function '(algo, quality) -> bool'
929  translatedDqmSubFolder -- Return value of translateSubFolder
930  """
931  (algo, quality) = translatedDqmSubFolder
932  return limitOnlyTo(algo, quality)
def trackingPlots.TrackingPlotFolder.translateSubFolder (   self,
  dqmSubFolderName 
)

Definition at line 901 of file trackingPlots.py.

References trackingPlots._mapCollectionToAlgoQuality().

902  def translateSubFolder(self, dqmSubFolderName):
903  spl = dqmSubFolderName.split("_")
904  if len(spl) != 2:
905  return None
906  collName = spl[0]
907  return _mapCollectionToAlgoQuality(collName)
def _mapCollectionToAlgoQuality

Member Data Documentation

trackingPlots.TrackingPlotFolder._fallbackRefFiles
private

Definition at line 898 of file trackingPlots.py.

Referenced by trackingPlots.TrackingPlotFolder.iterSelectionName().