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 |
def | _copyStyle |
def | _createCanvas |
def | _drawFrame |
def | _findBounds |
def | _findBoundsY |
def | _getDirectory |
def | _getDirectoryDetailed |
def | _getObject |
def | _getOrCreateObject |
def | _getXmax |
def | _getXmin |
def | _getYmax |
def | _getYmaxWithError |
def | _getYmin |
def | _getYminIgnoreOutlier |
def | _getYminMaxAroundMedian |
def | _mergeBinLabels |
def | _mergeBinLabelsX |
def | _mergeBinLabelsY |
def | _modifyPadForRatio |
def | _setStyle |
def | _th1IncludeOnlyBins |
def | _th1RemoveEmptyBins |
def | _th1ToOrderedDict |
def | _th2RemoveEmptyBins |
Variables | |
_gr | |
list | _plotStylesColor = [4, 2, ROOT.kBlack, ROOT.kOrange+7, ROOT.kMagenta-3, ROOT.kGreen+2] |
list | _plotStylesMarker = [21, 20, 22, 34, 33, 23] |
_ratio | |
string | _ratioYTitle = "Ratio" |
_th1 | |
_uncertainty | |
_xerrshigh | |
_xerrslow | |
_xvalues | |
_yerrshigh | |
_yerrslow | |
_yvalues | |
verbose = False | |
|
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 SiStripPI.max.
Referenced by ntuplePlotting.drawSingle().
|
private |
Definition at line 1663 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 sistrip::SpyUtilities.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(), SiStripPI.max, 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(), SiStripPI.max, 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 SiStripPI.max, sistrip::SpyUtilities.range(), and str.
Referenced by _findBounds().
|
private |
Definition at line 342 of file plotting.py.
References min(), sistrip::SpyUtilities.range(), and str.
Referenced by _findBounds().
|
private |
Definition at line 389 of file plotting.py.
References SiStripPI.max, sistrip::SpyUtilities.range(), and str.
Referenced by _findBoundsY().
|
private |
Definition at line 404 of file plotting.py.
References SiStripPI.max, and sistrip::SpyUtilities.range().
|
private |
Definition at line 374 of file plotting.py.
References min(), sistrip::SpyUtilities.range(), and str.
Referenced by _findBoundsY().
|
private |
Definition at line 407 of file plotting.py.
References sistrip::SpyUtilities.range().
Referenced by _findBoundsY().
|
private |
Definition at line 423 of file plotting.py.
References sistrip::SpyUtilities.range(), and str.
Referenced by _findBoundsY().
|
private |
Definition at line 713 of file plotting.py.
References SiStripPI.max.
Referenced by _mergeBinLabelsX(), and _mergeBinLabelsY().
|
private |
Definition at line 707 of file plotting.py.
References _mergeBinLabels(), and sistrip::SpyUtilities.range().
Referenced by trackingPlots.TrackingSeedingLayerTable.draw(), and plotting.Plot.draw().
|
private |
Definition at line 710 of file plotting.py.
References _mergeBinLabels(), and sistrip::SpyUtilities.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 sistrip::SpyUtilities.range().
Referenced by trackingPlots.TrackingSeedingLayerTable.draw().
|
private |
Definition at line 100 of file plotting.py.
References sistrip::SpyUtilities.range().
Referenced by trackingPlots.TrackingSummaryTable.create(), and plotting.AggregateBins.create().
|
private |
Definition at line 647 of file plotting.py.
References sistrip::SpyUtilities.range().
plotting._gr |
Definition at line 243 of file plotting.py.
list plotting._plotStylesColor = [4, 2, ROOT.kBlack, ROOT.kOrange+7, ROOT.kMagenta-3, ROOT.kGreen+2] |
Definition at line 1184 of file plotting.py.
list plotting._plotStylesMarker = [21, 20, 22, 34, 33, 23] |
Definition at line 1185 of file plotting.py.
plotting._ratio |
Definition at line 203 of file plotting.py.
string plotting._ratioYTitle = "Ratio" |
Definition at line 19 of file plotting.py.
plotting._th1 |
Definition at line 195 of file plotting.py.
plotting._uncertainty |
Definition at line 196 of file plotting.py.
plotting._xerrshigh |
Definition at line 247 of file plotting.py.
plotting._xerrslow |
Definition at line 246 of file plotting.py.
plotting._xvalues |
Definition at line 245 of file plotting.py.
plotting._yerrshigh |
Definition at line 249 of file plotting.py.
plotting._yerrslow |
Definition at line 250 of file plotting.py.
plotting._yvalues |
Definition at line 248 of file plotting.py.
plotting.verbose = False |
Definition at line 18 of file plotting.py.