-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Change all calls to TrackExtra::add to TrackExtra::setHits #7246
Conversation
TrackExtra::add was removed from the TrackExtra api. Calls TrackExtra::add required to caller to pass edm::Ref's which come from sequential entries in the same container. The callers always created a temporary edm::Ref which was then discarded. The TrackExtra::setHits API better enforces the requirements by taking an edm:RefProd to the container and then a starting index and number of entries into that container for the hits. Not only is setHits safer than calling add it is also faster. TrackExtra::add had to go away anway because of work being done in the framework which will no longer allow an edm::RefProd to be constructed from an edm::Ref.
A new Pull Request was created by @Dr15Jones (Chris Jones) for CMSSW_7_4_X. Change all calls to TrackExtra::add to TrackExtra::setHits It involves the following packages: CommonTools/RecoAlgos @civanch, @nclopezo, @lveldere, @cvuosalo, @mdhildreth, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks. |
@cmsbuild please test |
The tests are being triggered in jenkins. |
+1 |
This pull request is fully signed and it will be integrated in one of the next CMSSW_7_4_X IBs unless changes (tests are also fine). This pull request will be automatically merged. |
Change all calls to TrackExtra::add to TrackExtra::setHits
TrackExtra::add was removed from the TrackExtra api.
Calls TrackExtra::add required to caller to pass edm::Ref's which
come from sequential entries in the same container. The callers always
created a temporary edm::Ref which was then discarded.
The TrackExtra::setHits API better enforces the requirements by taking
an edm:RefProd to the container and then a starting index and number of
entries into that container for the hits. Not only is setHits safer
than calling add it is also faster.
TrackExtra::add had to go away anway because of work being done in
the framework which will no longer allow an edm::RefProd to be constructed
from an edm::Ref.