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

MiniAOD: PackedCandidate::setP4 preserve track kinematic #20574

Merged
merged 2 commits into from Sep 26, 2017

Conversation

arizzi
Copy link
Contributor

@arizzi arizzi commented Sep 19, 2017

update the delta pt,eta,phi when calling setP4 and setPz so that track momentum is unchanged as discussed in XPOG meeting on sept 4th.

Seems to do the right thing (similar unit test added)
root [0] pat::PackedCandidate a;
root [1] a.eta()
(double) 0.000000
root [2] a.etaAtVtx()
(float) 0.00000f
root [3] a.pt()
(double) 0.000000
root [7] a.ptTrk()
(double) 0.000000
root [8] a.setP4(reco::Candidate::PolarLorentzVector(10,2,3,5))
root [9] a.ptTrk()
(double) 0.000000
root [10] a.pt()
(double) 10.000000
root [11] a.eta()
(double) 1.999939
root [12] a.etaAtVtx()
(float) -0.00006f
root [13] a.setPz(10)
root [14] a.eta()
(double) 0.881314
root [15] a.etaAtVtx()
(float) -0.00003f

@arizzi
Copy link
Contributor Author

arizzi commented Sep 19, 2017

@gpetruc

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@arizzi arizzi changed the title MiniAOD: PackedCandidate::setP4 preveserve track kinematic MiniAOD: PackedCandidate::setP4 preserve track kinematic Sep 19, 2017
@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/PR-20574/803

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @arizzi for master.

It involves the following packages:

DataFormats/PatCandidates

@perrotta, @cmsbuild, @monttj, @slava77 can you please review it and eventually sign? Thanks.
@gpetruc, @gouskos, @rovere, @cbernet this is something you requested to watch as well.
@davidlange6, @slava77 you are the release manager for this.

cms-bot commands are listed here

@perrotta
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 19, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/23066/console Started: 2017/09/19 13:17

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-20574/23066/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 26
  • DQMHistoTests: Total histograms compared: 2649068
  • DQMHistoTests: Total failures: 226
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2648653
  • DQMHistoTests: Total skipped: 189
  • DQMHistoTests: Total Missing objects: 0
  • Checked 107 log files, 14 edm output root files, 26 DQM output files

@perrotta
Copy link
Contributor

@arizzi : is there any sample in which one can see the effect of this fix? Does it also apply to standard workflows or just to some analysis code?

@arizzi
Copy link
Contributor Author

arizzi commented Sep 26, 2017 via email

@perrotta
Copy link
Contributor

+1

  • As pointed out by the non-failure of the unit tests, this fix allows returning the expected track parameters even if puppi (or anyone else) modifies the candidate ones
  • Only analysis code: no difference expected in jenkins tests, none expected

@davidlange6
Copy link
Contributor

merge

@cmsbuild cmsbuild merged commit f45ea8c into cms-sw:master Sep 26, 2017
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.

None yet

4 participants