-
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
Add esConsumes for code using TransientTrack::setES #34584
Conversation
This is a stepping stone towards using esConsumes
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34584/24135
|
A new Pull Request was created by @Dr15Jones (Chris Jones) for master. It involves the following packages:
@perrotta, @malbouis, @yuanchao, @tlampen, @cmsbuild, @slava77, @jpata, @pohsun, @francescobrivio, @santocch, @tvami can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@@ -93,15 +93,18 @@ const TrajectoryFactoryBase::ReferenceTrajectoryCollection TwoBodyDecayTrajector | |||
edm::ESHandle<MagneticField> magneticField; | |||
setup.get<IdealMagneticFieldRecord>().get(magneticField); | |||
|
|||
edm::ESHandle<GlobalTrackingGeometry> trackingGeometry; | |||
setup.get<GlobalTrackingGeometryRecord>().get(trackingGeometry); |
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.
Isn't this syntax deprecated?
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.
Yes. However I decided I did not want to try modifying this code and all code that uses it to support esConsumes. The goal of this PR was really just to update PFCand_AssoMap
since it is used in the IBs. The change above will make it easier in the future to migrate this code to esConsumes.
Please test |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34584/24145
|
please test |
Please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-8e89c0/17157/summary.html CMS StaticAnalyzer warnings: There are 4 EventSetupRecord::get warnings. See https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-8e89c0/17157/llvm-analysis/esrget-sa.txt for details. Comparison SummarySummary:
|
+1
|
+reconstruction
|
+1 |
merge |
+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 be automatically merged. |
PR description:
-removed the function TransientTrack::setES
-replaced all calls to TransientTrack::setES with TransientTrack::setTrackingGeometry which leave the object in the same state
-call esConsumes for code that had easy access to that function and used TransientTrack::setES
PR validation:
Code compiles.