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 Member Functions
trackingPlots.TrackingPlotFolder Class Reference
Inheritance diagram for trackingPlots.TrackingPlotFolder:
plotting.PlotFolder

Public Member Functions

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

Private Member Functions

def _init__
 

Detailed Description

Definition at line 413 of file trackingPlots.py.

Member Function Documentation

def trackingPlots.TrackingPlotFolder._init__ (   self,
  args,
  kwargs 
)
private

Definition at line 414 of file trackingPlots.py.

References plotting.PlotFolder.__init__().

415  def _init__(self, *args, **kwargs):
416  super(TrackingPlotFolder, self).__init__(*args, **kwargs)
def trackingPlots.TrackingPlotFolder.getSelectionName (   self,
  plotFolderName,
  translatedDqmSubFolder 
)

Definition at line 424 of file trackingPlots.py.

425  def getSelectionName(self, plotFolderName, translatedDqmSubFolder):
426  (algo, quality) = translatedDqmSubFolder
427 
428  ret = ""
429  if plotFolderName != "":
430  ret += "_"+plotFolderName
431  if quality != "":
432  ret += "_"+quality
433  if not (algo == "ootb" and quality != ""):
434  ret += "_"+algo
435 
436  return 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 437 of file trackingPlots.py.

438  def limitSubFolder(self, limitOnlyTo, translatedDqmSubFolder):
439  """Return True if this subfolder should be processed
440 
441  Arguments:
442  limitOnlyTo -- Function '(algo, quality) -> bool'
443  translatedDqmSubFolder -- Return value of translateSubFolder
444  """
445  (algo, quality) = translatedDqmSubFolder
446  return limitOnlyTo(algo, quality)
def trackingPlots.TrackingPlotFolder.translateSubFolder (   self,
  dqmSubFolderName 
)

Definition at line 417 of file trackingPlots.py.

References trackingPlots._mapCollectionToAlgoQuality().

418  def translateSubFolder(self, dqmSubFolderName):
419  spl = dqmSubFolderName.split("_")
420  if len(spl) != 2:
421  return None
422  collName = spl[0]
423  return _mapCollectionToAlgoQuality(collName)
def _mapCollectionToAlgoQuality