Public Member Functions | |
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 | |
_labels | |
_loopSubFolders | |
_numberOfEventsHistogram | |
_onlyForBHadron | |
_onlyForConversion | |
_onlyForElectron | |
_onlyForPileup | |
_page | |
_plotGroups | |
_purpose | |
_section | |
Represents a collection of PlotGroups, produced from a single folder in a DQM file
Definition at line 2545 of file plotting.py.
def plotting.PlotFolder.__init__ | ( | self, | |
* | plotGroups, | ||
** | kwargs | ||
) |
Constructor. Arguments: plotGroups -- List of PlotGroup objects Keyword arguments loopSubFolders -- Should the subfolders be looped over? (default: True) onlyForPileup -- Plots this folder only for pileup samples onlyForElectron -- Plots this folder only for electron samples onlyForConversion -- Plots this folder only for conversion samples onlyForBHadron -- Plots this folder only for B-hadron samples purpose -- html.PlotPurpose member class for the purpose of the folder, used for grouping of the plots to the HTML pages page -- Optional string for the page in HTML generatin section -- Optional string for the section within a page in HTML generation numberOfEventsHistogram -- Optional path to histogram filled once per event. Needed if there are any plots normalized by number of events. Path is relative to "possibleDqmFolders".
Reimplemented in trackingPlots.TrackingPlotFolder.
Definition at line 2548 of file plotting.py.
def plotting.PlotFolder.append | ( | self, | |
plotGroup | |||
) |
Definition at line 2607 of file plotting.py.
References plotting.PlotFolder._plotGroups.
Referenced by diclist.diclist.add().
def plotting.PlotFolder.create | ( | self, | |
dirsNEvents, | |||
labels, | |||
isPileupSample = True , |
|||
requireAllHistograms = False |
|||
) |
Create histograms from a list of TFiles. Arguments: dirsNEvents -- List of (TDirectory, nevents) pairs labels -- List of strings for legend labels corresponding the files isPileupSample -- Is sample pileup (some PlotGroups may limit themselves to pileup) requireAllHistograms -- If True, a plot is produced if histograms from all files are present (default: False)
Definition at line 2622 of file plotting.py.
def plotting.PlotFolder.draw | ( | self, | |
prefix = None , |
|||
separate = False , |
|||
saveFormat = ".pdf" , |
|||
ratio = True , |
|||
directory = "" |
|||
) |
Draw and save all plots using settings of a given algorithm. Arguments: prefix -- Optional string for file name prefix (default None) separate -- Save the plots of a group to separate files instead of a file per group (default False) saveFormat -- String specifying the plot format (default '.pdf') ratio -- Add ratio to the plot (default True) directory -- Directory where to save the file (default "")
Definition at line 2642 of file plotting.py.
References DigiInvestigatorHistogramMaker._labels, SeedMultiplicityAnalyzer._labels, hitfit::Constraint_Intermed_Labels._labels, plotting.PlotFolder._labels, and plotting.PlotFolder._plotGroups.
def plotting.PlotFolder.getNumberOfEventsHistogram | ( | self | ) |
Definition at line 2604 of file plotting.py.
References plotting.PlotFolder._numberOfEventsHistogram.
def plotting.PlotFolder.getPage | ( | self | ) |
Definition at line 2598 of file plotting.py.
References html.Table._page, and plotting.PlotFolder._page.
def plotting.PlotFolder.getPlotGroup | ( | self, | |
name | |||
) |
def plotting.PlotFolder.getPlotGroups | ( | self | ) |
Definition at line 2613 of file plotting.py.
References plotting.PlotFolder._plotGroups.
def plotting.PlotFolder.getPurpose | ( | self | ) |
Definition at line 2595 of file plotting.py.
References html.Table._purpose, and plotting.PlotFolder._purpose.
def plotting.PlotFolder.getSection | ( | self | ) |
Definition at line 2601 of file plotting.py.
References html.Table._section, and plotting.PlotFolder._section.
def plotting.PlotFolder.iterSelectionName | ( | self, | |
plotFolderName, | |||
translatedDqmSubFolder | |||
) |
Iterate over possible selections name (used in output directory name and legend) from the name of PlotterFolder, and a return value of translateSubFolder
Reimplemented in trackingPlots.TrackingPlotFolder.
Definition at line 2670 of file plotting.py.
def plotting.PlotFolder.limitSubFolder | ( | self, | |
limitOnlyTo, | |||
translatedDqmSubFolder | |||
) |
Return True if this subfolder should be processed Arguments: limitOnlyTo -- List/set/similar containing the translatedDqmSubFolder translatedDqmSubFolder -- Return value of translateSubFolder
Reimplemented in trackingPlots.TrackingPlotFolder.
Definition at line 2679 of file plotting.py.
def plotting.PlotFolder.loopSubFolders | ( | self | ) |
Return True if the PlotGroups of this folder should be applied to the all subfolders
Definition at line 2578 of file plotting.py.
References plotting.PlotFolder._loopSubFolders.
def plotting.PlotFolder.onlyForBHadron | ( | self | ) |
Definition at line 2592 of file plotting.py.
References plotting.PlotFolder._onlyForBHadron.
def plotting.PlotFolder.onlyForConversion | ( | self | ) |
Definition at line 2589 of file plotting.py.
References plotting.PlotFolder._onlyForConversion.
def plotting.PlotFolder.onlyForElectron | ( | self | ) |
Definition at line 2586 of file plotting.py.
References plotting.PlotFolder._onlyForElectron.
def plotting.PlotFolder.onlyForPileup | ( | self | ) |
Return True if the folder is intended only for pileup samples
Definition at line 2582 of file plotting.py.
References plotting.PlotFolder._onlyForPileup.
def plotting.PlotFolder.set | ( | self, | |
plotGroups | |||
) |
Definition at line 2610 of file plotting.py.
References plotting.PlotFolder._plotGroups.
def plotting.PlotFolder.translateSubFolder | ( | self, | |
dqmSubFolderName | |||
) |
Method called to (possibly) translate a subfolder name to more 'readable' form The implementation in this (base) class just returns the argument. The idea is that a deriving class might want to do something more complex (like trackingPlots.TrackingPlotFolder does)
Reimplemented in trackingPlots.TrackingPlotFolder.
Definition at line 2660 of file plotting.py.
|
private |
Definition at line 2635 of file plotting.py.
Referenced by validation.SimpleValidation._doPlots(), validation.SeparateValidation._doPlots(), and plotting.PlotFolder.draw().
|
private |
Definition at line 2566 of file plotting.py.
Referenced by plotting.PlotFolder.loopSubFolders().
|
private |
Definition at line 2574 of file plotting.py.
Referenced by plotting.PlotFolder.getNumberOfEventsHistogram().
|
private |
Definition at line 2570 of file plotting.py.
Referenced by plotting.PlotFolder.onlyForBHadron().
|
private |
Definition at line 2569 of file plotting.py.
Referenced by plotting.PlotFolder.onlyForConversion().
|
private |
Definition at line 2568 of file plotting.py.
Referenced by plotting.PlotFolder.onlyForElectron().
|
private |
Definition at line 2567 of file plotting.py.
Referenced by trackingPlots.TrackingSeedingLayerTable.onlyForPileup(), plotting.PlotGroup.onlyForPileup(), and plotting.PlotFolder.onlyForPileup().
|
private |
Definition at line 2572 of file plotting.py.
Referenced by vertexPlots.VertexSummaryTable.getPage(), trackingPlots.TrackingSummaryTable.getPage(), trackingPlots.TrackingTimingTable.getPage(), and plotting.PlotFolder.getPage().
|
private |
Definition at line 2565 of file plotting.py.
Referenced by plotting.PlotFolder.append(), plotting.PlotFolder.draw(), plotting.PlotFolder.getPlotGroup(), plotting.PlotFolder.getPlotGroups(), and plotting.PlotFolder.set().
|
private |
Definition at line 2571 of file plotting.py.
Referenced by vertexPlots.VertexSummaryTable.getPurpose(), trackingPlots.TrackingSummaryTable.getPurpose(), trackingPlots.TrackingTimingTable.getPurpose(), and plotting.PlotFolder.getPurpose().
|
private |
Definition at line 2573 of file plotting.py.
Referenced by trackingPlots.TrackingSummaryTable.getSection(), trackingPlots.TrackingTimingTable.getSection(), and plotting.PlotFolder.getSection().