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 876 of file trackingPlots.py.

Constructor & Destructor Documentation

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

Definition at line 877 of file trackingPlots.py.

877  def __init__(self, *args, **kwargs):
878  self._fallbackRefFiles = kwargs.pop("fallbackRefFiles", [])
879  PlotFolder.__init__(self, *args, **kwargs)
880 
def __init__(self, args, kwargs)

Member Function Documentation

def trackingPlots.TrackingPlotFolder.isAlgoIterative (   self,
  algo 
)

Definition at line 914 of file trackingPlots.py.

914  def isAlgoIterative(self, algo):
915  return algo not in _possibleTrackingNonIterationColls
916 
def trackingPlots.TrackingPlotFolder.iterSelectionName (   self,
  plotFolderName,
  translatedDqmSubFolder 
)

Definition at line 888 of file trackingPlots.py.

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

888  def iterSelectionName(self, plotFolderName, translatedDqmSubFolder):
889  (algoOrig, quality) = translatedDqmSubFolder
890 
891  for fallback in [lambda n: n]+self._fallbackRefFiles:
892  algo = fallback(algoOrig)
893 
894  ret = ""
895  if plotFolderName != "":
896  ret += "_"+plotFolderName
897  if quality != "":
898  ret += "_"+quality
899  if not (algo == "ootb" and quality != ""):
900  ret += "_"+algo
901  yield ret
902 
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 903 of file trackingPlots.py.

903  def limitSubFolder(self, limitOnlyTo, translatedDqmSubFolder):
904  """Return True if this subfolder should be processed
905 
906  Arguments:
907  limitOnlyTo -- Function '(algo, quality) -> bool'
908  translatedDqmSubFolder -- Return value of translateSubFolder
909  """
910  (algo, quality) = translatedDqmSubFolder
911  return limitOnlyTo(algo, quality)
912 
def limitSubFolder(self, limitOnlyTo, translatedDqmSubFolder)
def trackingPlots.TrackingPlotFolder.translateSubFolder (   self,
  dqmSubFolderName 
)

Definition at line 881 of file trackingPlots.py.

References trackingPlots._mapCollectionToAlgoQuality().

881  def translateSubFolder(self, dqmSubFolderName):
882  spl = dqmSubFolderName.split("_")
883  if len(spl) != 2:
884  return None
885  collName = spl[0]
886  return _mapCollectionToAlgoQuality(collName)
887 
def translateSubFolder(self, dqmSubFolderName)
def _mapCollectionToAlgoQuality(collName)

Member Data Documentation

trackingPlots.TrackingPlotFolder._fallbackRefFiles
private