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 145 of file plotting.py.
References funct.abs(), cond::serialization.equal(), and SiStripPI.max.
Referenced by ntuplePlotting.drawSingle().
|
private |
Definition at line 1659 of file plotting.py.
|
private |
Definition at line 106 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 1183 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 455 of file plotting.py.
References _findBoundsY(), _getXmax(), _getXmin(), ALCARECOTkAlBeamHalo_cff.filter, SiStripPI.max, min(), and harvestTrackValidationPlots.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 523 of file plotting.py.
References _getYmax(), _getYmin(), _getYminIgnoreOutlier(), _getYminMaxAroundMedian(), ALCARECOTkAlBeamHalo_cff.filter, SiStripPI.max, min(), and harvestTrackValidationPlots.str.
Referenced by _findBounds().
|
private |
Definition at line 94 of file plotting.py.
References _getDirectoryDetailed().
Referenced by plotting.PlotterTableItem.create().
Get TDirectory from TFile.
Definition at line 70 of file plotting.py.
References join().
Referenced by _getDirectory(), and plotting.PlotterFolder.create().
|
private |
Definition at line 46 of file plotting.py.
Referenced by _getOrCreateObject(), plotting.Subtract.create(), plotting.FakeDuplicate.create(), plotting.AggregateHistos.create(), and plotting.PlotterFolder.create().
|
private |
Definition at line 54 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 353 of file plotting.py.
References SiStripPI.max, and harvestTrackValidationPlots.str.
Referenced by _findBounds().
Definition at line 337 of file plotting.py.
References min(), and harvestTrackValidationPlots.str.
Referenced by _findBounds().
Definition at line 384 of file plotting.py.
References SiStripPI.max, and harvestTrackValidationPlots.str.
Referenced by _findBoundsY().
|
private |
Definition at line 399 of file plotting.py.
References SiStripPI.max.
Definition at line 369 of file plotting.py.
References min(), and harvestTrackValidationPlots.str.
Referenced by _findBoundsY().
|
private |
Definition at line 402 of file plotting.py.
References ALCARECOTkAlBeamHalo_cff.filter, and createfilelist.int.
Referenced by _findBoundsY().
Definition at line 419 of file plotting.py.
References ALCARECOTkAlBeamHalo_cff.filter, createfilelist.int, and harvestTrackValidationPlots.str.
Referenced by _findBoundsY().
|
private |
Definition at line 709 of file plotting.py.
References SiStripPI.max.
Referenced by _mergeBinLabelsX(), and _mergeBinLabelsY().
|
private |
Definition at line 703 of file plotting.py.
References _mergeBinLabels().
Referenced by trackingPlots.TrackingSeedingLayerTable.draw(), and plotting.Plot.draw().
|
private |
Definition at line 706 of file plotting.py.
References _mergeBinLabels().
Referenced by plotting.Plot.draw().
|
private |
Definition at line 116 of file plotting.py.
Referenced by ntuplePlotting.draw(), and ntuplePlotting.drawMany().
|
private |
Definition at line 18 of file plotting.py.
|
private |
Definition at line 740 of file plotting.py.
Referenced by trackingPlots.TrackingSeedingLayerTable.draw(), and plotting.Plot.draw().
|
private |
Definition at line 603 of file plotting.py.
Referenced by trackingPlots.TrackingSeedingLayerTable.draw().
Definition at line 97 of file plotting.py.
Referenced by trackingPlots.TrackingSummaryTable.create(), and plotting.AggregateBins.create().
|
private |
Definition at line 643 of file plotting.py.
|
private |
Definition at line 240 of file plotting.py.
|
private |
Definition at line 1180 of file plotting.py.
|
private |
Definition at line 1181 of file plotting.py.
|
private |
Definition at line 200 of file plotting.py.
|
private |
Definition at line 16 of file plotting.py.
|
private |
Definition at line 192 of file plotting.py.
|
private |
Definition at line 193 of file plotting.py.
|
private |
Definition at line 244 of file plotting.py.
|
private |
Definition at line 243 of file plotting.py.
|
private |
Definition at line 242 of file plotting.py.
|
private |
Definition at line 246 of file plotting.py.
|
private |
Definition at line 247 of file plotting.py.
|
private |
Definition at line 245 of file plotting.py.
plotting.IgnoreCommandLineOptions |
Definition at line 11 of file plotting.py.
plotting.verbose |
Definition at line 15 of file plotting.py.