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

Protect against missing track info in MiniAOD #20741

Merged
merged 4 commits into from
Oct 12, 2017

Conversation

ahinzmann
Copy link
Contributor

When pileup jet ID is reran on top of an existing MiniAOD, it crashes due to missing tracking information.
The fix sets the corresponding variables to default values if no information is available.
The affected variables are not used in the default MVA training of pileup jet ID, thus have no effect on the observable used in analyses.
Backport to 93 for analyses: #20740

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 4, 2017

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 4, 2017

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/PR-20741/1141

Code check has found code style and quality issues which could be resolved by applying a patch in https://cmssdt.cern.ch/SDT/code-checks/PR-20741/1141/git-diff.patch
e.g. curl https://cmssdt.cern.ch/SDT/code-checks/PR-20741/1141/git-diff.patch | patch -p1

You can run scram build code-checks to apply code checks directly

@slava77
Copy link
Contributor

slava77 commented Oct 4, 2017

passing code-checks is required.
Please apply the patch

internalId_.d0_ = std::abs(pfTrk->dxy(vtx->position()));
internalId_.dZ_ = std::abs(pfTrk->dz(vtx->position()));
}
if(lPack!=nullptr) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you already have an isPacked bool variable that you can use without needing to check the existence of the pointer every time

@@ -393,10 +393,19 @@ PileupJetIdentifier PileupJetIdAlgo::computeIdVariables(const reco::Jet * jet, f
//To handle the electron case
if(lPF!=nullptr) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be considered with an "else if" after the block started at L399?
With the present logic, if (isPacked) the d0 and dz saved here will be rewritten anyhow

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 9, 2017

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 9, 2017

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/PR-20741/1303

Code check has found code style and quality issues which could be resolved by applying a patch in https://cmssdt.cern.ch/SDT/code-checks/PR-20741/1303/git-diff.patch
e.g. curl https://cmssdt.cern.ch/SDT/code-checks/PR-20741/1303/git-diff.patch | patch -p1

You can run scram build code-checks to apply code checks directly

@perrotta
Copy link
Contributor

perrotta commented Oct 9, 2017

@ahinzmann : you still need to apply the code-checks, as explained in #20741 (comment). Without them the tests cannot be launched in github.

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/PR-20741/1336

@perrotta
Copy link
Contributor

please test

@perrotta
Copy link
Contributor

Matrix error failure is unrelated, likely due to the merging of #20693

@perrotta
Copy link
Contributor

please test
(the latest IB, CMSSW_9_4_X_2017-10-11-2300, should finally contain the fix for the issue in the RelVal wf 1000)

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 12, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/23700/console Started: 2017/10/12 09:44

@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-20741/23700/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: 2767051
  • DQMHistoTests: Total failures: 110
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2766770
  • DQMHistoTests: Total skipped: 171
  • DQMHistoTests: Total Missing objects: 0
  • Checked 107 log files, 10 edm output root files, 26 DQM output files

@perrotta
Copy link
Contributor

+1

  • Protection added (implicitly, taking profit of Fix PackedCandidate::dz and PhotonIDValueMapProducer #20491 merged in 94X) for cases in which the tracks are not available
  • It only matters for pileup jet ID rerun on top of an existing MiniAOD: no changes expected for standard workflows
  • No effect on jenkins outputs, as expected

@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 now be reviewed by the release team before it's merged. @davidlange6, @slava77, @smuzaffar (and backports should be raised in the release meeting by the corresponding L2)

@davidlange6
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 25793ba into cms-sw:master Oct 12, 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.

6 participants