Public Member Functions | |
def | __init__ |
def | create |
def | draw |
def | getDQMSubFolders |
def | getName |
def | getPage |
def | getPossibleDQMFolders |
def | getPurpose |
def | getSection |
def | getSelectionName |
def | getSelectionNameIterator |
def | onlyForPileup |
Private Attributes | |
_dqmSubFolders | |
_fallbackNames | |
_name | |
_plotFolder | |
_possibleDqmFolders | |
Plotter for one DQM folder. This class is supposed to be instantiated by the Plotter class (or PlotterItem, to be more specific), and not used directly by the user.
Definition at line 1751 of file plotting.py.
def plotting.PlotterFolder.__init__ | ( | self, | |
name, | |||
possibleDqmFolders, | |||
dqmSubFolders, | |||
plotFolder, | |||
fallbackNames | |||
) |
Constructor Arguments: name -- Name of the folder (is used in the output directory naming) possibleDqmFolders -- List of strings for possible directories of histograms in TFiles dqmSubFolders -- List of lists of strings for list of subfolders per input file, or None if no subfolders plotFolder -- PlotFolder object fallbackNames -- List of names for backward compatibility (can be empty). These are used only by validation.Validation (class responsible of the release validation workflow) in case the reference file pointed by 'name' does not exist.
Definition at line 1758 of file plotting.py.
def plotting.PlotterFolder.create | ( | self, | |
files, | |||
labels, | |||
dqmSubFolder, | |||
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 dqmSubFolder -- DQMSubFolder object for a subfolder (or None for no subfolder) 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 1824 of file plotting.py.
References plotting.PlotterFolder._possibleDqmFolders.
def plotting.PlotterFolder.draw | ( | self, | |
args, | |||
kwargs | |||
) |
Draw and save all plots using settings of a given algorithm.
Definition at line 1837 of file plotting.py.
def plotting.PlotterFolder.getDQMSubFolders | ( | self, | |
limitOnlyTo = None |
|||
) |
Get list of subfolders, possibly limiting to some of them. Keyword arguments: limitOnlyTo -- Object depending on the PlotFolder type for limiting the set of subfolders to be processed
Definition at line 1801 of file plotting.py.
References plotting.PlotterFolder._dqmSubFolders, and alcazmumu_cfi.filter.
def plotting.PlotterFolder.getName | ( | self | ) |
Definition at line 1783 of file plotting.py.
References FP420HitsObject._name, TrackerHitsObject._name, PGeometricDet::Item._name, LikelihoodSpecies._name, LikelihoodPdfProduct._name, LikelihoodPdf._name, citk::IsolationConeDefinitionBase._name, DrellYanValidation._name, WValidation._name, HistoParams< T >._name, CutApplicatorBase._name, ElectronMVAEstimatorRun2Phys14NonTrig._name, PhotonMVAEstimatorRun2Spring15NonTrig._name, PhotonMVAEstimatorRun2Phys14NonTrig._name, GeometricDetExtra._name, ElectronMVAEstimatorRun2Spring15Trig._name, ElectronMVAEstimatorRun2Spring15NonTrig._name, HistoParams< TH2F >._name, plotting.Subtract._name, HistoParams< TProfile2D >._name, plotting.FakeDuplicate._name, plotting.AggregateBins._name, plotting.AggregateHistos._name, plotting.ROC._name, Vispa.Views.PropertyView.Property._name, SequenceTypes.SequencePlaceholder._name, plotting.Plot._name, plotting.PlotGroup._name, and plotting.PlotterFolder._name.
def plotting.PlotterFolder.getPage | ( | self | ) |
Definition at line 1789 of file plotting.py.
def plotting.PlotterFolder.getPossibleDQMFolders | ( | self | ) |
Definition at line 1798 of file plotting.py.
References plotting.PlotterFolder._possibleDqmFolders.
def plotting.PlotterFolder.getPurpose | ( | self | ) |
Definition at line 1786 of file plotting.py.
def plotting.PlotterFolder.getSection | ( | self | ) |
Definition at line 1792 of file plotting.py.
def plotting.PlotterFolder.getSelectionName | ( | self, | |
dqmSubFolder | |||
) |
Definition at line 1821 of file plotting.py.
References plotting.PlotterFolder.getSelectionNameIterator(), and GetRecoTauVFromDQM_MC_cff.next.
def plotting.PlotterFolder.getSelectionNameIterator | ( | self, | |
dqmSubFolder | |||
) |
Get a generator for the 'selection name', looping over the name and fallbackNames
Definition at line 1816 of file plotting.py.
References plotting.PlotterFolder._fallbackNames, TrackerHitsObject._name, FP420HitsObject._name, PGeometricDet::Item._name, LikelihoodSpecies._name, LikelihoodPdfProduct._name, LikelihoodPdf._name, citk::IsolationConeDefinitionBase._name, DrellYanValidation._name, WValidation._name, HistoParams< T >._name, CutApplicatorBase._name, ElectronMVAEstimatorRun2Phys14NonTrig._name, PhotonMVAEstimatorRun2Spring15NonTrig._name, PhotonMVAEstimatorRun2Phys14NonTrig._name, GeometricDetExtra._name, ElectronMVAEstimatorRun2Spring15Trig._name, ElectronMVAEstimatorRun2Spring15NonTrig._name, HistoParams< TH2F >._name, plotting.Subtract._name, HistoParams< TProfile2D >._name, plotting.FakeDuplicate._name, plotting.AggregateBins._name, plotting.AggregateHistos._name, plotting.ROC._name, Vispa.Views.PropertyView.Property._name, SequenceTypes.SequencePlaceholder._name, plotting.Plot._name, plotting.PlotGroup._name, and plotting.PlotterFolder._name.
Referenced by plotting.PlotterFolder.getSelectionName().
def plotting.PlotterFolder.onlyForPileup | ( | self | ) |
Definition at line 1795 of file plotting.py.
|
private |
Definition at line 1774 of file plotting.py.
Referenced by plotting.PlotterFolder.getDQMSubFolders().
|
private |
Definition at line 1779 of file plotting.py.
Referenced by plotting.PlotterFolder.getSelectionNameIterator(), and plotting.PlotterItem.readDirs().
|
private |
Definition at line 1769 of file plotting.py.
Referenced by plotting.PlotterFolder.getName(), plotting.PlotterFolder.getSelectionNameIterator(), validation.SimpleSample.name(), and plotting.PlotterItem.readDirs().
|
private |
Definition at line 1771 of file plotting.py.
Referenced by plotting.PlotterItem.readDirs().
|
private |
Definition at line 1770 of file plotting.py.
Referenced by plotting.PlotterFolder.create(), and plotting.PlotterFolder.getPossibleDQMFolders().