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

[93X] Streamline Alignment PV Validation tool #19839

Merged
merged 24 commits into from Aug 9, 2017

Conversation

mmusich
Copy link
Contributor

@mmusich mmusich commented Jul 20, 2017

Greetings,
this PR is meant to streamline and consolidate the PV tool:

  • possibly common methods are moved into an helper namespace;
  • make booking and filling of histograms uniform;
  • reduce duplications in the creation of the track variable bins (hardwiring all instances to a single std::map depending on the impact parameter type and track variables);
  • added profiles of the bias and resolution towards the BPix L1 ladder and module number (where useful in the startup pixel commissioning phase): this is supported also for the Phase-0 detector.
  • update the plotting macro according to the other changes.

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @mmusich (Marco Musich) for master.

It involves the following packages:

Alignment/OfflineValidation

@ghellwig, @arunhep, @cerminar, @cmsbuild, @franzoni, @davidlange6, @lpernie can you please review it and eventually sign? Thanks.
@mschrode, @ghellwig, @mmusich, @tocheng, @tlampen this is something you requested to watch as well.
@davidlange6 you are the release manager for this.

cms-bot commands are listed here

@davidlange6
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 20, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/21644/console Started: 2017/07/20 20:43

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-19839/21644/summary.html

Comparison Summary:

  • You potentially added 5 lines to the logs
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 23
  • DQMHistoTests: Total histograms compared: 2346597
  • DQMHistoTests: Total failures: 232
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2346199
  • DQMHistoTests: Total skipped: 166
  • DQMHistoTests: Total Missing objects: 0
  • Checked 93 log files, 14 edm output root files, 23 DQM output files

@franzoni
Copy link

+1

@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 requires discussion in the ORP meeting before it's merged. @davidlange6, @smuzaffar

@davidlange6
Copy link
Contributor

hi @mmusich - given the DQM dependency on Alignment/OfflineValidation, this package should not depend on rootgraphics. which code brings in this requirement?

@mmusich
Copy link
Contributor Author

mmusich commented Aug 1, 2017

Hi @davidlange6, moving the definition of some helper methods to Alignment/OfflineValidation/interface/PVValidationHelpers.h required rootgraphics in the BuildFile to be able to compile.

@davidlange6
Copy link
Contributor

there is nothing I see in PVValidationHelpers that needs root graphics. Can you be more specific? these should be part of rootcore.

#include "TMath.h"
#include "TH1.h"
#include "TF1.h"

@mmusich
Copy link
Contributor Author

mmusich commented Aug 1, 2017

@davidlange6 changingrootgraphics into rootcore I am getting:

tmp/slc6_amd64_gcc630/src/Alignment/OfflineValidation/src/AlignmentOfflineValidation/PVValidationHelpers.o: In function `PVValHelper::add(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, TH1*, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, TH1*> > >&, TH1*)':
PVValidationHelpers.cc:(.text+0x2f70): undefined reference to `TH1::StatOverflows(bool)'
tmp/slc6_amd64_gcc630/src/Alignment/OfflineValidation/src/AlignmentOfflineValidation/PVValidationHelpers.o: In function `PVValHelper::getMAD(TH1F*)':
PVValidationHelpers.cc:(.text+0x45a5): undefined reference to `TH1F::TH1F(char const*, char const*, int, double, double)'
tmp/slc6_amd64_gcc630/src/Alignment/OfflineValidation/src/AlignmentOfflineValidation/PVValidationHelpers.o: In function `PVValHelper::fitResiduals(TH1*)':
PVValidationHelpers.cc:(.text+0x47a7): undefined reference to `TF1::TF1(char const*, char const*, double, double, TF1::EAddToList)'
PVValidationHelpers.cc:(.text+0x47dc): undefined reference to `TFitResultPtr::~TFitResultPtr()'
PVValidationHelpers.cc:(.text+0x4800): undefined reference to `TFormula::GetParameter(int) const'
PVValidationHelpers.cc:(.text+0x4828): undefined reference to `TFormula::GetParameter(int) const'
PVValidationHelpers.cc:(.text+0x4850): undefined reference to `TF1::SetRange(double, double)'
PVValidationHelpers.cc:(.text+0x488a): undefined reference to `TFitResultPtr::~TFitResultPtr()'
PVValidationHelpers.cc:(.text+0x48ec): undefined reference to `TFormula::GetParameter(int) const'
PVValidationHelpers.cc:(.text+0x4914): undefined reference to `TFormula::GetParameter(int) const'
PVValidationHelpers.cc:(.text+0x492f): undefined reference to `TF1::GetParError(int) const'
PVValidationHelpers.cc:(.text+0x494a): undefined reference to `TF1::GetParError(int) const'
PVValidationHelpers.cc:(.text+0x4996): undefined reference to `TF1::~TF1()'
PVValidationHelpers.cc:(.text+0x4a8b): undefined reference to `TF1::~TF1()'
collect2: error: ld returned 1 exit status
config/SCRAM/GMake/Makefile.rules:2040: recipe for target 'tmp/slc6_amd64_gcc630/src/Alignment/OfflineValidation/src/AlignmentOfflineValidation/libAlignmentOfflineValidation.so' failed
gmake: *** [tmp/slc6_amd64_gcc630/src/Alignment/OfflineValidation/src/AlignmentOfflineValidation/libAlignmentOfflineValidation.so] Error 1
gmake: *** Waiting for unfinished jobs....
gmake: *** [There are compilation/build errors. Please see the detail log above.] Error 2

@davidlange6
Copy link
Contributor

davidlange6 commented Aug 1, 2017 via email

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 8, 2017

Pull request #19839 was updated. @ghellwig, @arunhep, @cerminar, @cmsbuild, @franzoni, @lpernie can you please check and sign again.

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 8, 2017

Pull request #19839 was updated. @ghellwig, @arunhep, @cerminar, @cmsbuild, @franzoni, @lpernie can you please check and sign again.

@mmusich
Copy link
Contributor Author

mmusich commented Aug 8, 2017

@davidlange6 @arunhep
sorry there was an issue in the unit tests due to the unprotected calculation of the median in case of empty histograms leading to the error in:

----- Begin Fatal Exception 08-Aug-2017 13:30:27 CEST-----------------------
An exception of category 'FatalRootError' occurred while
   [0] Calling endJob for module PrimaryVertexValidation/'PVValidation'
   Additional Info:
      [a] Fatal Root Error: @SUB=TH1F::ComputeIntegral
Integral = zero

----- End Fatal Exception -------------------------------------------------

now is fixed. I profited to add an additional commit that was left behind at the last push.
Now it's ready for tests. Thanks

@arunhep
Copy link
Contributor

arunhep commented Aug 8, 2017

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 8, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/22148/console Started: 2017/08/08 17:34

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 8, 2017

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 8, 2017

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-19839/22148/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 189 differences found in the comparisons
  • DQMHistoTests: Total files compared: 25
  • DQMHistoTests: Total histograms compared: 2646495
  • DQMHistoTests: Total failures: 1401
  • DQMHistoTests: Total nulls: 1
  • DQMHistoTests: Total successes: 2644912
  • DQMHistoTests: Total skipped: 181
  • DQMHistoTests: Total Missing objects: 0
  • Checked 102 log files, 14 edm output root files, 25 DQM output files

@arunhep
Copy link
Contributor

arunhep commented Aug 8, 2017

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 8, 2017

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

@davidlange6
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit b6fcc36 into cms-sw:master Aug 9, 2017
mmusich added a commit to mmusich/cmssw that referenced this pull request Sep 11, 2017
mmusich added a commit to mmusich/cmssw that referenced this pull request Oct 27, 2017
mmusich added a commit to mmusich/cmssw that referenced this pull request Oct 30, 2017
mmusich added a commit to mmusich/cmssw that referenced this pull request Nov 8, 2017
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

5 participants