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

THRatio: fix division of histograms with different bin labels #2112

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

aferrero2707
Copy link
Contributor

If the histogram has bin labels, the labels need to be set identically in the denominator.
This fixes the InfoLogger warning messages of this kind:

Warning in <o2::quality_control_modules::common::TH1Ratio<TH1F>::Divide>: Dividing histograms with different labels task="alio2-cr1-hv-gw01.cern.ch:/opt/git/ControlWorkflows/tasks/jit-7abe323a47097871d9b0ae2a90447dd0c4b2dd8a-ITS-MERGER-ITSDECODING1l-0@93087985f19b7f8c370f2b878b236f82d240f965#2kFrfucUyac"

If the histograms has bin labels, the labels need to be set identically in
the denominator, to avoid a warning message from the `Divide()` function
@aferrero2707
Copy link
Contributor Author

@Barthelemy @knopers8 @iravasen this should remove some warning messages from the ITS QC tasks.

Copy link
Collaborator

@knopers8 knopers8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

@knopers8 knopers8 merged commit 4d32c59 into AliceO2Group:master Jan 29, 2024
2 checks passed
@aferrero2707 aferrero2707 deleted the fix-histogram-ratio-divide branch January 29, 2024 15:10
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