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 in TrackerTopology migration of TrackingTruthAccumulator #7445

Merged

Conversation

makortel
Copy link
Contributor

This PR adds the missing check for newDetector.detId() == DetId::Tracker before calling TrackerTopology::layer(). I took the liberty to restructure slitghly the surround code (do the check once instead of "essentially three times").

Tested on top of 740pre5. PR #7335+this shows no differences wrt. 740pre5 (also in the "Tracking Particle Matched Hits" plot).

The rather simple fix escalated a bit to an attempt to make the code
more clear.
@cmsbuild
Copy link
Contributor

A new Pull Request was created by @makortel (Matti Kortelainen) for CMSSW_7_4_X.

Fix in TrackerTopology migration of TrackingTruthAccumulator

It involves the following packages:

SimGeneral/TrackingAnalysis

@cmsbuild, @civanch, @nclopezo, @mdhildreth can you please review it and eventually sign? Thanks.
@battibass, @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.

@venturia
Copy link
Contributor

@makortel, is this a fix which could/should be applied also to SLHC release cycle? If it is expected to have an impact it is better to check.

@makortel
Copy link
Contributor Author

@venturia, I don't see any problem in applying the fix also to SLHC branch. AFAICT the bug only affects TrackingParticle::numberOfTrackerLayers(), so anything calling it is affected. To give some impression what code this is, git grep in 620_SLHC23p1 shows that this function is used in a result-changing way in the following files

CommonTools/RecoAlgos/interface/CosmicTrackingParticleSelector.h
SimGeneral/TrackingAnalysis/interface/TrackingParticleSelector.h
SimTracker/TrackHistory/src/TrackClassifier.cc
SimTracker/TrackHistory/src/VertexClassifier.cc
Validation/RecoHI/plugins/HitPixelLayersTPSelector.h
Validation/TrackingMCTruth/plugins/TrackingTruthValid.cc

(possibly, I didn't look any further than the output of git grep).

Maybe I should just make a PR to SLHC too (but after this one is accepted, unless there are other constraints on the schedule)?

@ghost
Copy link

ghost commented Jan 29, 2015

@cmsbuild please test

@cmsbuild
Copy link
Contributor

The tests are being triggered in jenkins.

@venturia
Copy link
Contributor

Thanks @makortel . In the meantime I would check with the stakeholders, @boudoul and kevin stenson, if this bug can have any impact on the Tracker phase 2 results for the TP

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@civanch
Copy link
Contributor

civanch commented Jan 30, 2015

+1

@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 30, 2015
Fix in TrackerTopology migration of TrackingTruthAccumulator
@cmsbuild cmsbuild merged commit bdae90c into cms-sw:CMSSW_7_4_X Jan 30, 2015
@makortel makortel deleted the phase1_fwd_TrackerTopology_fix branch October 20, 2016 11:36
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.

None yet

4 participants