test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
trackingPlots.TrackingPlotFolder Class Reference
Inheritance diagram for trackingPlots.TrackingPlotFolder:
plotting.PlotFolder

Public Member Functions

def __init__
 
def isAlgoIterative
 
def iterSelectionName
 
def limitSubFolder
 
def translateSubFolder
 
- Public Member Functions inherited from plotting.PlotFolder
def __init__
 
def append
 
def create
 
def draw
 
def getPage
 
def getPlotGroup
 
def getPlotGroups
 
def getPurpose
 
def getSection
 
def iterSelectionName
 
def limitSubFolder
 
def loopSubFolders
 
def onlyForPileup
 
def set
 
def translateSubFolder
 

Private Attributes

 _fallbackRefFiles
 

Detailed Description

Definition at line 639 of file trackingPlots.py.

Constructor & Destructor Documentation

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

Definition at line 640 of file trackingPlots.py.

641  def __init__(self, *args, **kwargs):
642  self._fallbackRefFiles = kwargs.pop("fallbackRefFiles", [])
643  PlotFolder.__init__(self, *args, **kwargs)

Member Function Documentation

def trackingPlots.TrackingPlotFolder.isAlgoIterative (   self,
  algo 
)

Definition at line 677 of file trackingPlots.py.

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

Definition at line 651 of file trackingPlots.py.

References trackingPlots.TrackingPlotFolder._fallbackRefFiles.

652  def iterSelectionName(self, plotFolderName, translatedDqmSubFolder):
653  (algoOrig, quality) = translatedDqmSubFolder
654 
655  for fallback in [lambda n: n]+self._fallbackRefFiles:
656  algo = fallback(algoOrig)
657 
658  ret = ""
659  if plotFolderName != "":
660  ret += "_"+plotFolderName
661  if quality != "":
662  ret += "_"+quality
663  if not (algo == "ootb" and quality != ""):
664  ret += "_"+algo
665  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 666 of file trackingPlots.py.

667  def limitSubFolder(self, limitOnlyTo, translatedDqmSubFolder):
668  """Return True if this subfolder should be processed
669 
670  Arguments:
671  limitOnlyTo -- Function '(algo, quality) -> bool'
672  translatedDqmSubFolder -- Return value of translateSubFolder
673  """
674  (algo, quality) = translatedDqmSubFolder
675  return limitOnlyTo(algo, quality)
def trackingPlots.TrackingPlotFolder.translateSubFolder (   self,
  dqmSubFolderName 
)

Definition at line 644 of file trackingPlots.py.

References trackingPlots._mapCollectionToAlgoQuality().

645  def translateSubFolder(self, dqmSubFolderName):
646  spl = dqmSubFolderName.split("_")
647  if len(spl) != 2:
648  return None
649  collName = spl[0]
650  return _mapCollectionToAlgoQuality(collName)
def _mapCollectionToAlgoQuality

Member Data Documentation

trackingPlots.TrackingPlotFolder._fallbackRefFiles
private

Definition at line 641 of file trackingPlots.py.

Referenced by trackingPlots.TrackingPlotFolder.iterSelectionName().