Classes | |
class | AggregateBins |
class | AggregateHistos |
class | CutEfficiency |
class | DQMSubFolder |
class | FakeDuplicate |
class | Frame |
class | FrameRatio |
class | FrameTGraph2D |
class | GetDirectoryCode |
class | Plot |
class | PlotFolder |
class | PlotGroup |
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, xbinlabels=None, xbinlabelsize=None, xbinlabeloption=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 | _modifyPadForRatio (pad, ratioFactor) |
def | _setStyle () |
def | _th1ToOrderedDict (th1, renameBin=None) |
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 144 of file plotting.py.
References funct.abs(), cond::serialization.equal(), and hpstanc_transforms.max.
Referenced by ntuplePlotting.draw().
|
private |
Definition at line 1482 of file plotting.py.
|
private |
Definition at line 105 of file plotting.py.
Referenced by plotting.PlotGroup._drawSeparate(), ntuplePlotting.draw(), and plotting.PlotGroup.draw().
|
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: 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 1018 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 454 of file plotting.py.
References _findBoundsY(), _getXmax(), _getXmin(), ALCARECOTkAlBeamHalo_cff.filter, hpstanc_transforms.max, min(), and harvestTrackValidationPlots.str.
Referenced by ntuplePlotting.draw().
|
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 522 of file plotting.py.
References _getYmax(), _getYmin(), _getYminIgnoreOutlier(), _getYminMaxAroundMedian(), ALCARECOTkAlBeamHalo_cff.filter, hpstanc_transforms.max, min(), and harvestTrackValidationPlots.str.
Referenced by _findBounds().
|
private |
Definition at line 93 of file plotting.py.
References _getDirectoryDetailed().
Referenced by plotting.PlotterTableItem.create().
Get TDirectory from TFile.
Definition at line 69 of file plotting.py.
References join().
Referenced by _getDirectory(), and plotting.PlotterFolder.create().
|
private |
Definition at line 45 of file plotting.py.
Referenced by _getOrCreateObject(), plotting.Subtract.create(), plotting.FakeDuplicate.create(), plotting.AggregateHistos.create(), and plotting.PlotterFolder.create().
|
private |
Definition at line 53 of file plotting.py.
References _getObject().
Referenced by plotting.Plot._createOne(), plotting.Transform.create(), plotting.CutEfficiency.create(), plotting.AggregateBins.create(), plotting.ROC.create(), and trackingPlots.TimePerTrackPlot.create().
Definition at line 352 of file plotting.py.
References hpstanc_transforms.max, and harvestTrackValidationPlots.str.
Referenced by _findBounds().
Definition at line 336 of file plotting.py.
References min(), and harvestTrackValidationPlots.str.
Referenced by _findBounds().
Definition at line 383 of file plotting.py.
References hpstanc_transforms.max, and harvestTrackValidationPlots.str.
Referenced by _findBoundsY().
|
private |
Definition at line 368 of file plotting.py.
References min(), and harvestTrackValidationPlots.str.
Referenced by _findBoundsY().
|
private |
Definition at line 401 of file plotting.py.
References ALCARECOTkAlBeamHalo_cff.filter, and createfilelist.int.
Referenced by _findBoundsY().
Definition at line 418 of file plotting.py.
References ALCARECOTkAlBeamHalo_cff.filter, createfilelist.int, and harvestTrackValidationPlots.str.
Referenced by _findBoundsY().
|
private |
Definition at line 115 of file plotting.py.
Referenced by ntuplePlotting.draw().
|
private |
Definition at line 17 of file plotting.py.
Definition at line 96 of file plotting.py.
Referenced by plotting.AggregateBins.create(), and trackingPlots.TrackingSummaryTable.create().
|
private |
Definition at line 239 of file plotting.py.
|
private |
Definition at line 1015 of file plotting.py.
|
private |
Definition at line 1016 of file plotting.py.
|
private |
Definition at line 199 of file plotting.py.
|
private |
Definition at line 15 of file plotting.py.
|
private |
Definition at line 191 of file plotting.py.
|
private |
Definition at line 192 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 241 of file plotting.py.
|
private |
Definition at line 245 of file plotting.py.
|
private |
Definition at line 246 of file plotting.py.
|
private |
Definition at line 244 of file plotting.py.
plotting.IgnoreCommandLineOptions |
Definition at line 10 of file plotting.py.
plotting.verbose |
Definition at line 14 of file plotting.py.