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

Adding new GCP trends tool and commenting unnecessary print out in Trend #40336

Merged
merged 2 commits into from Jan 18, 2023

Conversation

perezdanyer
Copy link

PR description:

The aim of this PR is to add a new tool to be used by the Tracker Alignment (TrkAl) team when deriving performance trends over data-taking periods. The tool adds the capability of performing now trends of position estimators when doing tracker geometry comparisons, which integrates to the already existing trend tools for the other internal validation procedures performed in TrkAl.

The changes consist in the following:

  • addition of main code corresponding to GCPtrend tool
  • minor modification in Trend library to avoid large print out

PR validation:

Tests of the tool have been performed by both the author and another member of the TrkAl team.

@consuegs , @connorpa , @henriettepetersen, @antoniovagnerini, @mmusich

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40336/33423

  • This PR adds an extra 16KB to repository

Code check has found code style and quality issues which could be resolved by applying following patch(s)

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40336/33424

  • This PR adds an extra 20KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @perezdanyer for master.

It involves the following packages:

  • Alignment/OfflineValidation (alca)

@malbouis, @yuanchao, @cmsbuild, @saumyaphor4252, @francescobrivio, @ChrisMisan, @tvami can you please review it and eventually sign? Thanks.
@mmusich, @adewit, @tocheng, @tlampen this is something you requested to watch as well.
@perrotta, @dpiparo, @rappoccio you are the release manager for this.

cms-bot commands are listed here

@tvami
Copy link
Contributor

tvami commented Dec 15, 2022

@cmsbuild , please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-9180bd/29645/summary.html
COMMIT: abe8f55
CMSSW: CMSSW_13_0_X_2022-12-15-1100/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/40336/29645/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 8 differences found in the comparisons
  • DQMHistoTests: Total files compared: 49
  • DQMHistoTests: Total histograms compared: 3557521
  • DQMHistoTests: Total failures: 9
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3557490
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 48 files compared)
  • Checked 211 log files, 162 edm output root files, 49 DQM output files
  • TriggerResults: no differences found

#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>

#include "TROOT.h"
Copy link
Contributor

Choose a reason for hiding this comment

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

is this #include needed?

assert(lumifile.good());
const Run2Lumi lumi_per_run(lumibyrunfile, firstrun, lastrun, 1000);

std::map<TString, Int_t> comparison_map;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think C++ native types are generally preferred to ROOT types, but perhaps it's not mandatory here, as this is essentially a plotting macro.


// wheels/layers per tracker phase: <pahse,<sublevel,number of layers/wheels>>
const std::map<Int_t, std::map<Int_t, Int_t>> Phase_Subdetector_Layers_Map = {
{0, {{1, 3}, {2, 2}}}, {1, {{1, 4}, {2, 3}}}, {2, {{1, 4}, {2, 10}}}};
Copy link
Contributor

@mmusich mmusich Dec 16, 2022

Choose a reason for hiding this comment

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

there are twelve Disks in the phase-2 tracker and not 10.

image

also the access pattern of std::map of std::maps is not really user-friendly... perhaps this could be recast into a class with accessors

Copy link
Author

Choose a reason for hiding this comment

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

Thanks a lot @mmusich for the comments, and sorry for the delay (I was offline). I have implemented most of your comments, and my only minor follow up is on this one; I took the numbers from this table on the relevant package on CMSSW, maybe that is outdated then? In any case I trust your plot :)

Copy link
Contributor

Choose a reason for hiding this comment

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

I took the numbers from this table on the relevant package on CMSSW, maybe that is outdated then?

Indeed, it looks like it was not updated.

Copy link
Contributor

Choose a reason for hiding this comment

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

Anyway you don't have to trust me, construct a TrackerGeometry object and see it for yourself ;)
For reference, here's the output of this test in the same package you pointed out:

<library file="PixelTopologyMapTest.cc" name="PixelTopologyMapTest">
<use name="DataFormats/TrackerCommon"/>
<use name="Geometry/Records"/>
<flags EDM_PLUGIN="1"/>
</library>

https://cmssdt.cern.ch/SDT/cgi-bin/logreader/slc7_amd64_gcc11/CMSSW_13_0_X_2023-01-16-1100/unitTestLogs/Geometry/TrackerGeometryBuilder#/82020


Int_t sublevel_idx = *sublevel.Get();

Histos[sublevel_idx][0]->Fill(*dx.Get() * 10000);
Copy link
Contributor

Choose a reason for hiding this comment

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

could the 10000 repeated here and elsewhere be a named constants (I guess it's a cm -> µm conversion factor)

Double_t sigma = Histos[level.first][variable.first]->GetStdDev();

Graphs[level.first][variable.first][0]->AddPoint(run_number, mean);
if (fabs(mean) > Graphs[level.first][variable.first][0]->GetMaximum() && fabs(mean) > 0.) {
Copy link
Contributor

Choose a reason for hiding this comment

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

std::abs is preferred to fabs

@@ -22,10 +22,10 @@ namespace pt = boost::property_tree;

Run2Lumi::Run2Lumi(fs::path file, int first, int last, float convertUnit)
: firstRun(first), lastRun(last), convertUnit(convertUnit) {
cout << __func__ << endl;
//cout << __func__ << endl;
Copy link
Contributor

Choose a reason for hiding this comment

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

leaving a lot of commented code is not a good option. Either remove or add a verbose flag in order to activate the couts (by the way it's technically not thread-safe and in general MessageLogger is adivsed).

@ChrisMisan
Copy link
Contributor

@perezdanyer what is the status of this PR?

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40336/33751

  • This PR adds an extra 20KB to repository

Code check has found code style and quality issues which could be resolved by applying following patch(s)

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40336/33783

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

Pull request #40336 was updated. @malbouis, @yuanchao, @cmsbuild, @saumyaphor4252, @francescobrivio, @ChrisMisan, @tvami can you please check and sign again.

@mmusich
Copy link
Contributor

mmusich commented Jan 17, 2023

please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-9180bd/30046/summary.html
COMMIT: f6098af
CMSSW: CMSSW_13_0_X_2023-01-17-1100/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/40336/30046/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

There are some workflows for which there are errors in the baseline:
11634.15 step 3
The results for the comparisons for these workflows could be incomplete
This means most likely that the IB is having errors in the relvals.The error does NOT come from this pull request

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 49
  • DQMHistoTests: Total histograms compared: 3555538
  • DQMHistoTests: Total failures: 0
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3555516
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 48 files compared)
  • Checked 211 log files, 162 edm output root files, 49 DQM output files
  • TriggerResults: no differences found

@tvami
Copy link
Contributor

tvami commented Jan 18, 2023

+alca

@cmsbuild
Copy link
Contributor

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. @perrotta, @dpiparo, @rappoccio (and backports should be raised in the release meeting by the corresponding L2)

@perrotta
Copy link
Contributor

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants