-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
ECAL esConsumes migration of remaining file in RecoMET #35179
ECAL esConsumes migration of remaining file in RecoMET #35179
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35179/25112
|
A new Pull Request was created by @thomreis (Thomas Reis) for master. It involves the following packages:
@jpata, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@cmsbuild please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-c35874/18362/summary.html Comparison SummarySummary:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this. Some minor comments inline.
delete profFile; | ||
} | ||
} | ||
EcalDeadCellDeltaRFilter::~EcalDeadCellDeltaRFilter() {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be omitted by using the default destructor
EcalDeadCellDeltaRFilter::~EcalDeadCellDeltaRFilter() {} | |
EcalDeadCellDeltaRFilter::~EcalDeadCellDeltaRFilter() = default; |
#include "TH1.h" | ||
|
||
class EcalDeadCellDeltaRFilter : public edm::EDFilter { | ||
class EcalDeadCellDeltaRFilter : public edm::stream::EDFilter<> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you confirm that it was tested to be thread-safe now after these changes? I see some TH1F was removed, which indicates that beforehand it may not have been safe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The TH1F was removed because it was actually never filled. With it gone, I think making the filter a stream module is possible but it was not tested. The module does not seem to be used in any configuration at the moment.
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35179/25225
|
@cmsbuild please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-c35874/18554/summary.html Comparison SummarySummary:
|
+reconstruction
|
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. @perrotta, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
} | ||
|
||
void EcalDeadCellDeltaRFilter::envSet(const edm::EventSetup &iSetup) { | ||
if (debug_) | ||
std::cout << "***envSet***" << std::endl; | ||
|
||
iSetup.get<IdealGeometryRecord>().get(ttMap_); | ||
ttMap_ = &iSetup.getData(ecalTrigTowerConstituentsMapToken_); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why &iSetup
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ttMap_
used to be an ESHandle but I made it a const EcalTrigTowerConstituentsMap *ttMap_
.
+1 |
PR description:
The PR migrates the last ECAL related code in the RecoMET packages to esConsumes (#31061) and converts the EDFilter to a thread aware one.
PR validation:
Code compiles.