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
Removing GEDGsfElectronProducer - No inheriting electron producers anymore #29303
Removing GEDGsfElectronProducer - No inheriting electron producers anymore #29303
Conversation
The code-checks are being triggered in jenkins. |
Forgot to squash the commits |
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-29303/14376
|
A new Pull Request was created by @guitargeek (Jonas Rembser) for master. It involves the following packages: Calibration/EcalAlCaRecoProducers @perrotta, @slava77, @christopheralanwest, @tocheng, @cmsbuild, @tlampen, @pohsun can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@cmsbuild please test |
The tests are being triggered in jenkins. |
+1 |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
+1 |
The tests are being triggered in jenkins. |
+1 |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
do you have comments @pohsun @tlampen @tocheng @christopheralanwest? |
I updated the description according to the review. |
ping |
Hi @silviodonato, is it possible to merge this? The changes in |
+1 |
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. @silviodonato, @dpiparo (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
After a few previous PRs in the EgammaElectronProducers package, this is the PR that removes the last electron producer that derives from the
GsfElectronBaseProducer
class.In in past, there were 4 producers which derived from
GsfElectronBaseProducer
(check for example 10_2_X):GEDGsfElectronProducer
GsfElectronProducer
GsfElectronEcalDrivenProducer
LowPtGsfElectronProducer
Number 3 and 4 were so similar to the base class that their functionality got moved into the base class so they could be removed. Number 2 was not used since Run 1 and got removed in #28429. Number 1, the
GEDGsfElectronProducer
, undergoes a similar treatment than 3 and 4 in this PR: since it extends very little on the base class, the functionality just got moved into free functions that will be used by the base producer if a configuration flag is set. Furthermore, the oldGEDGsfElectronProducer
produced an additionalValueMap
product, and this PR factorizes this out into a newGEDGsfElectronValueMapProducer
, improving the modularity of the reconstruction.Now, inheritance is finally not used anymore as a method for configuration in the EgammaElectronProducers plugins, which makes the code easier to understand. That also allows to merge the
.h
and.cc
files of the former base producer.Edit: during the review it was decided to rename the surviving
GsfElectronBaseProducer
producer toGsfElectronProducer
because it is not intended to be used as a base class anymore.PR validation:
CMSSW compiles.
if this PR is a backport please specify the original PR and why you need to backport that PR:
No backport intended.