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
Low energy GFlash-like parameterization #28437
Conversation
The code-checks are being triggered in jenkins. |
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-28437/12848
Code check has found code style and quality issues which could be resolved by applying following patch(s)
|
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-28437/12856
|
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. cms-bot commands are listed here |
@dmitrySorokin , it would be good to update this PR:
|
@@ -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), |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
may be
const G4ThreeVector&
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, thanks
The code-checks are being triggered in jenkins. |
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-28437/12863
|
Pull request #28437 was updated. @cmsbuild, @civanch, @mdhildreth can you please check and sign again. |
please test |
The tests are being triggered in jenkins. |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
+1 |
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) |
I agree, that this development should go to SimG4Core/Application. |
@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. |
+1 |
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