Public Member Functions | |
def | __init__ (self, name, possibleDqmFolders, dqmSubFolders, plotFolder, fallbackNames, fallbackDqmSubFolders, tableCreators) |
def | create (self, files, labels, dqmSubFolder, isPileupSample=True, requireAllHistograms=False) |
def | draw (self, args, kwargs) |
def | getDQMSubFolders (self, limitOnlyTo=None) |
def | getName (self) |
def | getPage (self) |
def | getPossibleDQMFolders (self) |
def | getPurpose (self) |
def | getSection (self) |
def | getSelectionName (self, dqmSubFolder) |
def | getSelectionNameIterator (self, dqmSubFolder) |
def | getTableCreators (self) |
def | onlyForBHadron (self) |
def | onlyForConversion (self) |
def | onlyForElectron (self) |
def | onlyForPileup (self) |
Private Attributes | |
_dqmSubFolders | |
_fallbackDqmSubFolders | |
_fallbackNames | |
_name | |
_plotFolder | |
_possibleDqmFolders | |
_tableCreators | |
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 2682 of file plotting.py.
def plotting.PlotterFolder.__init__ | ( | self, | |
name, | |||
possibleDqmFolders, | |||
dqmSubFolders, | |||
plotFolder, | |||
fallbackNames, | |||
fallbackDqmSubFolders, | |||
tableCreators | |||
) |
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. fallbackDqmSubFolders -- List of dicts of (string->string) for mapping the subfolder names found in the first file to another names. Use case is comparing files that have different iteration naming convention. tableCreators -- List of PlotterTableItem objects for tables to be created from this folder
Definition at line 2689 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 2778 of file plotting.py.
References plotting.PlotterFolder._fallbackDqmSubFolders, plotting._getDirectoryDetailed(), plotting._getObject(), plotting.PlotterFolder._plotFolder, and plotting.PlotterFolder._possibleDqmFolders.
def plotting.PlotterFolder.draw | ( | self, | |
args, | |||
kwargs | |||
) |
Draw and save all plots using settings of a given algorithm.
Definition at line 2812 of file plotting.py.
References plotting.PlotterFolder._plotFolder.
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 2751 of file plotting.py.
References plotting.PlotterFolder._dqmSubFolders, and plotting.PlotterFolder._plotFolder.
def plotting.PlotterFolder.getName | ( | self | ) |
Definition at line 2724 of file plotting.py.
References FP420HitsObject._name, TrackerHitsObject._name, PGeometricDet::Item._name, TrackingRecHitAlgorithm._name, Logger._name, hcaldqm::DQModule._name, citk::IsolationConeDefinitionBase._name, condhdf5tohdf5.H5DataProduct._name, WValidation._name, DrellYanValidation._name, hcaldqm::flag::Flag._name, hcaldqm::quantity::Quantity._name, HistoParams< T >._name, condhdf5tohdf5.H5Tag._name, CutApplicatorBase._name, condhdf5tohdf5.H5GlobalTag._name, HistoParams< TH2F >._name, HistoParams< TProfile2D >._name, conddb2hdf5.DBGlobalTag._name, SequenceTypes.SequencePlaceholder._name, plotting.Subtract._name, plotting.Transform._name, plotting.FakeDuplicate._name, plotting.CutEfficiency._name, plotting.AggregateBins._name, plotting.AggregateHistos._name, plotting.ROC._name, SequenceTypes._TaskBasePlaceholder._name, plotting.Plot._name, plotting.PlotGroup._name, and plotting.PlotterFolder._name.
def plotting.PlotterFolder.getPage | ( | self | ) |
Definition at line 2730 of file plotting.py.
References plotting.PlotterFolder._plotFolder.
def plotting.PlotterFolder.getPossibleDQMFolders | ( | self | ) |
Definition at line 2748 of file plotting.py.
References plotting.PlotterFolder._possibleDqmFolders.
def plotting.PlotterFolder.getPurpose | ( | self | ) |
Definition at line 2727 of file plotting.py.
References plotting.PlotterFolder._plotFolder.
def plotting.PlotterFolder.getSection | ( | self | ) |
Definition at line 2733 of file plotting.py.
References plotting.PlotterFolder._plotFolder.
def plotting.PlotterFolder.getSelectionName | ( | self, | |
dqmSubFolder | |||
) |
Definition at line 2775 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 2769 of file plotting.py.
References plotting.PlotterFolder._fallbackNames, FP420HitsObject._name, TrackerHitsObject._name, PGeometricDet::Item._name, TrackingRecHitAlgorithm._name, Logger._name, hcaldqm::DQModule._name, citk::IsolationConeDefinitionBase._name, condhdf5tohdf5.H5DataProduct._name, WValidation._name, DrellYanValidation._name, hcaldqm::flag::Flag._name, hcaldqm::quantity::Quantity._name, HistoParams< T >._name, condhdf5tohdf5.H5Tag._name, CutApplicatorBase._name, condhdf5tohdf5.H5GlobalTag._name, HistoParams< TH2F >._name, HistoParams< TProfile2D >._name, conddb2hdf5.DBGlobalTag._name, SequenceTypes.SequencePlaceholder._name, plotting.Subtract._name, plotting.Transform._name, plotting.FakeDuplicate._name, plotting.CutEfficiency._name, plotting.AggregateBins._name, plotting.AggregateHistos._name, plotting.ROC._name, SequenceTypes._TaskBasePlaceholder._name, plotting.Plot._name, plotting.PlotGroup._name, plotting.PlotterFolder._name, and plotting.PlotterFolder._plotFolder.
Referenced by plotting.PlotterFolder.getSelectionName().
def plotting.PlotterFolder.getTableCreators | ( | self | ) |
Definition at line 2766 of file plotting.py.
References plotting.PlotterFolder._tableCreators.
def plotting.PlotterFolder.onlyForBHadron | ( | self | ) |
Definition at line 2745 of file plotting.py.
References plotting.PlotterFolder._plotFolder.
def plotting.PlotterFolder.onlyForConversion | ( | self | ) |
Definition at line 2742 of file plotting.py.
References plotting.PlotterFolder._plotFolder.
def plotting.PlotterFolder.onlyForElectron | ( | self | ) |
Definition at line 2739 of file plotting.py.
References plotting.PlotterFolder._plotFolder.
def plotting.PlotterFolder.onlyForPileup | ( | self | ) |
|
private |
Definition at line 2707 of file plotting.py.
Referenced by plotting.PlotterFolder.getDQMSubFolders().
|
private |
Definition at line 2721 of file plotting.py.
Referenced by plotting.PlotterFolder.create(), and plotting.PlotterItem.readDirs().
|
private |
Definition at line 2720 of file plotting.py.
Referenced by plotting.PlotterFolder.getSelectionNameIterator(), and plotting.PlotterItem.readDirs().
|
private |
Definition at line 2702 of file plotting.py.
Referenced by trackingPlots.TimePerEventPlot.__str__(), trackingPlots.TimePerTrackPlot.__str__(), trackingPlots.TimePerEventPlot._create(), trackingPlots.TimePerTrackPlot.create(), plotting.PlotterFolder.getName(), plotting.PlotterItem.getName(), plotting.PlotterFolder.getSelectionNameIterator(), validation.SimpleSample.name(), trackingPlots.Iteration.name(), and plotting.PlotterItem.readDirs().
|
private |
Definition at line 2704 of file plotting.py.
Referenced by plotting.PlotterFolder.create(), plotting.PlotterFolder.draw(), plotting.PlotterFolder.getDQMSubFolders(), plotting.PlotterFolder.getPage(), plotting.PlotterItem.getPlotFolder(), plotting.PlotterFolder.getPurpose(), plotting.PlotterFolder.getSection(), plotting.PlotterFolder.getSelectionNameIterator(), plotting.PlotterFolder.onlyForBHadron(), plotting.PlotterFolder.onlyForConversion(), plotting.PlotterFolder.onlyForElectron(), plotting.PlotterFolder.onlyForPileup(), and plotting.PlotterItem.readDirs().
|
private |
Definition at line 2703 of file plotting.py.
Referenced by plotting.PlotterFolder.create(), and plotting.PlotterFolder.getPossibleDQMFolders().
|
private |
Definition at line 2722 of file plotting.py.
Referenced by plotting.PlotterItem.appendTableCreator(), plotting.PlotterFolder.getTableCreators(), and plotting.PlotterItem.readDirs().