-
Notifications
You must be signed in to change notification settings - Fork 29
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
treewide: use PODIO ObjectID instead SimID/RecID indices #1346
Conversation
Capybara summary for PR 1346 |
If this is just a purge of using SimID and RecID then looks good. Otherwise it might be a good idea to remove all calls to What is the argument against comparing the objects as opposed to using |
Note, this is already removing calls to
Not really an argument. I'm just having hard time convincing myself that pointer comparison will always do what we want. You think it's fine? |
The use as
I just thought it would look cleaner, keeping |
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.
MatchClusters wouldn't be a simple change so happy within the PR scope
### Briefly, what does this PR introduce? This is a subset of #970, that removes use of SimID and RecID fields (while switching to comparisons of full object id's instead of just the indices). In principle, we could even drop `.getObjectID()` in comparisons and just use `Object::operator==` https://github.com/AIDASoft/podio/blob/400f4f06bef3e7666c71e31be579ec715c412b8a/python/templates/macros/implementations.jinja2#L160, which relies on pointer comparison instead. ### What kind of change does this PR introduce? - [ ] Bug fix (issue #__) - [ ] New feature (issue #__) - [ ] Documentation update - [ ] Other: __ ### Please check if this PR fulfills the following: - [ ] Tests for the changes have been added - [ ] Documentation has been added / updated - [ ] Changes have been communicated to collaborators ### Does this PR introduce breaking changes? What changes might users need to make to their code? No ### Does this PR change default behavior? No
Briefly, what does this PR introduce?
This is a subset of #970, that removes use of SimID and RecID fields (while switching to comparisons of full object id's instead of just the indices).
In principle, we could even drop
.getObjectID()
in comparisons and just useObject::operator==
https://github.com/AIDASoft/podio/blob/400f4f06bef3e7666c71e31be579ec715c412b8a/python/templates/macros/implementations.jinja2#L160, which relies on pointer comparison instead.What kind of change does this PR introduce?
Please check if this PR fulfills the following:
Does this PR introduce breaking changes? What changes might users need to make to their code?
No
Does this PR change default behavior?
No