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

Change all calls to TrackExtra::add to TrackExtra::setHits #7246

Merged
merged 1 commit into from
Jan 19, 2015

Conversation

Dr15Jones
Copy link
Contributor

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.

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.
@cmsbuild
Copy link
Contributor

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
DataFormats/TrackReco
FastSimulation/Tracking
RecoEgamma/EgammaPhotonProducers
RecoHI/HiTracking
RecoMuon/L3MuonProducer
RecoMuon/TrackingTools
RecoPixelVertexing/PixelLowPtUtilities
RecoPixelVertexing/PixelTrackFitting
RecoTracker/FinalTrackSelectors
RecoTracker/TrackProducer
SimMuon/MCTruth

@civanch, @nclopezo, @lveldere, @cvuosalo, @mdhildreth, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks.
@ghellwig, @rappoccio, @abbiendi, @Martin-Grunewald, @lgray, @venturia, @battibass, @makortel, @dgulhan, @cerati, @trocino, @rociovilar, @Sam-Harper, @GiacomoSguazzoni, @rovere, @VinInn, @bellan, @richard-cms, @echapon, @mandrenguyen, @jazzitup, @appeltel, @ahinzmann, @yenjie, @kurtejung, @gpetruc, @matt-komm, @yetkinyilmaz, @bachtis this is something you requested to watch as well.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.
If you are a L2 or a release manager you can ask for tests by saying 'please test' in the first line of a comment.

@slava77
Copy link
Contributor

slava77 commented Jan 16, 2015

@cmsbuild please test

@cmsbuild
Copy link
Contributor

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@civanch
Copy link
Contributor

civanch commented Jan 17, 2015

+1

@slava77
Copy link
Contributor

slava77 commented Jan 19, 2015

+1

for #7246 6ef647f
tested also with longer tests in CMSSW_7_4_0_pre3 /test area sign489/, no changes, as in jenkins

@cmsbuild
Copy link
Contributor

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.

cmsbuild added a commit that referenced this pull request Jan 19, 2015
Change all calls to TrackExtra::add to TrackExtra::setHits
@cmsbuild cmsbuild merged commit 5ef3fe7 into cms-sw:CMSSW_7_4_X Jan 19, 2015
@Dr15Jones Dr15Jones deleted the removeTrackExtra_add branch January 23, 2015 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants