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

Duplication of clusterizers for bricked pixels #35519

Closed
jpata opened this issue Oct 4, 2021 · 26 comments · Fixed by #38529
Closed

Duplication of clusterizers for bricked pixels #35519

jpata opened this issue Oct 4, 2021 · 26 comments · Fixed by #38529

Comments

@jpata
Copy link
Contributor

jpata commented Oct 4, 2021

The following files were duplicated with minor modifications in #35441.

  • RecoLocalTracker/SiPixelClusterizer
    • plugins/PixelThresholdClusterizer.h -> plugins/PixelThresholdClusterizerForBricked.h
    • plugins/PixelThresholdClusterizer.cc -> pluginsPixelThresholdClusterizerForBricked.cc
  • RecoLocalTracker/SiPixelRecHits
    • interface/PixelCPEGeneric.h -> interface/PixelCPEGenericForBricked.h
    • src/PixelCPEGeneric.cc -> src/PixelCPEGenericForBricked.cc

Per the comments #35441 (comment), the duplication should be reviewed as soon as the studies with bricked pixels are done, and subsequently removed from the codebase (or otherwise rewritten to avoid duplication).

@jpata
Copy link
Contributor Author

jpata commented Oct 4, 2021

assign reconstruction

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 4, 2021

New categories assigned: reconstruction

@slava77,@jpata you have been requested to review this Pull request/Issue and eventually sign? Thanks

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 4, 2021

A new Issue was created by @jpata Joosep Pata.

@Dr15Jones, @perrotta, @dpiparo, @makortel, @smuzaffar, @qliphy can you please review it and eventually sign/assign? Thanks.

cms-bot commands are listed here

@jpata
Copy link
Contributor Author

jpata commented Dec 6, 2021

@franzglessgen can you let us know if there's any update on this? Are the studies concluded?

@franzglessgen
Copy link

Hi ! I do not think the studies are over yet, @emiglior might be more up to date about the latest development.

@emiglior
Copy link
Contributor

emiglior commented Dec 9, 2021

Studies on Tracker geometries featuring bricked pixels are not done yet (ETA: end of January 2022)

@jpata
Copy link
Contributor Author

jpata commented Feb 9, 2022

a kind ping on this issue.

@jpata
Copy link
Contributor Author

jpata commented Mar 10, 2022

@franzglessgen @emiglior a kind ping on this issue

@emiglior
Copy link
Contributor

Hi Josep, indeed the bricked pixel option is currently disfavored. We will have the final decision (and therefore the clean up of the code) in 1 month.

@franzglessgen

@jpata
Copy link
Contributor Author

jpata commented May 5, 2022

type trk

@jpata
Copy link
Contributor Author

jpata commented May 5, 2022

@emiglior @franzglessgen kind ping on this.

@cmsbuild cmsbuild added the trk label May 5, 2022
@jpata
Copy link
Contributor Author

jpata commented May 12, 2022

@emiglior @franzglessgen any news?

@mmusich
Copy link
Contributor

mmusich commented May 24, 2022

The last bricked pixel geometry in cmssw is removed at #38061.
I guess that after that is merged support for a special local reco could be dropped afterwards, thus addressing this issue.

@emiglior
Copy link
Contributor

Indeed the plan is to drop the special local reco for bricked pixels

The question is if removing the classes below is enough
RecoLocalTracker/SiPixelClusterizer
plugins/PixelThresholdClusterizerForBricked.h
pluginsPixelThresholdClusterizerForBricked.cc
RecoLocalTracker/SiPixelRecHits
interface/PixelCPEGenericForBricked.h
src/PixelCPEGenericForBricked.cc

or if you want to revert changes in the base classes as well

Few examples:

@franzglessgen

@mmusich
Copy link
Contributor

mmusich commented May 25, 2022

@jpata @cms-sw/reconstruction-l2

can you give your opinion on #35519 (comment)

@jpata
Copy link
Contributor Author

jpata commented May 25, 2022

The changes introduced in #35441 that only support the bricked pixels and won't be tested/used/supported in the future should be removed.

Changes that were introduced in that PR that generally support code reuse in pixel local reco could stay.

@franzglessgen
Copy link

@emiglior I can remove those classes. Did I understand correctly that this should wait until this PR is merged ? Let me know when I can go ahead with the removal.
@jpata so the additional functions that were implemented within already existing classes can stay right ?

@jpata
Copy link
Contributor Author

jpata commented May 26, 2022

so the additional functions that were implemented within already existing classes can stay right ?

I would say so, but I don't have an overview in front of me now, so you can exercise some judgement. My main point was that code that becomes unused and thus untested should be removed. Thanks for taking care of this!

@emiglior
Copy link
Contributor

@franzglessgen yes, you have to wait that PR#38061 is merged

@mmusich
Copy link
Contributor

mmusich commented Jun 27, 2022

now that #38061 is merged, can we remove the duplicated code?

@franzglessgen
Copy link

Thanks for the notification, I am going on holiday this week so I'll start to clean up the code mid July if that's okay.

@tvami
Copy link
Contributor

tvami commented Jun 28, 2022

@franzglessgen please note #38529

@franzglessgen
Copy link

Oh it has been done already, thanks for the info!

@jpata
Copy link
Contributor Author

jpata commented Jun 30, 2022

@cmsbuild
Copy link
Contributor

This issue is fully signed and ready to be closed.

@franzglessgen
Copy link

franzglessgen commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants