![]() |
![]() |
Public Member Functions | |
def | __init__ |
def | append |
def | create |
def | draw |
def | getPage |
def | getPurpose |
def | getSection |
def | getSelectionName |
def | limitSubFolder |
def | loopSubFolders |
def | onlyForPileup |
def | set |
def | translateSubFolder |
Private Member Functions | |
def | _getDir |
Private Attributes | |
_labels | |
_loopSubFolders | |
_onlyForPileup | |
_page | |
_plotGroups | |
_purpose | |
_section | |
Represents a collection of PlotGroups, produced from a single folder in a DQM file
Definition at line 1597 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 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
Definition at line 1599 of file plotting.py.
Referenced by trackingPlots.TrackingPlotFolder._init__().
|
private |
Get TDirectory from TFile.
Definition at line 1692 of file plotting.py.
References join().
def plotting.PlotFolder.append | ( | self, | |
plotGroup | |||
) |
Definition at line 1638 of file plotting.py.
Referenced by diclist.diclist.add(), and BeautifulSoup.Tag.setString().
def plotting.PlotFolder.create | ( | self, | |
files, | |||
labels, | |||
possibleDqmFolders, | |||
dqmSubFolder = None , |
|||
isPileupSample = True , |
|||
requireAllHistograms = False |
|||
) |
Create histograms from a list of TFiles. Arguments: files -- List of TFiles labels -- List of strings for legend labels corresponding the files possibleDqmFolders -- List of strings for possible directories of histograms in TFiles dqmSubFolder -- Optional string for subdirectory inside the dqmFolder; if list of strings, then each corresponds to a TFile 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 1644 of file plotting.py.
def plotting.PlotFolder.draw | ( | self, | |
prefix = None , |
|||
separate = False , |
|||
saveFormat = ".pdf" , |
|||
ratio = False |
|||
) |
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 False)
Definition at line 1676 of file plotting.py.
References DigiInvestigatorHistogramMaker._labels, SeedMultiplicityAnalyzer._labels, hitfit::Constraint_Intermed_Labels._labels, plotting.PlotFolder._labels, and plotting.PlotFolder._plotGroups.
def plotting.PlotFolder.getPage | ( | self | ) |
Definition at line 1632 of file plotting.py.
References plotting.PlotFolder._page.
def plotting.PlotFolder.getPurpose | ( | self | ) |
Definition at line 1629 of file plotting.py.
References plotting.PlotFolder._purpose.
def plotting.PlotFolder.getSection | ( | self | ) |
Definition at line 1635 of file plotting.py.
References plotting.PlotFolder._section.
def plotting.PlotFolder.getSelectionName | ( | self, | |
plotFolderName, | |||
translatedDqmSubFolder | |||
) |
Get selection name (used in output directory name and legend) from the name of PlotterFolder, and a return value of translateSubFolder
Definition at line 1723 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
Definition at line 1732 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 1621 of file plotting.py.
References plotting.PlotFolder._loopSubFolders.
def plotting.PlotFolder.onlyForPileup | ( | self | ) |
Return True if the folder is intended only for pileup samples
Definition at line 1625 of file plotting.py.
References plotting.PlotFolder._onlyForPileup.
def plotting.PlotFolder.set | ( | self, | |
plotGroups | |||
) |
Definition at line 1641 of file plotting.py.
References plotting.PlotFolder._plotGroups.
Referenced by betterConfigParser.BetterConfigParser.getGeneral().
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)
Definition at line 1713 of file plotting.py.
|
private |
Definition at line 1660 of file plotting.py.
Referenced by validation.SimpleValidation._doPlots(), and plotting.PlotFolder.draw().
|
private |
Definition at line 1613 of file plotting.py.
Referenced by plotting.PlotFolder.loopSubFolders().
|
private |
Definition at line 1614 of file plotting.py.
Referenced by plotting.PlotGroup.onlyForPileup(), and plotting.PlotFolder.onlyForPileup().
|
private |
Definition at line 1616 of file plotting.py.
Referenced by plotting.PlotFolder.getPage().
|
private |
Definition at line 1612 of file plotting.py.
Referenced by plotting.PlotFolder.draw(), and plotting.PlotFolder.set().
|
private |
Definition at line 1615 of file plotting.py.
Referenced by plotting.PlotFolder.getPurpose().
|
private |
Definition at line 1617 of file plotting.py.
Referenced by plotting.PlotFolder.getSection().