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

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 900 of file trackingPlots.py.

900  def __init__(self, *args, **kwargs):
901  self._fallbackRefFiles = kwargs.pop("fallbackRefFiles", [])
902  PlotFolder.__init__(self, *args, **kwargs)
903 
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ isAlgoIterative()

def trackingPlots.TrackingPlotFolder.isAlgoIterative (   self,
  algo 
)

Definition at line 937 of file trackingPlots.py.

937  def isAlgoIterative(self, algo):
938  return algo not in _possibleTrackingNonIterationColls
939 

◆ iterSelectionName()

def trackingPlots.TrackingPlotFolder.iterSelectionName (   self,
  plotFolderName,
  translatedDqmSubFolder 
)

Definition at line 911 of file trackingPlots.py.

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

911  def iterSelectionName(self, plotFolderName, translatedDqmSubFolder):
912  (algoOrig, quality) = translatedDqmSubFolder
913 
914  for fallback in [lambda n: n]+self._fallbackRefFiles:
915  algo = fallback(algoOrig)
916 
917  ret = ""
918  if plotFolderName != "":
919  ret += "_"+plotFolderName
920  if quality != "":
921  ret += "_"+quality
922  if not (algo == "ootb" and quality != ""):
923  ret += "_"+algo
924  yield ret
925 

◆ limitSubFolder()

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

926  def limitSubFolder(self, limitOnlyTo, translatedDqmSubFolder):
927  """Return True if this subfolder should be processed
928 
929  Arguments:
930  limitOnlyTo -- Function '(algo, quality) -> bool'
931  translatedDqmSubFolder -- Return value of translateSubFolder
932  """
933  (algo, quality) = translatedDqmSubFolder
934  return limitOnlyTo(algo, quality)
935 

◆ translateSubFolder()

def trackingPlots.TrackingPlotFolder.translateSubFolder (   self,
  dqmSubFolderName 
)

Definition at line 904 of file trackingPlots.py.

References trackingPlots._mapCollectionToAlgoQuality().

904  def translateSubFolder(self, dqmSubFolderName):
905  spl = dqmSubFolderName.split("_")
906  if len(spl) != 2:
907  return None
908  collName = spl[0]
909  return _mapCollectionToAlgoQuality(collName)
910 
def _mapCollectionToAlgoQuality(collName)

Member Data Documentation

◆ _fallbackRefFiles

trackingPlots.TrackingPlotFolder._fallbackRefFiles
private