-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Use make_unique in tau modules #42447
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-42447/36456
|
A new Pull Request was created by @mbluj for master. It involves the following packages:
@cmsbuild, @mandrenguyen, @clacaputo can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
RecoTauTag/RecoTau/plugins/PFRecoTauChargedHadronFromPFCandidatePlugin.cc
Outdated
Show resolved
Hide resolved
…ection is empty, and other small improvements
Review comments partly addressed while waiting on core's suggestions about changes concerning the "by pointer vs by value" issue. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-42447/36463
|
Pull request #42447 was updated. @cmsbuild, @mandrenguyen, @clacaputo can you please check and sign again. |
It was agreed to prepare a followup PR to address the "by pointer vs by value" which requires extensive changes in tau modules. Could this PR be tested and then merged? (Note: I will be offline since next week until end of August, so it will be good to close it in this week). |
please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-3feabf/34286/summary.html Comparison SummarySummary:
|
+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. @perrotta, @dpiparo, @antoniovilela, @rappoccio (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
Technical PR which consistently introduces usage of
std::unique_ptr
in tau modules, namely:std::unique_ptr
in places overlooked in previous developments,std::unique_ptr
consequently initialized withstd::make_unique
rather than withnew
operator.In addition,
DeepTauId::produce
method is now explicitly ended when the processed tau collection is empty which prevents of handling other collections, building TF objects, etc. and hopefully will avoid throwing exceptions in events without taus (#40437, #42444).Those changes are not expected to modify outputs.
Will it be useful to backport this PR to 13_0/1/2?
PR validation:
Successfully tested with a custom tau@miniAOD workflow (10k events) and with
runTheMatrix.py -l limited -i all --ibeos