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

Return HitRZCompatibility and TrackingRegion by unique_ptr in TrackingRegion #28704

Merged
merged 1 commit into from Jan 7, 2020

Conversation

makortel
Copy link
Contributor

@makortel makortel commented Jan 2, 2020

PR description:

Returning by unique_ptr makes the ownership clear, guarantees deletion, and silences static analyzer warnings.

PR validation:

Code compiles.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 2, 2020

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 2, 2020

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-28704/13285

  • This PR adds an extra 32KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 2, 2020

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

It involves the following packages:

RecoTracker/ConversionSeedGenerators
RecoTracker/SpecialSeedGenerators
RecoTracker/TkHitPairs
RecoTracker/TkTrackingRegions

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

cms-bot commands are listed here

@makortel
Copy link
Contributor Author

makortel commented Jan 2, 2020

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 2, 2020

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/4130/console Started: 2020/01/02 23:08

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 2, 2020

+1
Tested at: 702cace
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-95c5f9/4130/summary.html
CMSSW: CMSSW_11_1_X_2020-01-02-1100
SCRAM_ARCH: slc7_amd64_gcc820

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 2, 2020

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 3, 2020

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

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 34
  • DQMHistoTests: Total histograms compared: 2815513
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2815166
  • DQMHistoTests: Total skipped: 346
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 33 files compared)
  • Checked 147 log files, 16 edm output root files, 34 DQM output files

@perrotta
Copy link
Contributor

perrotta commented Jan 3, 2020

+1

  • Technical
  • Jenkins tests pass

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 3, 2020

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, @silviodonato (and backports should be raised in the release meeting by the corresponding L2)

return nullptr;
}

CosmicTrackingRegion* clone() const override { return new CosmicTrackingRegion(*this); }
std::unique_ptr<TrackingRegion> clone() const override { return std::make_unique<CosmicTrackingRegion>(*this); }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you replacing CosmicTrackingRegion into TrackingRegion on purpose?

Copy link
Contributor Author

@makortel makortel Jan 7, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, covariant return types work only with raw pointers, not with smart pointers. And nothing seemed to make use of the covariant return types.


GlobalTrackingRegion* clone() const override { return new GlobalTrackingRegion(*this); }
std::unique_ptr<TrackingRegion> clone() const override { return std::make_unique<GlobalTrackingRegion>(*this); }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

similarly here

return checkRZOld(layer, outerHit, iSetup, outerlayer);
}

RectangularEtaPhiTrackingRegion* clone() const override { return new RectangularEtaPhiTrackingRegion(*this); }
std::unique_ptr<TrackingRegion> clone() const override {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and here

@silviodonato
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit f4d9936 into cms-sw:master Jan 7, 2020
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