Public Member Functions | |
def | __init__ |
def | append |
def | create |
def | draw |
def | getName |
def | getPlot |
def | getPlots |
def | onlyForPileup |
def | remove |
Private Member Functions | |
def | _createLegend |
def | _drawSeparate |
def | _modifyPadForRatio |
def | _save |
Private Attributes | |
_name | |
_plots | |
_ratioFactor | |
Group of plots, results a TCanvas
Definition at line 1542 of file plotting.py.
def plotting.PlotGroup.__init__ | ( | self, | |
name, | |||
plots, | |||
kwargs | |||
) |
Constructor. Arguments: name -- String for name of the TCanvas, used also as the basename of the picture files plots -- List of Plot objects Keyword arguments: ncols -- Number of columns (default 2) legendDx -- Float for moving TLegend in x direction (default None) legendDy -- Float for moving TLegend in y direction (default None) legendDw -- Float for changing TLegend width (default None) legendDh -- Float for changing TLegend height (default None) legend -- Bool for disabling legend (default True for legend being enabled) overrideLegendLabels -- List of strings for legend labels, if given, these are used instead of the ones coming from Plotter (default None) onlyForPileup -- Plots this group only for pileup samples
Definition at line 1544 of file plotting.py.
|
private |
Definition at line 1781 of file plotting.py.
References GeometryComparisonPlotter._legend.
Referenced by plotting.PlotGroup._drawSeparate(), and plotting.PlotGroup.draw().
|
private |
Internal method to do the drawing to separate files per Plot instead of a file per PlotGroup
Definition at line 1693 of file plotting.py.
References plotting._createCanvas(), plotting.PlotGroup._createLegend(), plotting.PlotGroup._modifyPadForRatio(), FP420HitsObject._name, TrackerHitsObject._name, PGeometricDet::Item._name, LikelihoodSpecies._name, L1TMuon::PtAssignmentUnit._name, L1TMuon::PtRefinementUnit._name, LikelihoodPdfProduct._name, LikelihoodPdf._name, citk::IsolationConeDefinitionBase._name, Logger._name, hcaldqm::DQModule._name, DrellYanValidation._name, WValidation._name, HistoParams< T >._name, hcaldqm::flag::Flag._name, hcaldqm::quantity::Quantity._name, CutApplicatorBase._name, ElectronMVAEstimatorRun2Phys14NonTrig._name, PhotonMVAEstimatorRun2Spring15NonTrig._name, PhotonMVAEstimatorRun2Phys14NonTrig._name, ElectronMVAEstimatorRun2Spring15Trig._name, GeometricDetExtra._name, ElectronMVAEstimatorRun2Spring15NonTrig._name, HistoParams< TH2F >._name, HistoParams< TProfile2D >._name, plotting.Subtract._name, plotting.FakeDuplicate._name, plotting.AggregateBins._name, Vispa.Views.PropertyView.Property._name, SequenceTypes.SequencePlaceholder._name, plotting.AggregateHistos._name, plotting.ROC._name, plotting.Plot._name, plotting.PlotGroup._name, plotting.PlotGroup._plots, plotting.PlotGroup._ratioFactor, and plotting.PlotGroup._save().
Referenced by plotting.PlotGroup.draw().
|
private |
Internal method to set divide a pad to two for ratio plots
Definition at line 1751 of file plotting.py.
References plotting.PlotGroup._ratioFactor.
Referenced by plotting.PlotGroup._drawSeparate(), and plotting.PlotGroup.draw().
|
private |
Definition at line 1797 of file plotting.py.
References FP420HitsObject._name, TrackerHitsObject._name, PGeometricDet::Item._name, LikelihoodSpecies._name, L1TMuon::PtAssignmentUnit._name, L1TMuon::PtRefinementUnit._name, LikelihoodPdfProduct._name, LikelihoodPdf._name, citk::IsolationConeDefinitionBase._name, Logger._name, hcaldqm::DQModule._name, DrellYanValidation._name, WValidation._name, HistoParams< T >._name, hcaldqm::flag::Flag._name, hcaldqm::quantity::Quantity._name, CutApplicatorBase._name, ElectronMVAEstimatorRun2Phys14NonTrig._name, PhotonMVAEstimatorRun2Spring15NonTrig._name, PhotonMVAEstimatorRun2Phys14NonTrig._name, GeometricDetExtra._name, ElectronMVAEstimatorRun2Spring15Trig._name, ElectronMVAEstimatorRun2Spring15NonTrig._name, HistoParams< TH2F >._name, HistoParams< TProfile2D >._name, plotting.Subtract._name, plotting.FakeDuplicate._name, plotting.AggregateBins._name, Vispa.Views.PropertyView.Property._name, SequenceTypes.SequencePlaceholder._name, plotting.AggregateHistos._name, plotting.ROC._name, plotting.Plot._name, and plotting.PlotGroup._name.
Referenced by plotting.PlotGroup._drawSeparate(), and plotting.PlotGroup.draw().
def plotting.PlotGroup.append | ( | self, | |
plot | |||
) |
Definition at line 1594 of file plotting.py.
Referenced by diclist.diclist.add(), and BeautifulSoup.Tag.setString().
Create histograms from a list of TDirectories. Arguments: tdirectories -- List of TDirectory objects requireAllHistograms -- If True, a plot is produced if histograms from all files are present (default: False)
Definition at line 1607 of file plotting.py.
References plotting.PlotGroup._plots.
def plotting.PlotGroup.draw | ( | self, | |
legendLabels, | |||
prefix = None , |
|||
separate = False , |
|||
saveFormat = ".pdf" , |
|||
ratio = False |
|||
) |
Draw the histograms using values for a given algorithm. Arguments: legendLabels -- List of strings for legend labels (corresponding to the tdirectories in create()) 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 1617 of file plotting.py.
References plotting._createCanvas(), plotting.PlotGroup._createLegend(), plotting.PlotGroup._drawSeparate(), plotting.PlotGroup._modifyPadForRatio(), FP420HitsObject._name, TrackerHitsObject._name, PGeometricDet::Item._name, LikelihoodSpecies._name, L1TMuon::PtRefinementUnit._name, L1TMuon::PtAssignmentUnit._name, LikelihoodPdfProduct._name, LikelihoodPdf._name, citk::IsolationConeDefinitionBase._name, Logger._name, hcaldqm::DQModule._name, DrellYanValidation._name, WValidation._name, HistoParams< T >._name, hcaldqm::flag::Flag._name, hcaldqm::quantity::Quantity._name, CutApplicatorBase._name, ElectronMVAEstimatorRun2Phys14NonTrig._name, PhotonMVAEstimatorRun2Spring15NonTrig._name, PhotonMVAEstimatorRun2Phys14NonTrig._name, GeometricDetExtra._name, ElectronMVAEstimatorRun2Spring15Trig._name, ElectronMVAEstimatorRun2Spring15NonTrig._name, HistoParams< TH2F >._name, HistoParams< TProfile2D >._name, plotting.Subtract._name, plotting.FakeDuplicate._name, plotting.AggregateBins._name, Vispa.Views.PropertyView.Property._name, SequenceTypes.SequencePlaceholder._name, plotting.AggregateHistos._name, plotting.ROC._name, plotting.Plot._name, plotting.PlotGroup._name, plotting.PlotGroup._plots, plotting.PlotGroup._ratioFactor, plotting.PlotGroup._save(), and bookConverter.max.
def plotting.PlotGroup.getName | ( | self | ) |
Definition at line 1581 of file plotting.py.
References FP420HitsObject._name, TrackerHitsObject._name, PGeometricDet::Item._name, LikelihoodSpecies._name, L1TMuon::PtAssignmentUnit._name, L1TMuon::PtRefinementUnit._name, LikelihoodPdfProduct._name, LikelihoodPdf._name, citk::IsolationConeDefinitionBase._name, Logger._name, hcaldqm::DQModule._name, DrellYanValidation._name, WValidation._name, HistoParams< T >._name, hcaldqm::flag::Flag._name, hcaldqm::quantity::Quantity._name, CutApplicatorBase._name, ElectronMVAEstimatorRun2Phys14NonTrig._name, PhotonMVAEstimatorRun2Spring15NonTrig._name, PhotonMVAEstimatorRun2Phys14NonTrig._name, GeometricDetExtra._name, ElectronMVAEstimatorRun2Spring15Trig._name, ElectronMVAEstimatorRun2Spring15NonTrig._name, HistoParams< TH2F >._name, HistoParams< TProfile2D >._name, plotting.Subtract._name, plotting.FakeDuplicate._name, plotting.AggregateBins._name, Vispa.Views.PropertyView.Property._name, SequenceTypes.SequencePlaceholder._name, plotting.AggregateHistos._name, plotting.ROC._name, plotting.Plot._name, and plotting.PlotGroup._name.
def plotting.PlotGroup.getPlot | ( | self, | |
name | |||
) |
def plotting.PlotGroup.getPlots | ( | self | ) |
Definition at line 1584 of file plotting.py.
References plotting.PlotGroup._plots.
def plotting.PlotGroup.onlyForPileup | ( | self | ) |
Return True if the PlotGroup is intended only for pileup samples
Definition at line 1603 of file plotting.py.
References plotting.PlotFolder._onlyForPileup.
def plotting.PlotGroup.remove | ( | self, | |
name | |||
) |
Definition at line 1587 of file plotting.py.
References FP420HitsObject._name, TrackerHitsObject._name, PGeometricDet::Item._name, LikelihoodSpecies._name, L1TMuon::PtAssignmentUnit._name, L1TMuon::PtRefinementUnit._name, LikelihoodPdfProduct._name, LikelihoodPdf._name, citk::IsolationConeDefinitionBase._name, Logger._name, hcaldqm::DQModule._name, DrellYanValidation._name, WValidation._name, HistoParams< T >._name, hcaldqm::flag::Flag._name, hcaldqm::quantity::Quantity._name, CutApplicatorBase._name, ElectronMVAEstimatorRun2Phys14NonTrig._name, PhotonMVAEstimatorRun2Spring15NonTrig._name, PhotonMVAEstimatorRun2Phys14NonTrig._name, GeometricDetExtra._name, ElectronMVAEstimatorRun2Spring15Trig._name, ElectronMVAEstimatorRun2Spring15NonTrig._name, HistoParams< TH2F >._name, HistoParams< TProfile2D >._name, plotting.Subtract._name, plotting.FakeDuplicate._name, plotting.AggregateBins._name, Vispa.Views.PropertyView.Property._name, SequenceTypes.SequencePlaceholder._name, plotting.AggregateHistos._name, plotting.ROC._name, plotting.Plot._name, plotting.PlotGroup._name, and plotting.PlotGroup._plots.
|
private |
Definition at line 1561 of file plotting.py.
Referenced by plotting.PlotGroup._drawSeparate(), plotting.PlotGroup._save(), plotting.PlotGroup.draw(), plotting.PlotGroup.getName(), plotting.PlotterFolder.getName(), plotting.PlotterItem.getName(), plotting.PlotterFolder.getSelectionNameIterator(), validation.SimpleSample.name(), trackingPlots.Iteration.name(), plotting.PlotterItem.readDirs(), and plotting.PlotGroup.remove().
|
private |
Definition at line 1562 of file plotting.py.
Referenced by plotting.PlotGroup._drawSeparate(), plotting.Plotter.appendTable(), plotting.Plotter.clear(), plotting.PlotGroup.create(), plotting.PlotGroup.draw(), plotting.PlotGroup.getPlot(), plotting.Plotter.getPlotFolder(), plotting.Plotter.getPlotFolderNames(), plotting.Plotter.getPlotFolders(), plotting.PlotGroup.getPlots(), plotting.Plotter.readDirs(), and plotting.PlotGroup.remove().
|
private |
Definition at line 1579 of file plotting.py.
Referenced by plotting.PlotGroup._drawSeparate(), plotting.PlotGroup._modifyPadForRatio(), and plotting.PlotGroup.draw().