Classes | |
class | AggregateBins |
class | AggregateHistos |
class | CutEfficiency |
class | DQMSubFolder |
class | FakeDuplicate |
class | Frame |
class | FrameRatio |
class | FrameTGraph2D |
class | GetDirectoryCode |
class | Plot |
class | PlotEmpty |
class | PlotFolder |
class | PlotGroup |
class | PlotOnSideGroup |
class | Plotter |
class | PlotterFolder |
class | PlotterInstance |
class | PlotterItem |
class | PlotterTableItem |
class | PlotText |
class | PlotTextBox |
class | ROC |
class | Subtract |
class | Transform |
Functions | |
def | _calculateRatios (histos, ratioUncertainty=False) |
def | _copyStyle (src, dst) |
def | _createCanvas (name, width, height) |
def | _drawFrame (pad, bounds, zmax=None, xbinlabels=None, xbinlabelsize=None, xbinlabeloption=None, ybinlabels=None, suffix="") |
def | _findBounds (th1s, ylog, xmin=None, xmax=None, ymin=None, ymax=None) |
def | _findBoundsY (th1s, ylog, ymin=None, ymax=None, coverage=None, coverageRange=None) |
def | _getDirectory (args, kwargs) |
def | _getDirectoryDetailed (tfile, possibleDirs, subDir=None) |
def | _getObject (tdirectory, name) |
def | _getOrCreateObject (tdirectory, nameOrCreator) |
def | _getXmax (obj, limitToNonZeroContent=False) |
def | _getXmin (obj, limitToNonZeroContent=False) |
def | _getYmax (obj, limitToNonZeroContent=False) |
def | _getYmaxWithError (th1) |
def | _getYmin (obj, limitToNonZeroContent=False) |
def | _getYminIgnoreOutlier (th1) |
def | _getYminMaxAroundMedian (obj, coverage, coverageRange=None) |
def | _mergeBinLabels (labelsAll) |
def | _mergeBinLabelsX (histos) |
def | _mergeBinLabelsY (histos) |
def | _modifyPadForRatio (pad, ratioFactor) |
def | _setStyle () |
def | _th1IncludeOnlyBins (histos, xbinlabels) |
def | _th1RemoveEmptyBins (histos, xbinlabels) |
def | _th1ToOrderedDict (th1, renameBin=None) |
def | _th2RemoveEmptyBins (histos, xbinlabels, ybinlabels) |
Variables | |
_gr | |
_plotStylesColor | |
_plotStylesMarker | |
_ratio | |
_ratioYTitle | |
_th1 | |
_uncertainty | |
_xerrshigh | |
_xerrslow | |
_xvalues | |
_yerrshigh | |
_yerrslow | |
_yvalues | |
IgnoreCommandLineOptions | |
verbose | |
Calculate the ratios for a list of histograms
Definition at line 147 of file plotting.py.
References funct.abs(), cond::serialization.equal(), and SiStripPI.max.
Referenced by ntuplePlotting.drawSingle().
|
private |
Definition at line 1660 of file plotting.py.
|
private |
Definition at line 108 of file plotting.py.
Referenced by plotting.PlotGroup._drawSeparate(), ntuplePlotting.draw(), plotting.PlotGroup.draw(), and ntuplePlotting.drawMany().
|
private |
Function to draw a frame Arguments: pad -- TPad to where the frame is drawn bounds -- List or 4-tuple for (xmin, ymin, xmax, ymax) Keyword arguments: zmax -- Maximum Z, needed for TH2 histograms xbinlabels -- Optional list of strings for x axis bin labels xbinlabelsize -- Optional number for the x axis bin label size xbinlabeloption -- Optional string for the x axis bin options (passed to ROOT.TH1.LabelsOption()) suffix -- Optional string for a postfix of the frame name
Definition at line 1184 of file plotting.py.
Find x-y axis boundaries encompassing a list of TH1s if the bounds are not given in arguments. Arguments: th1s -- List of TH1s ylog -- Boolean indicating if y axis is in log scale or not (affects the automatic ymax) Keyword arguments: xmin -- Minimum x value; if None, take the minimum of TH1s xmax -- Maximum x value; if None, take the maximum of TH1s ymin -- Minimum y value; if None, take the minimum of TH1s ymax -- Maximum y value; if None, take the maximum of TH1s
Definition at line 456 of file plotting.py.
References _findBoundsY(), _getXmax(), _getXmin(), SiStripPI.max, min(), edm.print(), and str.
Referenced by ntuplePlotting.drawSingle().
|
private |
Find y axis boundaries encompassing a list of TH1s if the bounds are not given in arguments. Arguments: th1s -- List of TH1s ylog -- Boolean indicating if y axis is in log scale or not (affects the automatic ymax) Keyword arguments: ymin -- Minimum y value; if None, take the minimum of TH1s ymax -- Maximum y value; if None, take the maximum of TH1s coverage -- If set, use only values within the 'coverage' part around the median are used for min/max (useful for ratio) coverageRange -- If coverage and this are set, use only the x axis specified by an (xmin,xmax) pair for the coverage
Definition at line 524 of file plotting.py.
References _getYmax(), _getYmin(), _getYminIgnoreOutlier(), _getYminMaxAroundMedian(), SiStripPI.max, min(), edm.print(), and str.
Referenced by _findBounds().
|
private |
Definition at line 96 of file plotting.py.
References _getDirectoryDetailed().
Referenced by plotting.PlotterTableItem.create().
Get TDirectory from TFile.
Definition at line 72 of file plotting.py.
References join(), and edm.print().
Referenced by _getDirectory(), and plotting.PlotterFolder.create().
|
private |
Definition at line 48 of file plotting.py.
References edm.print().
Referenced by _getOrCreateObject(), plotting.Subtract.create(), plotting.FakeDuplicate.create(), plotting.AggregateHistos.create(), and plotting.PlotterFolder.create().
|
private |
Definition at line 56 of file plotting.py.
References _getObject().
Referenced by trackingPlots.TimePerEventPlot._create(), plotting.Plot._createOne(), plotting.Transform.create(), plotting.CutEfficiency.create(), plotting.AggregateBins.create(), plotting.ROC.create(), and trackingPlots.TimePerTrackPlot.create().
Definition at line 355 of file plotting.py.
References SiStripPI.max, and str.
Referenced by _findBounds().
Definition at line 386 of file plotting.py.
References SiStripPI.max, and str.
Referenced by _findBoundsY().
|
private |
Definition at line 371 of file plotting.py.
Referenced by _findBoundsY().
|
private |
Definition at line 404 of file plotting.py.
References createfilelist.int.
Referenced by _findBoundsY().
Definition at line 420 of file plotting.py.
References createfilelist.int, and str.
Referenced by _findBoundsY().
|
private |
Definition at line 710 of file plotting.py.
References SiStripPI.max.
Referenced by _mergeBinLabelsX(), and _mergeBinLabelsY().
|
private |
Definition at line 704 of file plotting.py.
References _mergeBinLabels().
Referenced by trackingPlots.TrackingSeedingLayerTable.draw(), and plotting.Plot.draw().
|
private |
Definition at line 707 of file plotting.py.
References _mergeBinLabels().
Referenced by plotting.Plot.draw().
|
private |
Definition at line 118 of file plotting.py.
Referenced by ntuplePlotting.draw(), and ntuplePlotting.drawMany().
|
private |
Definition at line 20 of file plotting.py.
|
private |
Definition at line 741 of file plotting.py.
Referenced by trackingPlots.TrackingSeedingLayerTable.draw(), and plotting.Plot.draw().
|
private |
Definition at line 604 of file plotting.py.
Referenced by trackingPlots.TrackingSeedingLayerTable.draw().
Definition at line 99 of file plotting.py.
Referenced by trackingPlots.TrackingSummaryTable.create(), and plotting.AggregateBins.create().
|
private |
Definition at line 644 of file plotting.py.
|
private |
Definition at line 242 of file plotting.py.
|
private |
Definition at line 1181 of file plotting.py.
|
private |
Definition at line 1182 of file plotting.py.
|
private |
Definition at line 202 of file plotting.py.
|
private |
Definition at line 18 of file plotting.py.
|
private |
Definition at line 194 of file plotting.py.
|
private |
Definition at line 195 of file plotting.py.
|
private |
Definition at line 246 of file plotting.py.
|
private |
Definition at line 245 of file plotting.py.
|
private |
Definition at line 244 of file plotting.py.
|
private |
Definition at line 248 of file plotting.py.
|
private |
Definition at line 249 of file plotting.py.
|
private |
Definition at line 247 of file plotting.py.
plotting.IgnoreCommandLineOptions |
Definition at line 13 of file plotting.py.
plotting.verbose |
Definition at line 17 of file plotting.py.