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

Constructor & Destructor Documentation

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

Definition at line 890 of file trackingPlots.py.

890  def __init__(self, *args, **kwargs):
891  self._fallbackRefFiles = kwargs.pop("fallbackRefFiles", [])
892  PlotFolder.__init__(self, *args, **kwargs)
893 
def __init__(self, args, kwargs)

Member Function Documentation

def trackingPlots.TrackingPlotFolder.isAlgoIterative (   self,
  algo 
)

Definition at line 927 of file trackingPlots.py.

927  def isAlgoIterative(self, algo):
928  return algo not in _possibleTrackingNonIterationColls
929 
def trackingPlots.TrackingPlotFolder.iterSelectionName (   self,
  plotFolderName,
  translatedDqmSubFolder 
)

Definition at line 901 of file trackingPlots.py.

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

901  def iterSelectionName(self, plotFolderName, translatedDqmSubFolder):
902  (algoOrig, quality) = translatedDqmSubFolder
903 
904  for fallback in [lambda n: n]+self._fallbackRefFiles:
905  algo = fallback(algoOrig)
906 
907  ret = ""
908  if plotFolderName != "":
909  ret += "_"+plotFolderName
910  if quality != "":
911  ret += "_"+quality
912  if not (algo == "ootb" and quality != ""):
913  ret += "_"+algo
914  yield ret
915 
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 916 of file trackingPlots.py.

916  def limitSubFolder(self, limitOnlyTo, translatedDqmSubFolder):
917  """Return True if this subfolder should be processed
918 
919  Arguments:
920  limitOnlyTo -- Function '(algo, quality) -> bool'
921  translatedDqmSubFolder -- Return value of translateSubFolder
922  """
923  (algo, quality) = translatedDqmSubFolder
924  return limitOnlyTo(algo, quality)
925 
def limitSubFolder(self, limitOnlyTo, translatedDqmSubFolder)
def trackingPlots.TrackingPlotFolder.translateSubFolder (   self,
  dqmSubFolderName 
)

Definition at line 894 of file trackingPlots.py.

References trackingPlots._mapCollectionToAlgoQuality().

894  def translateSubFolder(self, dqmSubFolderName):
895  spl = dqmSubFolderName.split("_")
896  if len(spl) != 2:
897  return None
898  collName = spl[0]
899  return _mapCollectionToAlgoQuality(collName)
900 
def translateSubFolder(self, dqmSubFolderName)
def _mapCollectionToAlgoQuality(collName)

Member Data Documentation

trackingPlots.TrackingPlotFolder._fallbackRefFiles
private