-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Slight refactoring of PFEGammaAlgo #27045
Conversation
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-27045/10126
|
A new Pull Request was created by @guitargeek (Jonas Rembser) for master. It involves the following packages: RecoParticleFlow/PFProducer @perrotta, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
The tests are being triggered in jenkins. |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
_splayedblock.clear(); | ||
_refinableObjects.clear(); | ||
refinableObjects.clear(); |
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.
This clearing is not needed any more, being refinableObjects
now a local variable which was just defined here
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.
True! Thanks for reviewing
|
||
private: | ||
|
||
void setPFEGParameters(PFEGammaAlgo::PFEGConfigInfo&); |
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.
You removed the impementation of this function, no need to define it
The code-checks are being triggered in jenkins. |
Hi, I followed your two suggestions and made a little additional change that makes sense to me: I took the primaryVertex out of the |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-27045/10299
|
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) |
+1 |
PR description:
While other PRs are working on PFAlgo, I still have some suggestions for PFEGammaAlgo. In this PR I propose to:
const
reference to the employed GBRForests as a member so one does not have to pass them as a function argument with the rather obscure namehoc
(for "HeavyObjectCache"). Havingconst
members is ok after all, I only have it with the mutable members.operator()
instead of retrieving all the results that are saved as mutable members of the algo via getter functionsPFEGammaAlgo has now only half as many mutable members as before, so we are on a good track towards a nice thread safe algo there I think!
PR validation:
CMSSW compiles and local matrix tests pass.
if this PR is a backport please specify the original PR:
No backport intended.