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

Low energy GFlash-like parameterization #28437

Merged

Conversation

dmitrySorokin
Copy link
Contributor

@dmitrySorokin dmitrySorokin commented Nov 20, 2019

PR description:
Implement GFlash-like parameterization for low energy electrons in PbWO4.
This is meant to be used for EcalRegion. This model is disabled by default and controlled by LowEnergyGflashEcal flag.

PR validation:
https://indico.cern.ch/event/861790/contributions/3630534/attachments/1941836/3220043/fast_sim.pdf

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-28437/12848

  • This PR adds an extra 24KB to repository

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

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-28437/12856

  • This PR adds an extra 24KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @dmitrySorokin for master.

It involves the following packages:

SimG4Core/Application

@cmsbuild, @civanch, @mdhildreth can you please review it and eventually sign? Thanks.
@makortel this is something you requested to watch as well.
@davidlange6, @slava77, @fabiocos you are the release manager for this.

cms-bot commands are listed here

@civanch
Copy link
Contributor

civanch commented Nov 21, 2019

@dmitrySorokin , it would be good to update this PR:

  1. move two new classes to SimG4Core/GFlash
  2. fitted parameters values can be defined as named constexp
  3. extend a bit description - say that by default simulation results are not affected

@@ -148,6 +148,9 @@
EMPhysics = cms.untracked.bool(True),
HadPhysics = cms.untracked.bool(True),
FlagBERT = cms.untracked.bool(False),
LowEnergyGflashEcal = cms.bool(False),
LowEnergyGflashEcalEmin = cms.double(0),
Copy link
Contributor

Choose a reason for hiding this comment

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

@dmitrySorokin , can Emin be non zero?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. One can apply this parametrization in any range.
Like in GFlash it works from 50 GeV to 10 GeV.

fastStep.SetTotalEnergyDeposited(fastTrack.GetPrimaryTrack()->GetKineticEnergy());

const G4double energy = fastTrack.GetPrimaryTrack()->GetKineticEnergy();
const G4ThreeVector pos = fastTrack.GetPrimaryTrack()->GetPosition();
Copy link
Contributor

Choose a reason for hiding this comment

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

may be
const G4ThreeVector&

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, sure


G4double inPointEnergy = param.GetInPointEnergyFraction(energy) * energy;

const auto momDir = fastTrack.GetPrimaryTrack()->GetMomentumDirection();
Copy link
Contributor

Choose a reason for hiding this comment

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

here const G4ThreeVector& seems to be better

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, thanks

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-28437/12863

  • This PR adds an extra 36KB to repository

@cmsbuild
Copy link
Contributor

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

@civanch
Copy link
Contributor

civanch commented Nov 21, 2019

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 21, 2019

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/3574/console Started: 2019/11/21 13:10

@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-63f9e9/3574/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 34
  • DQMHistoTests: Total histograms compared: 2936360
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2936018
  • DQMHistoTests: Total skipped: 341
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 33 files compared)
  • Checked 147 log files, 16 edm output root files, 34 DQM output files

@civanch
Copy link
Contributor

civanch commented Nov 21, 2019

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

@civanch
Copy link
Contributor

civanch commented Nov 21, 2019

I agree, that this development should go to SimG4Core/Application.

@fabiocos
Copy link
Contributor

@civanch this development is switched off by default, so merging it is safe. The validation linked to the description is useful to understand the detailed response to the algorithm, anyway I think that a check on full physics events is needed.

@fabiocos
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit cc99f0b into cms-sw:master Nov 23, 2019
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

4 participants