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

PPS transport update #36589

Merged
merged 9 commits into from Jan 4, 2022
Merged

PPS transport update #36589

merged 9 commits into from Jan 4, 2022

Conversation

civanch
Copy link
Contributor

@civanch civanch commented Dec 24, 2021

PR description:

This PR should fix #36544 - thread safety is PPS proton transport is provided,
all class members in the sub-library are now initialized to zero, LogVerbatim is used instead of LogInfo. Because PPS transport is disabled for the time being, no change in results are expected.

PR validation:

private

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36589/27555

  • This PR adds an extra 20KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @civanch (Vladimir Ivantchenko) for master.

It involves the following packages:

  • SimTransport/PPSProtonTransport (simulation)

@cmsbuild, @civanch, @mdhildreth can you please review it and eventually sign? Thanks.
@perrotta, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

@civanch
Copy link
Contributor Author

civanch commented Dec 24, 2021

please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-6314e0/21464/summary.html
COMMIT: d154254
CMSSW: CMSSW_12_3_X_2021-12-24-1100/slc7_amd64_gcc10
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/36589/21464/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: 10 differences found in the comparisons
  • DQMHistoTests: Total files compared: 43
  • DQMHistoTests: Total histograms compared: 3461692
  • DQMHistoTests: Total failures: 16
  • DQMHistoTests: Total nulls: 1
  • DQMHistoTests: Total successes: 3461653
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: -0.004 KiB( 42 files compared)
  • DQMHistoSizes: changed ( 312.0 ): -0.004 KiB MessageLogger/Warnings
  • Checked 181 log files, 42 edm output root files, 43 DQM output files
  • TriggerResults: no differences found

@civanch
Copy link
Contributor Author

civanch commented Dec 25, 2021

+1

this PR is a preparation to restore PPS simulation, itself should not affect any WF.

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

@perrotta
Copy link
Contributor

@civanch, how did you check that the issue #36544 gets fixed with this PR?
If so, couldn't we also re-enable PPS simulation here?

If any further change is needed in this PR (e.g. re-enabling PPS sim), could you please profit and fix the following (unrelated) issues pointed out by the static analyzer in two files already touched by this PR?

  • SimTransport/PPSProtonTransport/src/HectorTransport.cc
    • Please do not re-assign ZforPosition at L123
  • SimTransport/PPSProtonTransport/src/BaseProtonTransport.cc
    • Please remove definition (L30) and modification (L38-39) of the variable theta, which is used nowhere in the code

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 3, 2022

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36589/27618

ERROR: Build errors found during clang-tidy run.

--
SimTransport/PPSProtonTransport/src/OpticalFunctionsTransport.cc:192:57: error: 'fPPSRegionStart_45_' is a private member of 'BaseProtonTransport' [clang-diagnostic-error]
  b_y -= (abs(z_scoringPlane) - ((z_scoringPlane < 0) ? fPPSRegionStart_45_ : fPPSRegionStart_56_) * 1e3) * a_y;
                                                        ^
SimTransport/PPSProtonTransport/interface/BaseProtonTransport.h:82:10: note: declared private here
--
SimTransport/PPSProtonTransport/src/OpticalFunctionsTransport.cc:192:79: error: 'fPPSRegionStart_56_' is a private member of 'BaseProtonTransport' [clang-diagnostic-error]
  b_y -= (abs(z_scoringPlane) - ((z_scoringPlane < 0) ? fPPSRegionStart_45_ : fPPSRegionStart_56_) * 1e3) * a_y;
                                                                              ^
SimTransport/PPSProtonTransport/interface/BaseProtonTransport.h:83:10: note: declared private here
--
SimTransport/PPSProtonTransport/interface/BaseProtonTransport.h:36:3: error: C++ requires a type specifier for all declarations [clang-diagnostic-error]
  setBeamFileNames(const std::string& nam1, const std::string& nam2) {
  ^
SimTransport/PPSProtonTransport/interface/BaseProtonTransport.h:41:3: error: C++ requires a type specifier for all declarations [clang-diagnostic-error]
  setBeamParameters(double stx, double sty, double sx, double sy, double se) {
  ^
SimTransport/PPSProtonTransport/interface/BaseProtonTransport.h:49:3: error: C++ requires a type specifier for all declarations [clang-diagnostic-error]
  setCrossingAngles(double cx45, double cx56, double cy45, double cy56) {
  ^
Suppressed 1578 warnings (1577 in non-user code, 1 with check filters).
--
gmake: *** [config/SCRAM/GMake/Makefile.coderules:129: code-checks] Error 2
gmake: *** [There are compilation/build errors. Please see the detail log above.] Error 2

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 3, 2022

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36589/27622

  • This PR adds an extra 32KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 3, 2022

Pull request #36589 was updated. @cmsbuild, @civanch, @mdhildreth can you please check and sign again.

@civanch
Copy link
Contributor Author

civanch commented Jan 3, 2022

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 3, 2022

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-6314e0/21521/summary.html
COMMIT: d0f9ffe
CMSSW: CMSSW_12_3_X_2022-01-03-1100/slc7_amd64_gcc10
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/36589/21521/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: 1 differences found in the comparisons
  • DQMHistoTests: Total files compared: 43
  • DQMHistoTests: Total histograms compared: 3461692
  • DQMHistoTests: Total failures: 0
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3461670
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 42 files compared)
  • Checked 181 log files, 42 edm output root files, 43 DQM output files
  • TriggerResults: no differences found

@civanch
Copy link
Contributor Author

civanch commented Jan 4, 2022

+1

concerns to initialization are addressed without modifications of python files.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 4, 2022

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

@perrotta
Copy link
Contributor

perrotta commented Jan 4, 2022

+1

  • The code would require further optimizations and rationalization (e.g non optimal usage of the class members in the base and derived classes, as pointed out in the comments in thread): I expect that @cms-sw/ctpps-dpg-l2 and/or @cms-sw/proton-pog-l2 will take care of in their forthcoming cleanings

@cmsbuild cmsbuild merged commit 1bfe19e into cms-sw:master Jan 4, 2022
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.

Thread-safety issue in TotemTransport
4 participants