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

Fix some obscure code in TrackingTruthAccumulator (still functionally identical) #7318

Merged
merged 1 commit into from
Jan 23, 2015

Conversation

mark-grimes
Copy link

This should be functionally identical to the original, just makes the code clearer.

The TrackingVertex constructor takes an EncodedEventId. Previously this section of code passed an EncodedTruthId which is a derived class, but with an additional parameter used as an object index. In this code the object index is given a dummy value, which anyway is inaccessible when the class is resolved to the EncodedEventId base class passed to the constructor. So I just removed the dummy value and passed the EncodedEventId directly which should make the intention of the code clearer. Also removed the comment that shows uncertainty about what the dummy parameter should be.

I wrote this section of code originally but I can't remember why an EncodedTruthId was ever used.

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @mark-grimes (Mark Grimes) for CMSSW_7_4_X.

Fix some obscure code in TrackingTruthAccumulator (still functionally identical)

It involves the following packages:

SimGeneral/TrackingAnalysis

@cmsbuild, @civanch, @nclopezo, @mdhildreth can you please review it and eventually sign? Thanks.
@battibass, @makortel, @abbiendi, @GiacomoSguazzoni, @rovere, @VinInn, @appeltel, @cerati, @trocino, @dgulhan 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.

@civanch
Copy link
Contributor

civanch commented Jan 23, 2015

+1

@ghost
Copy link

ghost commented Jan 23, 2015

@cmsbuild please test

@cmsbuild
Copy link
Contributor

The tests are being triggered 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 or unless it breaks tests.

@cmsbuild
Copy link
Contributor

@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 23, 2015
Fix some obscure code in TrackingTruthAccumulator (still functionally identical)
@cmsbuild cmsbuild merged commit 30b4f22 into cms-sw:CMSSW_7_4_X Jan 23, 2015
@mark-grimes mark-grimes deleted the fixTrackingTruthAccumlator branch January 23, 2015 10:31
@cmsbuild
Copy link
Contributor

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.

3 participants