THStackPainter

THStackPainter

(private) new THStackPainter(dom, stack, optopt)

Painter class for THStack

Source:
Parameters:
Name Type Attributes Description
dom object | string

DOM element for drawing or element id

stack object

THStack object

opt string <optional>

draw options

Methods

buildStack()

Build sum of all histograms

Description:
  • Build a separate list fStack containing the running sum of all histograms

Source:

cleanup()

Cleanup THStack painter

Source:

createHistogram()

Create main histogram for THStack axis drawing

Source:

decodeOptions()

Decode draw options of THStack painter

Source:

(async) drawNextHisto()

Draw next stack histogram

Source:

fillContextMenuItems()

Fill hstack context menu

Source:

getHistDrawOption()

Provide draw options for the histogram

Source:

getMinMax()

Returns stack min/max values

Source:

redraw()

Redraw THStack

Description:
  • Do something if previous update had changed number of histograms

Source:

updateObject()

Update thstack object

Source:

(async, static) draw()

draw THStack object

Source: