Skip to content

Title and Path Templates

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

This adds the functionality request in https://its.cern.ch/jira/browse/ATLASDQ-748.

Users can write commands like array1D.defineHistogram('c', title='Plot of c for {0}', path='Keys/') or array2D.defineHistogram('c', title='Plot of c for {1} and {0}', path='Keys/{1}', xmax=3.)

File Changes
AthMonitorCfgHelper.py Fix a small error in the documentation.
ExampleMonitorAlgorithm.py Add examples for title template and path template.
GenericMonitoringTool.py For each group in the array, store a tuple of the location of this histogram along each dimension. Create formatted titles and paths for each histogram. Add error message during a variable check. Helper function to determine histogram alias (to avoid same code in two places).
GenericMonCreation_test.py New unit test to check python side of GenericMonitoringTool and GenericMonitoringArray.
test_defineHistogram.py Fixed bug in test_offlineNamingConvention and added unit test for new helper function.

@ponyisi

Edited by Charles Burton

Merge request reports