-
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
Fixed CMS deprectation warnings in RecoMuon/TrackingTools #38310
Fixed CMS deprectation warnings in RecoMuon/TrackingTools #38310
Conversation
please test |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-38310/30477
|
A new Pull Request was created by @Dr15Jones (Chris Jones) for master. It involves the following packages:
@jpata, @clacaputo, @slava77 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-e56de7/25399/summary.html Comparison SummarySummary:
|
@@ -95,11 +95,12 @@ class MuonErrorMatrixAdjuster : public edm::EDProducer { | |||
bool theRescale; | |||
|
|||
/// holds the error matrix parametrization | |||
edm::ParameterSet theMatrixProvider_pset; | |||
MuonErrorMatrix* theMatrixProvider; | |||
std::unique_ptr<MuonErrorMatrix> theMatrixProvider; | |||
|
|||
/// hold on to the magnetic field | |||
edm::ESHandle<MagneticField> theField; |
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.
Could this be const
?
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 class MuonErrorMatrix has no const
methods and therefore making it const
would not work:
https://github.com/cms-sw/cmssw/blob/master/RecoMuon/TrackingTools/interface/MuonErrorMatrix.h
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.
actually, I was referring to edm::ESHandle<MagneticField> theField
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.
Hi @Dr15Jones , actually I was referring to edm::ESHandle<MagneticField> theField
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 ESHandle is assigned to during data processing so can't be const. In addition, when set, the ESHandle internally only allows access to the const
methods of the MagneticField
.
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.
ah, thanks for the explanation
|
||
/// hold on to the magnetic field | ||
edm::ESHandle<MagneticField> theField; | ||
edm::ESGetToken<MagneticField, IdealMagneticFieldRecord> theFieldToken; |
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.
as above
|
||
/// hold on to the magnetic field | ||
edm::ESHandle<MagneticField> theField; | ||
edm::ESGetToken<MagneticField, IdealMagneticFieldRecord> theFieldToken; | ||
edm::ESGetToken<TrackerTopology, TrackerTopologyRcd> theHttopoToken; |
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.
As above
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.
done
- changed to thread-friendly module types - added esConsumes calls
2b3ca8f
to
0414bb9
Compare
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-38310/30561
|
Pull request #38310 was updated. @jpata, @cmsbuild, @clacaputo, @slava77 can you please check and sign again. |
please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-e56de7/25520/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) |
+1 |
PR description:
PR validation:
Code compiles without generating CMS deprecation warnings.