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

Constructor & Destructor Documentation

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

Definition at line 907 of file trackingPlots.py.

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

Member Function Documentation

def trackingPlots.TrackingPlotFolder.isAlgoIterative (   self,
  algo 
)

Definition at line 944 of file trackingPlots.py.

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

Definition at line 918 of file trackingPlots.py.

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

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

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

Definition at line 911 of file trackingPlots.py.

References trackingPlots._mapCollectionToAlgoQuality().

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

Member Data Documentation

trackingPlots.TrackingPlotFolder._fallbackRefFiles
private