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

QC-1202 Improve naming of canvas elements created by TrendingTask #2364

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

knopers8
Copy link
Collaborator

@knopers8 knopers8 commented Jul 3, 2024

As it turned out, some TPC Checks were relying on the default naming used by TTree::Draw when drawing the trends, i.e. "Graph" and "htemp". When implementing QC-1155, we could not keep them default to allow for drawing a legend in case we had multiple trends on one canvas.

This commit changes the following:

  • It adds an optional "name" field to graphs. If it's absent, "title" is used. If that is absent as well, the main "name" of the plot is used.
  • In case that "htemp" is used by TTree::Draw only to draw the axes, title, etc, it is renamed to "background". In case that the plot is 1D, "htemp" is renamed to the plot "name"
  • In case that errors are drawn, the object is renamed to "name" suffixed with "_errors"

As it turned out, some TPC Checks were relying on the default naming used by TTree::Draw when drawing the trends, i.e. "Graph" and "htemp".
When implementing QC-1155, we could not keep them default to allow for drawing a legend in case we had multiple trends on one canvas.

This commit changes the following:
- It adds an optional "name" field to graphs. If it's absent, "title" is used. If that is absent as well, the main "name" of the plot is used.
- In case that "htemp" is used by TTree::Draw only to draw the axes, title, etc, it is renamed to "background". In case that the plot is 1D, "htemp" is renamed to the plot "name"
- In case that errors are drawn, the object is renamed to "name" suffixed with "_errors"
@knopers8
Copy link
Collaborator Author

knopers8 commented Jul 3, 2024

@mlesch is that OK with you?

@mlesch
Copy link
Contributor

mlesch commented Jul 3, 2024

@knopers8 perfect, thanks! I can then adapt the TPC Checkers for this case

@knopers8 knopers8 merged commit 8ad723f into AliceO2Group:master Jul 4, 2024
7 checks passed
@knopers8 knopers8 deleted the trending-task-graph-names branch July 4, 2024 07:53
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