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

Cleanup of Cellular Automaton seeding code #20177

Merged
merged 6 commits into from Aug 31, 2017
Merged

Conversation

makortel
Copy link
Contributor

This PR cleans up unused pieces of the CA hit triplet/quadruplet finding code (the duplication of code between triplet and quadruplet is still left there as we'll try to unify them to a more generic ntuplet finder). Essentially this means the support towards the "old seeding framework", simplifying the code to serve a clearer basis for further development.

Tested in 9_3_0_pre3, no changes expected.

@rovere @VinInn @felicepantaleo @JanFSchulte @ebrondol

This means also removal of support for old-style seeding framework,
but I'm not sure that interface would have worked anyway nowadays
because of earlier changes.
@cmsbuild
Copy link
Contributor

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

It involves the following packages:

RecoPixelVertexing/PixelTriplets

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

cms-bot commands are listed here

@makortel
Copy link
Contributor Author

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 15, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/22317/console Started: 2017/08/15 16:54

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/PR-20177/133

Code check has found code style and quality issues which could be resolved by applying a patch in https://cmssdt.cern.ch/SDT/code-checks/PR-20177/133/git-diff.patch
e.g. curl https://cmssdt.cern.ch/SDT/code-checks/PR-20177/133/git-diff.patch | patch -p1

In future, you can run scram build code-checks to apply code checks

@makortel
Copy link
Contributor Author

What is the logic to select the files to be given to the code style checker?

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@rovere
Copy link
Contributor

rovere commented Aug 15, 2017 via email

@cmsbuild
Copy link
Contributor

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

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 26
  • DQMHistoTests: Total histograms compared: 2718193
  • DQMHistoTests: Total failures: 286
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2717718
  • DQMHistoTests: Total skipped: 189
  • DQMHistoTests: Total Missing objects: 0
  • Checked 107 log files, 14 edm output root files, 26 DQM output files

@makortel
Copy link
Contributor Author

Maybe the files modified by the PR?

I think I got the logic now. I got confused because the suggested patch
https://cmssdt.cern.ch/SDT/code-checks/PR-20177/133/git-diff.patch
touches mostly files I did not edit (except CAHitNtupletEDProducerT.cc), but of course if I touch a .cc file, the checker also checks all the included headers.

What I don't understand though is how PixelQuadrupletMergerEDProducer.cc and QuadrupletSeedMerger.cc ended up in the list of selected files
https://cmssdt.cern.ch/SDT/code-checks/PR-20177/133/changed-files-selected.log
(or that's what I assume that this is the list of files to be checked by clang-tidy).

CAHitQuadrupletGenerator(const edm::ParameterSet& cfg, edm::ConsumesCollector&& iC, bool needSeedingLayerSetsHits=true): CAHitQuadrupletGenerator(cfg, iC, needSeedingLayerSetsHits) {}
CAHitQuadrupletGenerator(const edm::ParameterSet& cfg, edm::ConsumesCollector& iC, bool needSeedingLayerSetsHits=true);
CAHitQuadrupletGenerator(const edm::ParameterSet& cfg, edm::ConsumesCollector&& iC): CAHitQuadrupletGenerator(cfg, iC) {}
CAHitQuadrupletGenerator(const edm::ParameterSet& cfg, edm::ConsumesCollector& iC);

virtual ~CAHitQuadrupletGenerator();
Copy link
Contributor

Choose a reason for hiding this comment

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

is virtual still needed here?

Copy link
Contributor

Choose a reason for hiding this comment

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

I suppose is in https://cmssdt.cern.ch/SDT/code-checks/PR-20177/133/git-diff.patch
that in my understanding has not been applied yet...

Copy link
Contributor

Choose a reason for hiding this comment

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

To be more clear: CAHitQuadrupletGenerator does not derive from anything anymore and there is no derived class from it either. Why do we need a virtual destructor in this case?

CAHitTripletGenerator(const edm::ParameterSet& cfg, edm::ConsumesCollector&& iC, bool needSeedingLayerSetsHits=true): CAHitTripletGenerator(cfg, iC, needSeedingLayerSetsHits) {}
CAHitTripletGenerator(const edm::ParameterSet& cfg, edm::ConsumesCollector& iC, bool needSeedingLayerSetsHits=true);
CAHitTripletGenerator(const edm::ParameterSet& cfg, edm::ConsumesCollector&& iC): CAHitTripletGenerator(cfg, iC) {}
CAHitTripletGenerator(const edm::ParameterSet& cfg, edm::ConsumesCollector& iC);

virtual ~CAHitTripletGenerator();
Copy link
Contributor

Choose a reason for hiding this comment

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

is virtual still needed?

@makortel
Copy link
Contributor Author

makortel commented Aug 21, 2017 via email

@@ -54,18 +54,11 @@ caPhiCut(cfg.getParameter<double>("CAPhiCut")),
caHardPtCut(cfg.getParameter<double>("CAHardPtCut")),
caOnlyOneLastHitPerLayerFilter(cfg.getParameter<bool>("CAOnlyOneLastHitPerLayerFilter"))
Copy link
Contributor

Choose a reason for hiding this comment

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

hi @makortel , could you also get rid of the caOnlyOneLastHitPerLayerFilter variable in this PR?

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

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

@makortel
Copy link
Contributor Author

@cmsbuild, please test

  • removed virtual from CAHit*Generator destructors (suggested by @slava77)
  • removed CAOnlyOneLastHitPerLayerFilter parameter (suggested by @felicepantaleo)
  • applied code check patch
  • removed obsolete python configuration files

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 28, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/22518/console Started: 2017/08/28 12:57

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/PR-20177/341

@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-20177/22518/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 26
  • DQMHistoTests: Total histograms compared: 2653934
  • DQMHistoTests: Total failures: 203
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2653542
  • DQMHistoTests: Total skipped: 189
  • DQMHistoTests: Total Missing objects: 0
  • Checked 107 log files, 14 edm output root files, 26 DQM output files

@slava77
Copy link
Contributor

slava77 commented Aug 30, 2017

+1

for #20177 2be23e0

  • cleanup of obsolete CA code; clang tidy
  • jenkins tests pass and comparisons show no differences

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

@davidlange6
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 94fab3e into cms-sw:master Aug 31, 2017
@makortel makortel deleted the cleanupCA branch February 12, 2018 13:03
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

8 participants