-
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
Protect against missing track info in MiniAOD #20741
Conversation
The code-checks are being triggered in jenkins. |
-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 You can run |
passing code-checks is required. |
internalId_.d0_ = std::abs(pfTrk->dxy(vtx->position())); | ||
internalId_.dZ_ = std::abs(pfTrk->dz(vtx->position())); | ||
} | ||
if(lPack!=nullptr) { |
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.
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) { |
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.
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
The code-checks are being triggered in jenkins. |
-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 You can run |
@ahinzmann : you still need to apply the code-checks, as explained in #20741 (comment). Without them the tests cannot be launched in github. |
The code-checks are being triggered in jenkins. |
+code-checks |
please test |
Matrix error failure is unrelated, likely due to the merging of #20693 |
please test |
The tests are being triggered in jenkins. |
+1 The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic: |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
+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 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) |
+1 |
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