Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Common: reference comparator check improvements #2429

Conversation

aferrero2707
Copy link
Contributor

Several improvements to the reference comparator check:

  • optional X and Y ranges can be specified in the configuration to restrict the comparison to a given histogram area
  • the comparators now access directly the custom parameters, allowing to have parameters specific to each comparator
  • added a ObjectComparatorBinByBinDeviation class that checks the relative deviation between each bin of the current and reference histograms
    • A maxAllowedBadBins parameter allows to specify the maximum number of bins above threshold for which the quality is still considered Good.
    • If X and/or Y ranges are specified, only the bins inside the ranges are considered for the comparison.
  • The "average deviation" and "Chi2 test" comparison methods are improved to take into account the X and/or Y ranges in the comparison.
  • For 1-D histograms, the checker shows the X range (if specified) on the ratio plot as a double-arrow horizontal line

The following changes are implemented for the object comparator interface:
* optional X and Y ranges to restrict the comparison to a given histogram area
* the comparators now access directly the custom parameters; this allows to
have parameters specific to each comparator
The comparison based on the relative deviation between each bin of the
current and reference histograms.
A `maxAllowedBadBins` parameter allows to specify the maximum number of
bins above threshold for which the quality is still considered Good.
If X and/or Y ranges are specified, only the bins inside the ranges are
considered for the comparison.
The "average deviation" and "Chi2 test"  comparison methods are improved
to take into account the X and/or Y ranges in the comparison.
* comparators are now plot-specific, allowing to have configuration parameters
that are specific to some plots
* for 1-D histograms, if specified the X range is shown on the ratio plot
with a double-arrow horizontal line
The `std::string` type was not correctly handled because the standard
library does not provide an "identity" override for `std::to_string()`
@Barthelemy
Copy link
Collaborator

thank you,
I will review it in the coming days.

@aferrero2707 aferrero2707 force-pushed the common-reference-comparator-check-improvements branch from a56f2b6 to 7524461 Compare September 23, 2024 20:50
@Barthelemy Barthelemy merged commit 700a16c into AliceO2Group:master Sep 25, 2024
7 checks passed
@aferrero2707 aferrero2707 deleted the common-reference-comparator-check-improvements branch September 26, 2024 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants