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

Introduce option to use G4TransportationWithMsc #38879

Merged
merged 1 commit into from Jul 31, 2022
Merged

Introduce option to use G4TransportationWithMsc #38879

merged 1 commit into from Jul 31, 2022

Conversation

hahnjo
Copy link
Contributor

@hahnjo hahnjo commented Jul 28, 2022

PR description:

This PR introduces the option to use the new G4TransportationWithMsc process, available since Geant4 11.1-beta. It combines G4Transportation and multiple scattering, which allows to move directly from one discrete interaction point to the next, with all intermediate steps due to MSC combined into one G4Step.

PR validation:

The default is not changed in this PR, simulation results should be identical. Adding process.g4SimHits.G4Commands = ['/process/em/transportationWithMsc MultipleSteps'] enables the new process with small performance improvements, results to be validated.

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-38879/31307

  • 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)

This process combines G4Transportation and multiple scattering, which
allows to move directly from one discrete interaction point to the
next, with all intermediate steps due to MSC combined into one G4Step.
@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-38879/31309

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @hahnjo (Jonas Hahnfeld) for master.

It involves the following packages:

  • SimG4Core/PhysicsLists (simulation)

@cmsbuild, @civanch, @mdhildreth can you please review it and eventually sign? Thanks.
@makortel, @bsunanda, @rovere, @fabiocos, @slomeo this is something you requested to watch as well.
@perrotta, @dpiparo, @qliphy, @rappoccio you are the release manager for this.

cms-bot commands are listed here

@civanch
Copy link
Contributor

civanch commented Jul 28, 2022

please test

@civanch
Copy link
Contributor

civanch commented Jul 28, 2022

@hahnjo , this is a good PR, because may be applied both for master and Geant4 branches.

@cmsbuild
Copy link
Contributor

-1

Failed Tests: RelVals-INPUT
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-eb066b/26504/summary.html
COMMIT: 4208c8c
CMSSW: CMSSW_12_5_X_2022-07-28-1100/el8_amd64_gcc10
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/38879/26504/install.sh to create a dev area with all the needed externals and cmssw changes.

RelVals-INPUT

  • 1319.01319.0_SingleGammaPt35_UP15+SingleGammaPt35_UP15INPUT+DIGIUP15+RECOUP15+HARVESTUP15/step2_SingleGammaPt35_UP15+SingleGammaPt35_UP15INPUT+DIGIUP15+RECOUP15+HARVESTUP15.log

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 8 differences found in the comparisons
  • DQMHistoTests: Total files compared: 51
  • DQMHistoTests: Total histograms compared: 3668050
  • DQMHistoTests: Total failures: 7
  • DQMHistoTests: Total nulls: 1
  • DQMHistoTests: Total successes: 3668020
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: -0.004 KiB( 50 files compared)
  • DQMHistoSizes: changed ( 312.0 ): -0.004 KiB MessageLogger/Warnings
  • Checked 210 log files, 47 edm output root files, 51 DQM output files
  • TriggerResults: no differences found

@civanch
Copy link
Contributor

civanch commented Jul 29, 2022

please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-eb066b/26528/summary.html
COMMIT: 4208c8c
CMSSW: CMSSW_12_5_X_2022-07-29-1100/el8_amd64_gcc10
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/38879/26528/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: 51
  • DQMHistoTests: Total histograms compared: 3668050
  • DQMHistoTests: Total failures: 14
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3668014
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 50 files compared)
  • Checked 210 log files, 47 edm output root files, 51 DQM output files
  • TriggerResults: no differences found

@civanch
Copy link
Contributor

civanch commented Jul 30, 2022

+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 will now be reviewed by the release team before it's merged. @perrotta, @dpiparo, @qliphy, @rappoccio (and backports should be raised in the release meeting by the corresponding L2)

@perrotta
Copy link
Contributor

@hahnjo @civanch the static analyzer does not complain, but I wander if all those undeleted new really do not create memory losses in the code. Did you check it?

@civanch
Copy link
Contributor

civanch commented Jul 30, 2022

@perrotta , in Geant4 main physics objects use register mechanism, this means that processes, models, and cross sections are deleted automatically end of job. This is needed because some these objects are shared between particles/models.

@qliphy
Copy link
Contributor

qliphy commented Jul 31, 2022

+1

@cmsbuild cmsbuild merged commit 0dd62d1 into cms-sw:master Jul 31, 2022
@hahnjo hahnjo deleted the transportation-with-msc branch August 1, 2022 06:35
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