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 | |
|
private |
Calculate the ratios for a list of histograms
Definition at line 148 of file plotting.py.
References submitPVValidationJobs.__init__(), funct.abs(), cond::serialization.equal(), and WZElectronSkims53X_cff.max.
Referenced by ntuplePlotting.drawSingle().
|
private |
Definition at line 1641 of file plotting.py.
|
private |
Definition at line 109 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 1187 of file plotting.py.
References isotrackApplyRegressor.range.
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 459 of file plotting.py.
References _findBoundsY(), _getXmax(), _getXmin(), WZElectronSkims53X_cff.max, SiStripPI.min, 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 527 of file plotting.py.
References _getYmax(), _getYmin(), _getYminIgnoreOutlier(), _getYminMaxAroundMedian(), WZElectronSkims53X_cff.max, SiStripPI.min, print(), and str.
Referenced by _findBounds().
|
private |
Definition at line 97 of file plotting.py.
References _getDirectoryDetailed().
Referenced by plotting.PlotterTableItem.create().
|
private |
Get TDirectory from TFile.
Definition at line 73 of file plotting.py.
References join(), and print().
Referenced by _getDirectory(), and plotting.PlotterFolder.create().
|
private |
Definition at line 49 of file plotting.py.
References print().
Referenced by _getOrCreateObject(), plotting.Subtract.create(), plotting.FakeDuplicate.create(), plotting.AggregateHistos.create(), and plotting.PlotterFolder.create().
|
private |
Definition at line 57 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().
|
private |
Definition at line 358 of file plotting.py.
References WZElectronSkims53X_cff.max, isotrackApplyRegressor.range, and str.
Referenced by _findBounds().
|
private |
Definition at line 342 of file plotting.py.
References SiStripPI.min, isotrackApplyRegressor.range, and str.
Referenced by _findBounds().
|
private |
Definition at line 389 of file plotting.py.
References WZElectronSkims53X_cff.max, isotrackApplyRegressor.range, and str.
Referenced by _findBoundsY().
|
private |
Definition at line 404 of file plotting.py.
References WZElectronSkims53X_cff.max, and isotrackApplyRegressor.range.
|
private |
Definition at line 374 of file plotting.py.
References SiStripPI.min, isotrackApplyRegressor.range, and str.
Referenced by _findBoundsY().
|
private |
Definition at line 407 of file plotting.py.
References createfilelist.int, and isotrackApplyRegressor.range.
Referenced by _findBoundsY().
|
private |
Definition at line 423 of file plotting.py.
References createfilelist.int, isotrackApplyRegressor.range, and str.
Referenced by _findBoundsY().
|
private |
Definition at line 713 of file plotting.py.
References WZElectronSkims53X_cff.max.
Referenced by _mergeBinLabelsX(), and _mergeBinLabelsY().
|
private |
Definition at line 707 of file plotting.py.
References _mergeBinLabels(), and isotrackApplyRegressor.range.
Referenced by trackingPlots.TrackingSeedingLayerTable.draw(), and plotting.Plot.draw().
|
private |
Definition at line 710 of file plotting.py.
References _mergeBinLabels(), and isotrackApplyRegressor.range.
Referenced by plotting.Plot.draw().
|
private |
Definition at line 119 of file plotting.py.
Referenced by ntuplePlotting.draw(), and ntuplePlotting.drawMany().
|
private |
Definition at line 21 of file plotting.py.
|
private |
Definition at line 744 of file plotting.py.
Referenced by trackingPlots.TrackingSeedingLayerTable.draw(), and plotting.Plot.draw().
|
private |
Definition at line 607 of file plotting.py.
References isotrackApplyRegressor.range.
Referenced by trackingPlots.TrackingSeedingLayerTable.draw().
|
private |
Definition at line 100 of file plotting.py.
References isotrackApplyRegressor.range.
Referenced by trackingPlots.TrackingSummaryTable.create(), and plotting.AggregateBins.create().
|
private |
Definition at line 647 of file plotting.py.
References isotrackApplyRegressor.range.
|
private |
Definition at line 243 of file plotting.py.
|
private |
Definition at line 1184 of file plotting.py.
|
private |
Definition at line 1185 of file plotting.py.
|
private |
Definition at line 203 of file plotting.py.
|
private |
Definition at line 19 of file plotting.py.
|
private |
Definition at line 195 of file plotting.py.
|
private |
Definition at line 196 of file plotting.py.
|
private |
Definition at line 247 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 249 of file plotting.py.
|
private |
Definition at line 250 of file plotting.py.
|
private |
Definition at line 248 of file plotting.py.
plotting.IgnoreCommandLineOptions |
Definition at line 14 of file plotting.py.
plotting.verbose |
Definition at line 18 of file plotting.py.