[NGT] Add utility to produce plots from DQM output files#49830
[NGT] Add utility to produce plots from DQM output files#49830cmsbuild merged 5 commits intocms-sw:masterfrom
Conversation
- Usage detailed by running dqm-plot -h - Defaults to CMS color palette with unique markers - Saves plots in png format by default (can also add pdf output) - Vertical space is added for legend padding. Legend entries are split into columns, compressed in camelCase if necessary or placed outside the pad in extreme cases - Supports up to 10 files to compare (more at your own risk) - Can optionally add a index.php file in all output subdirectories for web viewing - Set log scale automatically for most common cases (res, pT, ...) - Plots are produced as errorbars by default (use --histograms to override) - Grid is enabled by default on all plots, can be disabled with --no-grid - For summary plots, labels are extracted from root file and used in the comparison plots (all labels from all files are included)
- Process multiple input regex patterns - Better handling of axes and titles labels - Introduced color palette extension - Safer handling of automatic log-scale plots
Improved "vs" matching
|
cms-bot internal usage |
|
type ngt |
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-49830/47483 |
|
A new Pull Request was created by @Parsifal-2045 for master. It involves the following packages:
@cmsbuild, @ctarricone, @gabrielmscampos, @nothingface0, @rseidita can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
|
@Parsifal-2045 Thanks for this! How crucial do you think this tool is/will be? Perhaps it's a stretch, but could you add a test to make sure that the basic script functionality stays correct in the future? On the other hand, I don't know if it's a good idea to break the whole CMSSW tests in case this test breaks. |
I don't think I can really comment on how crucial it will be. I have been using it extensively for the past few months and it has proven very useful for checking physics performance during development. I have also shared it with some colleagues and many of the features here have been added thanks to their feedback (as well as my own desiderata). |
i think something along the lines of #49817 is a very reasonable request (here you would need two input files). |
I have just added a unit test along the lines of the suggestion (thank you!). I ended up using a single file twice, but with overlaid plots to also test ratios that are not 1 |
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-49830/47490 |
|
Pull request #49830 was updated. @cmsbuild, @ctarricone, @gabrielmscampos, @nothingface0, @rseidita can you please check and sign again. |
|
Assuming no hurry about integration, I suggest to test with tomorrow's IB as the development branch is still turbolent |
|
@cmsbuild, please test |
|
+1 Size: This PR adds an extra 40KB to repository Comparison SummarySummary:
|
|
+dqm |
|
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @mandrenguyen, @ftenchini, @sextonkennedy (and backports should be raised in the release meeting by the corresponding L2) |
|
+1 |
PR description:
This PR introduces a new utility script,
dqm-plot, located inDQMServices/Components/scripts/. This tool allows users to easily compare DQM histograms from multiple ROOT files usingmplhepwith official CMS plotting styles.Main features:
mplhepand standard CMS style guidelines (CMS logo, energy labels, font styles, color palette)index.phpfiles for easy deployment and viewing on web servers (e.g., CERN web space).Usage Example:
There are more available options, all accessible in the help message of the utility
An example of the output from Phase 2 HLT Validation DQM files can be found here
PR validation:
The script has been tested locally with standard DQM ROOT files