Skip to content

v0.1.0

Compare
Choose a tag to compare
@ponyisi ponyisi released this 14 Aug 22:11
· 50 commits to master since this release

Refactors interface to postprocessing functions to follow convention agreed with ATLAS. Specifically, the functions can be called with multiple histograms at once if a pattern appears in the matching regex that is not present in the output histogram name format string. (This is done so that you can e.g. combine myhistogram1 and myhistogram2 into a single output.)

This is handled using a new HistCombinationIterable object which can be iterated over or indexed to obtain a pair (match, list_of_histograms), in which the first entry is a dict that gives the specific pattern match satisfied by this entry, and list_of_histograms is a list with the same number of entries as the Input specification in the yaml file. The patterns will be matched correctly across the histograms in the list using the combinatoric engine.

In order that we don't call the postprocessing functions with partial subsets of the full list of matches, a "warmup" phase has been added. For the ROOT input module, this does a dry run first to figure out what histograms are available, so the regular postprocessing phase knows what to expect.

Various examples of using these matching features have been added to example.yaml.