cmssw icon indicating copy to clipboard operation
cmssw copied to clipboard

adds Heavy Ion initialization to Pythia

Open michael-pitt opened this issue 6 months ago • 11 comments

PR description:

This PR allows initiating the Pythia event generator with ions. The fragment should contain:

generator = cms.EDFilter("Pythia8ConcurrentGeneratorFilter",
   ...
   HeavyIonInitialState = cms.PSet(),
   ...
)

and the user can set up Beams:idA and Beams:idB manually.

PR validation:

Validated with CMSSW_15_0_X

michael-pitt avatar Jun 25 '25 18:06 michael-pitt

cms-bot internal usage

cmsbuild avatar Jun 25 '25 18:06 cmsbuild

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-48414/45314

  • There are other open Pull requests which might conflict with changes you have proposed:
    • File GeneratorInterface/Pythia8Interface/plugins/Pythia8Hadronizer.cc modified in PR(s): #46725, #48383

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

  • code-format: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-48414/45314/code-format.patch e.g. curl -k https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-48414/45314/code-format.patch | patch -p1 You can also run scram build code-format to apply code format directly

cmsbuild avatar Jun 25 '25 18:06 cmsbuild

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-48414/45317

  • There are other open Pull requests which might conflict with changes you have proposed:
    • File GeneratorInterface/Pythia8Interface/plugins/Pythia8Hadronizer.cc modified in PR(s): #46725, #48383

cmsbuild avatar Jun 26 '25 01:06 cmsbuild

A new Pull Request was created by @michael-pitt for master.

It involves the following packages:

  • GeneratorInterface/Pythia8Interface (generators)

@bbilin, @cmsbuild, @lviliani, @menglu21, @mkirsano can you please review it and eventually sign? Thanks. @alberto-sanchez, @mkirsano this is something you requested to watch as well. @antoniovilela, @mandrenguyen, @rappoccio, @sextonkennedy you are the release manager for this.

cms-bot commands are listed here

cmsbuild avatar Jun 26 '25 01:06 cmsbuild

@michael-pitt : It looks like there are some changes done in the master branch PR that are not related to the backport PR https://github.com/cms-sw/cmssw/pull/48412. Maybe some unwanted changes were dragged when you moved from 15_0_X to master branch?

stahlleiton avatar Jun 26 '25 09:06 stahlleiton

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-48414/45327

  • There are other open Pull requests which might conflict with changes you have proposed:
    • File GeneratorInterface/Pythia8Interface/plugins/Pythia8Hadronizer.cc modified in PR(s): #46725, #48383

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

  • code-format: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-48414/45327/code-format.patch e.g. curl -k https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-48414/45327/code-format.patch | patch -p1 You can also run scram build code-format to apply code format directly

cmsbuild avatar Jun 26 '25 13:06 cmsbuild

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-48414/45329

  • There are other open Pull requests which might conflict with changes you have proposed:
    • File GeneratorInterface/Pythia8Interface/plugins/Pythia8Hadronizer.cc modified in PR(s): #46725, #48383

cmsbuild avatar Jun 26 '25 14:06 cmsbuild

Pull request #48414 was updated. @bbilin, @cmsbuild, @lviliani, @menglu21, @mkirsano can you please check and sign again.

cmsbuild avatar Jun 26 '25 14:06 cmsbuild

@stahlleiton I ran code-format suggested by the bot, and it modify the file content. I just restored to the master version, and the bot starts to complain again. I've restored the previous commit. (strangely in 15_0_X cmsbuild bot is happy)

michael-pitt avatar Jun 26 '25 14:06 michael-pitt

please test although no changes to regular workflows expected.

mandrenguyen avatar Jun 26 '25 15:06 mandrenguyen

+1

Size: This PR adds an extra 16KB to repository Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-3f1042/46937/summary.html COMMIT: 5f124f5f45cf26290fa6d03ee24a05c4bc0f9dde CMSSW: CMSSW_15_1_X_2025-06-26-1100/el8_amd64_gcc12 User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/48414/46937/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially added 1 lines to the logs
  • Reco comparison results: 10 differences found in the comparisons
  • DQMHistoTests: Total files compared: 50
  • DQMHistoTests: Total histograms compared: 4065619
  • DQMHistoTests: Total failures: 101
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 4065498
  • DQMHistoTests: Total skipped: 20
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 49 files compared)
  • Checked 215 log files, 184 edm output root files, 50 DQM output files
  • TriggerResults: no differences found

cmsbuild avatar Jun 26 '25 19:06 cmsbuild

@cms-sw/generators-l2 this looks pretty straightforward. Can you sign please?

mandrenguyen avatar Jun 30 '25 12:06 mandrenguyen

+1

lviliani avatar Jul 03 '25 08:07 lviliani

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

cmsbuild avatar Jul 03 '25 08:07 cmsbuild

+1

mandrenguyen avatar Jul 04 '25 07:07 mandrenguyen