CMS 3D CMS Logo

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__ (self, args, kwargs)
 
def isAlgoIterative (self, algo)
 
def iterSelectionName (self, plotFolderName, translatedDqmSubFolder)
 
def limitSubFolder (self, limitOnlyTo, translatedDqmSubFolder)
 
def translateSubFolder (self, dqmSubFolderName)
 
- Public Member Functions inherited from plotting.PlotFolder
def __init__ (self, plotGroups, kwargs)
 
def append (self, plotGroup)
 
def create (self, dirsNEvents, labels, isPileupSample=True, requireAllHistograms=False)
 
def draw (self, prefix=None, separate=False, saveFormat=".pdf", ratio=True, directory="")
 
def getNumberOfEventsHistogram (self)
 
def getPage (self)
 
def getPlotGroup (self, name)
 
def getPlotGroups (self)
 
def getPurpose (self)
 
def getSection (self)
 
def iterSelectionName (self, plotFolderName, translatedDqmSubFolder)
 
def limitSubFolder (self, limitOnlyTo, translatedDqmSubFolder)
 
def loopSubFolders (self)
 
def onlyForBHadron (self)
 
def onlyForConversion (self)
 
def onlyForElectron (self)
 
def onlyForPileup (self)
 
def set (self, plotGroups)
 
def translateSubFolder (self, dqmSubFolderName)
 

Private Attributes

 _fallbackRefFiles
 

Detailed Description

Definition at line 904 of file trackingPlots.py.

Constructor & Destructor Documentation

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

Definition at line 905 of file trackingPlots.py.

905  def __init__(self, *args, **kwargs):
906  self._fallbackRefFiles = kwargs.pop("fallbackRefFiles", [])
907  PlotFolder.__init__(self, *args, **kwargs)
908 
def __init__(self, args, kwargs)

Member Function Documentation

def trackingPlots.TrackingPlotFolder.isAlgoIterative (   self,
  algo 
)

Definition at line 942 of file trackingPlots.py.

942  def isAlgoIterative(self, algo):
943  return algo not in _possibleTrackingNonIterationColls
944 
def trackingPlots.TrackingPlotFolder.iterSelectionName (   self,
  plotFolderName,
  translatedDqmSubFolder 
)

Definition at line 916 of file trackingPlots.py.

References trackingPlots.TrackingPlotFolder._fallbackRefFiles, and trackingPlots.fallback.

916  def iterSelectionName(self, plotFolderName, translatedDqmSubFolder):
917  (algoOrig, quality) = translatedDqmSubFolder
918 
919  for fallback in [lambda n: n]+self._fallbackRefFiles:
920  algo = fallback(algoOrig)
921 
922  ret = ""
923  if plotFolderName != "":
924  ret += "_"+plotFolderName
925  if quality != "":
926  ret += "_"+quality
927  if not (algo == "ootb" and quality != ""):
928  ret += "_"+algo
929  yield ret
930 
def iterSelectionName(self, plotFolderName, translatedDqmSubFolder)
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 931 of file trackingPlots.py.

931  def limitSubFolder(self, limitOnlyTo, translatedDqmSubFolder):
932  """Return True if this subfolder should be processed
933 
934  Arguments:
935  limitOnlyTo -- Function '(algo, quality) -> bool'
936  translatedDqmSubFolder -- Return value of translateSubFolder
937  """
938  (algo, quality) = translatedDqmSubFolder
939  return limitOnlyTo(algo, quality)
940 
def limitSubFolder(self, limitOnlyTo, translatedDqmSubFolder)
def trackingPlots.TrackingPlotFolder.translateSubFolder (   self,
  dqmSubFolderName 
)

Definition at line 909 of file trackingPlots.py.

References trackingPlots._mapCollectionToAlgoQuality().

909  def translateSubFolder(self, dqmSubFolderName):
910  spl = dqmSubFolderName.split("_")
911  if len(spl) != 2:
912  return None
913  collName = spl[0]
914  return _mapCollectionToAlgoQuality(collName)
915 
def translateSubFolder(self, dqmSubFolderName)
def _mapCollectionToAlgoQuality(collName)

Member Data Documentation

trackingPlots.TrackingPlotFolder._fallbackRefFiles
private