-
Notifications
You must be signed in to change notification settings - Fork 126
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
AnaToolHandle in ElectronEfficiencyCorrector and MuonEfficiencyCorrector? #1330
Comments
This was reverted in the past since the AnaToolHandles were not mature enough. They are now. But they won't fix memory leaks -- they simply remove the need for extra |
Hi Giordon, Thanks for the response. I thought the leaks were due to xAH's handling of these tools because of feedback I got from the CP groups -- see for example https://its.cern.ch/jira/browse/ATLASMCP-83 -- but you're saying that's not the case. I don't have enough experience reading valgrind logs to argue in either direction myself. |
Again, in cases when there's a new (and no delete) -- it's a memory leak because it's not going to get deleted. In cases when there's a new and a delete -- there's no memory leak from xAH. So if you find parts of the code that have a new, but no delete -- they'll need to get fixed. |
Hi Giordon -- ok I see what you're saying now, of course. I'll add |
@lschaefer, any "leaks" in |
Hi Tadej, you're right, but these particular leaks are easy enough to fix. Thanks for the advice! |
There are a lot of reports in valgrind from the ElectronEfficiencyCorrector and MuonEfficiencyCorrector algorithms, because of the
new
CP tools that aren't deleted anywhere. It was recommended that we switch to asg::AnaToolHandle but this didn't work in the past (a0ae289) I'm wondering if the issues back then are still relevant, or should we try again? Looking for inspiration in SUSYTools, it does look like some extra work is needed for the electron efficiencies (https://gitlab.cern.ch/atlas/athena/blob/master/PhysicsAnalysis/SUSYPhys/SUSYTools/Root/SUSYToolsInit.cxx#L667).(Adding
delete
s in the finalize() method for all the tools doesn't remove all the valgrind reports.)Best,
Leigh
The text was updated successfully, but these errors were encountered: