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 bug in candidate seeded mode of AreaSeededTrackingRegionsBuilder #22310

Merged
merged 1 commit into from Feb 27, 2018

Conversation

JanFSchulte
Copy link
Contributor

@JanFSchulte JanFSchulte commented Feb 22, 2018

This PR fixes a bug in the candidate seeded option. I noticed that when the number of candidates is zero, the current implementation falls back to running the recovery in the full pixel volume, which is of course not desired. This PR fixes this with a proper check if the candidate seeded option is on.

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @JanFSchulte (Jan-Frederik Schulte) for master.

It involves the following packages:

RecoTracker/TkTrackingRegions

@perrotta, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks.
@ghellwig, @makortel, @felicepantaleo, @GiacomoSguazzoni, @rovere, @VinInn, @mschrode, @gpetruc, @ebrondol, @dgulhan this is something you requested to watch as well.
@davidlange6, @slava77, @fabiocos you are the release manager for this.

cms-bot commands are listed here

@makortel
Copy link
Contributor

If it is only about using reco::Track instread of reco::Candidate (I didn't look closely all changes), there is ChargedCandidateProducer https://github.com/cms-sw/cmssw/blob/master/CommonTools/RecoAlgos/plugins/ChargedCandidateProducer.cc which produces reco::RecoChargedCandidate

class RecoChargedCandidate : public RecoCandidate {

from reco::Tracks. Maybe it would be easier to use than copy-pasting code around?

@JanFSchulte
Copy link
Contributor Author

@makortel Oh, that looks useful indeed and I will use it to simplify the PR

@makortel
Copy link
Contributor

There is also ConcreteChargedCandidateProducer that apparently is already used in HLT (but I'm not too familiar with their differences).

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

1 similar comment
@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Pull request #22310 was updated. @perrotta, @cmsbuild, @slava77 can you please check and sign again.

@JanFSchulte
Copy link
Contributor Author

@makortel 99% of the PR were indeed not needed. What remains is the bug that the full pixel volume is used if the number of candidates is zero in candidate seeded mode, which still needs to be fix.

@JanFSchulte JanFSchulte changed the title Update AreaSeededTrackingRegionsBuilder to allow seeding around reco::tracks Fix bug in candidate seeded mode of AreaSeededTrackingRegionsBuilder Feb 22, 2018
@makortel
Copy link
Contributor

@JanFSchulte If it is not too much of a trouble, could you squash your 3 commits to 1? I think in this case the commit history simplification would be well justified.

@JanFSchulte
Copy link
Contributor Author

@makortel Is there fancy git magic for this, or do I just create a new PR with a single commit? (which is no problem)

@makortel
Copy link
Contributor

See e.g. http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html and then force-push the same branch.

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@JanFSchulte
Copy link
Contributor Author

Neat. Thanks for the instructions.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Pull request #22310 was updated. @perrotta, @cmsbuild, @slava77 can you please check and sign again.

@makortel
Copy link
Contributor

@cmsbuild, please test

Thanks Jan.

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 22, 2018

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/26248/console Started: 2018/02/22 22:03

@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-22310/26248/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 2 differences found in the comparisons
  • DQMHistoTests: Total files compared: 28
  • DQMHistoTests: Total histograms compared: 2498056
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2497879
  • DQMHistoTests: Total skipped: 176
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 1.03000000001 KiB( 23 files compared)
  • Checked 115 log files, 9 edm output root files, 28 DQM output files

@perrotta
Copy link
Contributor

@JanFSchulte : (just to know it) what is it supposed to happen when the number of candidates is zero and the method returns a nullptr?

@JanFSchulte
Copy link
Contributor Author

@perrotta
Copy link
Contributor

+1

  • The code acts as planned and fixes the candidate Seeded option for automated doublet recovery (not used in offline reco, but proposed for HLT tracking) when there are zero candidates

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @davidlange6, @slava77, @smuzaffar, @fabiocos (and backports should be raised in the release meeting by the corresponding L2)

@fabiocos
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 0fe3814 into cms-sw:master Feb 27, 2018
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