Skip to content

Variable bins in AthenaMonitoring

Charles Burton requested to merge cburton/athena:master-variable-bins into master

This MR is to handle the request to support variable bin-widths that was made in https://its.cern.ch/jira/browse/ATLASDQ-684. As a first step, I've done this only for TH1 histograms. If these changes are acceptable, I'll use the same method for TH2, TProfile, and TEfficiency in another commit.

I've implemented this by allowing the user to specify a list of bin edges in the xbins kwarg of GenericMonitoringTool.py's defineHistogram function. Then, in the resolveAxes() function of HistogramDef, they are parsed from a string into a new member variable xArray. This array is then passed to the appropriate create<H,T>() function of HistogramFactory.

@tbold @pisarna @ponyisi

Edited by Charles Burton

Merge request reports