Skip to content
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

PATPackedCandidateProducer makes copies during sort #21787

Closed
Dr15Jones opened this issue Dec 24, 2017 · 5 comments
Closed

PATPackedCandidateProducer makes copies during sort #21787

Dr15Jones opened this issue Dec 24, 2017 · 5 comments

Comments

@Dr15Jones
Copy link
Contributor

The function used to sort PatCandidates copies the objects in its function arguments:https://github.com/cms-sw/cmssw/blob/master/PhysicsTools/PatAlgos/plugins/PATPackedCandidateProducer.cc#L44

In addition, this is a member function that requires no access to member data so should be marked as static. That is also true for the sort_indexes function.

The proper function signature should be

 static bool candsOrdering(pat::PackedCandidate const& i,pat::PackedCandidate const& j);
@cmsbuild
Copy link
Contributor

A new Issue was created by @Dr15Jones Chris Jones.

@davidlange6, @Dr15Jones, @smuzaffar, @fabiocos can you please review it and eventually sign/assign? Thanks.

cms-bot commands are listed here

@Dr15Jones
Copy link
Contributor Author

assign reconstruction, analysis

@cmsbuild
Copy link
Contributor

New categories assigned: analysis,reconstruction

@slava77,@perrotta,@monttj you have been requested to review this Pull request/Issue and eventually sign? Thanks

@perrotta
Copy link
Contributor

@smuzaffar
Copy link
Contributor

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants