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

Add esConsumes for code using TransientTrack::setES #34584

Merged
merged 5 commits into from
Jul 27, 2021

Conversation

Dr15Jones
Copy link
Contributor

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.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34584/24135

  • This PR adds an extra 36KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @Dr15Jones (Chris Jones) for master.

It involves the following packages:

  • Alignment/ReferenceTrajectories (alca)
  • CommonTools/RecoUtils (analysis)
  • RecoTracker/TrackProducer (reconstruction)
  • TrackingTools/TransientTrack (reconstruction)

@perrotta, @malbouis, @yuanchao, @tlampen, @cmsbuild, @slava77, @jpata, @pohsun, @francescobrivio, @santocch, @tvami can you please review it and eventually sign? Thanks.
@felicepantaleo, @abbiendi, @tlampen, @mmusich, @cericeci, @makortel, @JanFSchulte, @jhgoh, @sscruz, @trocino, @GiacomoSguazzoni, @rovere, @VinInn, @bellan, @tocheng, @ebrondol, @mtosi, @dgulhan, @HuguesBrun, @adewit, @Fedespring, @calderona, @lecriste, @gpetruc this is something you requested to watch as well.
@silviodonato, @dpiparo, @qliphy, @perrotta you are the release manager for this.

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);
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@Dr15Jones
Copy link
Contributor Author

Please test

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34584/24145

  • This PR adds an extra 48KB to repository

@cmsbuild
Copy link
Contributor

Pull request #34584 was updated. @perrotta, @malbouis, @yuanchao, @tlampen, @cmsbuild, @slava77, @jpata, @pohsun, @francescobrivio, @santocch, @tvami can you please check and sign again.

@Dr15Jones
Copy link
Contributor Author

please test

@Dr15Jones
Copy link
Contributor Author

Please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-8e89c0/17157/summary.html
COMMIT: 586f21e
CMSSW: CMSSW_12_0_X_2021-07-23-1100/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/34584/17157/install.sh to create a dev area with all the needed externals and cmssw changes.

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 Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 9 differences found in the comparisons
  • DQMHistoTests: Total files compared: 39
  • DQMHistoTests: Total histograms compared: 2998564
  • DQMHistoTests: Total failures: 18
  • DQMHistoTests: Total nulls: 1
  • DQMHistoTests: Total successes: 2998523
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.004 KiB( 38 files compared)
  • DQMHistoSizes: changed ( 312.0 ): 0.004 KiB MessageLogger/Warnings
  • Checked 165 log files, 37 edm output root files, 39 DQM output files
  • TriggerResults: no differences found

@yuanchao
Copy link
Contributor

+1

  • migrated MagneticField and GlobalTrackingGeometry access in PFCand_AssoMap to esConsumes
  • code refactored for future migration (deprecated codes still in other parts than PFCand_AssoMap)
  • matrix tests and unit tests passed.

@jpata
Copy link
Contributor

jpata commented Jul 27, 2021

+reconstruction

  • technical, no reco changes expected/observed

@qliphy
Copy link
Contributor

qliphy commented Jul 27, 2021

+1

@qliphy
Copy link
Contributor

qliphy commented Jul 27, 2021

merge

@santocch
Copy link

+1

@cmsbuild
Copy link
Contributor

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.

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

Successfully merging this pull request may close these issues.

8 participants