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

Dark Bremsstrahlung backport to 10_6_X #38901

Merged
merged 6 commits into from
Aug 4, 2022

Conversation

revering
Copy link

@revering revering commented Jul 29, 2022

Backport of implementation of Dark Bremsstrahlung physics process from #38329 to CMSSW_10_6_X for run II MC generation.

CustomPhysics.cc in 10_6_30_patch1 is different from original CMSSW_12_5_X base, but git cms-rebase-topic successfully reapplied the necessary additions for the Dark Brem sim without including other changes. Needed to resolve a merge conflict in CustomPhysics/BuildFile.xml caused by differences in the spacing between <use name> and the ordering of includes between 10_6_X and 12_5_X. Used the 12_5_X spacing and order, should have no effect (as far as I'm aware).

Generated a small test sample with Dark Brem enabled, and the process biases the cross section and produces Dark photons as expected.

Michael Revering and others added 3 commits July 29, 2022 14:31
@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 29, 2022

A new Pull Request was created by @revering for CMSSW_10_6_X.

It involves the following packages:

  • SimG4Core/CustomPhysics (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 30, 2022

please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ccad8b/26540/summary.html
COMMIT: ef78fef
CMSSW: CMSSW_10_6_X_2022-07-24-0000/slc7_amd64_gcc700
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/38901/26540/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: 2 differences found in the comparisons
  • DQMHistoTests: Total files compared: 35
  • DQMHistoTests: Total histograms compared: 3215686
  • DQMHistoTests: Total failures: 2
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3215350
  • DQMHistoTests: Total skipped: 334
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 34 files compared)
  • Checked 143 log files, 29 edm output root files, 35 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 CMSSW_10_6_X IBs (tests are also fine) and once validation in the development release cycle CMSSW_12_5_X is complete. 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)

@civanch
Copy link
Contributor

civanch commented Jul 30, 2022

@revering , please add in the beginning of the title of this PR: [10_6_X]

for (G4int i = 0; i < nElements; i++) {
cross += theAtomNumDensityVector[i] *
ComputeCrossSectionPerAtom(
particle, kineticEnergy, (*theElementVector)[i]->GetZ(), (*theElementVector)[i]->GetA(), cut);
Copy link
Contributor

Choose a reason for hiding this comment

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

@revering , better now than never. (*theElementVector)[i]->GetA() returns molar mass of the atom (see https://geant4.kek.jp/lxr/source/materials/include/G4Element.hh). You need to change to
(*theElementVector)[i]->GetN(). The same patch should be added in 12_4 and 12_5.

{
//Deactivate the process after one dark brem. Needs to be reactivated in the end of event action. If this is in the stepping action instead, more than one brem can occur within each step.
G4bool state = false;
G4String pname = "muDBrem";
Copy link
Contributor

Choose a reason for hiding this comment

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

@revering , it is a minor thing but better use G4 mass (avoiding problems in corner cases):

double muMass = dp->GetDefinition()->GetPDGMass(); // this is exact muon mass in internal units (MeV)

@civanch
Copy link
Contributor

civanch commented Jul 30, 2022

@revering , I put two comments to the model. Better to implement this just now and forward port in new PRs to 12_4 and 12_5.

@qliphy
Copy link
Contributor

qliphy commented Jul 31, 2022

backport of #38329 and #38862

@qliphy
Copy link
Contributor

qliphy commented Aug 2, 2022

@revering Please note there is a comment raised in master PR: #38329 (comment)

@qliphy
Copy link
Contributor

qliphy commented Aug 3, 2022

#38949 needs to be backported here also. @revering

Michael Revering added 3 commits August 3, 2022 15:03
…le definition instead of hardcoded value

and use GetN instead of GetA to get target nucleon number.

Implement code-format fix for G4muDarkBremsstrahlungModel

Change G4muDarkBremsstrahlungModel to use Geant4 muon mass for
muon_mass_mev as well as GeV muon mass.
@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 3, 2022

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

@qliphy
Copy link
Contributor

qliphy commented Aug 4, 2022

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 4, 2022

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ccad8b/26633/summary.html
COMMIT: b97a5e7
CMSSW: CMSSW_10_6_X_2022-07-31-0000/slc7_amd64_gcc700
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/38901/26633/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: 4 differences found in the comparisons
  • DQMHistoTests: Total files compared: 35
  • DQMHistoTests: Total histograms compared: 3215686
  • DQMHistoTests: Total failures: 2
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3215350
  • DQMHistoTests: Total skipped: 334
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 34 files compared)
  • Checked 143 log files, 29 edm output root files, 35 DQM output files
  • TriggerResults: no differences found

@civanch
Copy link
Contributor

civanch commented Aug 4, 2022

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 4, 2022

This pull request is fully signed and it will be integrated in one of the next CMSSW_10_6_X IBs (tests are also fine) and once validation in the development release cycle CMSSW_12_5_X is complete. 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)

@qliphy
Copy link
Contributor

qliphy commented Aug 4, 2022

+1

@cmsbuild cmsbuild merged commit 5629172 into cms-sw:CMSSW_10_6_X Aug 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.

6 participants