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

Remove check on TrackingParticle::numberOfHits()==0 from QuickTrackAssociatorByHits #17338

Merged

Conversation

makortel
Copy link
Contributor

@makortel makortel commented Jan 31, 2017

Currently QuickTrackAssociatorByHits ignores TrackingParticles with numberOHits()==0 from track-TrackingParticle association. While this seems like a nice performance optimization, it does cause some track-TrackingParticle pairs to not be associated because of how the numberOfHits() is calculated in TrackingTruthAccumulator:

  1. only SimHits with the same particleType as the SimTrack's pdgId and the same particleType and processType as the "first hit" are counted
  2. the definition of "first hit" is not robust (or very counter-intuitive if that is the intention; I'll give more details in another PR fixing that issue improving the situation, the PR is Fix calculation of TrackingParticle::numberOfHits() #17382).

Because of 1, I propose to include also TrackingParticles with numberOfHits()==0 in the track-TrackingParticle association, because the association is (effectively) done with all SimHits of a TrackingParticle (via the Pixel/StripDigiSimLinks).

"Accidentally", this PR also fixes the problem caused of 2.

Here are MTV plots in CMSSW_9_0_X_2017-01-23-1100 for ttbar+35PU for phase0, phase1, and phase1 with CA seeding, and CMSSW_9_0_0_pre2 for phase2 (D4) ttbar+PU200
https://mkortela.web.cern.ch/mkortela/tracking/validation/CMSSW_9_0_X_phase2debug/
and here for phase2 (D4) ttbar noPU in CMSSW_9_0_X_2017-01-23-1100 (thanks to @ebrondol)
http://ebrondol.web.cern.ch/ebrondol/Phase2Tracking/fixFakes/20170125_TTbar/

The effect on efficiency in phase0, phase1, phase2 PU200 is tiny; phase2 noPU shows few percent increase in |eta| 2-3. The effect on fake rate in phase0, phase1, phase2 PU200 is a 1-2 % overall decrease (can be more in specific phase space regions); phase2 noPU shows ~40 % overall decrease.

Tested in CMSSW_9_0_X_2017-01-23-1100 and CMSSW_9_0_0_pre2, expecting changes like above in the track-TrackingParticle association (no change expected e.g. on RECO itself).

@VinInn @rovere @ebrondol @slava77

…yHits

In TrackingTruthAccumulator, the numberOfHits is calculated from a
subset of the SimHits of the SimTracks of a TrackingParticle
(essentially limiting the processType and particleType to those of the
"first" hit, and particleType to the pdgId of the SimTrack). But, here
the association between tracks and TrackingParticles is done with
*all* the hits of TrackingParticle, so we should not rely on the
numberOfHits() calculated with a subset of SimHits.
@cmsbuild
Copy link
Contributor

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

It involves the following packages:

SimTracker/TrackAssociatorProducers
Validation/RecoTrack

@civanch, @mdhildreth, @dmitrijus, @cmsbuild, @vanbesien, @davidlange6 can you please review it and eventually sign? Thanks.
@felicepantaleo, @sdevissc, @GiacomoSguazzoni, @rovere, @VinInn, @wmtford, @mtosi, @threus, @dgulhan this is something you requested to watch as well.
@davidlange6, @smuzaffar you are the release manager for this.

cms-bot commands are listed here #13028

@makortel
Copy link
Contributor Author

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 31, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/17536/console Started: 2017/01/31 17:39

@makortel
Copy link
Contributor Author

@dmitrijus
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-17338/17536/summary.html

@slava77 comparisons for the following workflows were not done due to missing matrix map:

  • 10824.0_TTbar_13+TTbar_13TeV_TuneCUETP8M1_2018Design_GenSimFull+DigiFull_2018Design+RecoFull_2018Design+HARVESTFull_2018Design
  • 20034.0_TTbar_14TeV+TTbar_14TeV_TuneCUETP8M1_2023D7_GenSimHLBeamSpotFull14+DigiFullTrigger_2023D7+RecoFullGlobal_2023D7+HARVESTFullGlobal_2023D7
  • 21234.0_TTbar_14TeV+TTbar_14TeV_TuneCUETP8M1_2023D4_GenSimHLBeamSpotFull14+DigiFullTrigger_2023D4+RecoFullGlobal_2023D4+HARVESTFullGlobal_2023D4
  • 23234.0_TTbar_14TeV+TTbar_14TeV_TuneCUETP8M1_2023D8_GenSimHLBeamSpotFull14+DigiFullTrigger_2023D8+RecoFullGlobal_2023D8+HARVESTFullGlobal_2023D8

@civanch
Copy link
Contributor

civanch commented Jan 31, 2017

+1

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_9_0_X IBs (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @smuzaffar

@davidlange6
Copy link
Contributor

+1

@makortel
Copy link
Contributor Author

makortel commented Feb 2, 2017

The "another PR" mentioned in the PR description is #17382.

@makortel makortel deleted the quickTrackAssocRemoveNumberOfHits branch February 12, 2018 12:55
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

5 participants