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
[L1T][DQMOffline] Fixes for L1T jet DQMOffline #23269
Conversation
…f no matched L1 jet is found
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-23269/4762 |
A new Pull Request was created by @kreczko (Luke Kreczko) for master. It involves the following packages: DQMOffline/L1Trigger @cmsbuild, @vazzolini, @kmaeshima, @dmitrijus, @nsmith-, @rekovic, @jfernan2, @thomreis, @vanbesien can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
The tests are being triggered in jenkins. |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
double resolutionEta = std::abs(recoEta) > 0 ? (l1Eta - recoEta) / recoEta : outOfBounds; | ||
double resolutionPhi = std::abs(recoPhi) > 0 ? (l1Phi - recoPhi) / recoPhi : outOfBounds; | ||
double resolutionEta = l1Eta - recoEta; | ||
double resolutionPhi = l1Phi - recoPhi; |
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.
This delta needs to wrap around at pi. The delta cannot be larger than pi since then they are back to back.
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.
Will change to reco::deltaPhi(l1Phi, recoPhi)
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.
BTW: This will give you sensible values if no matched jet was found, shall I do
l1Phi < 9999 ? reco::deltaPhi(l1Phi, recoPhi) : 9999
instead?
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.
But then you would not fill the histogram if no match is found. So I guess it does not matter in the end. It would be cleaner though.
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, you are right. I will add outOfBounds
just in case someone in the future decides to still fill the plots ;). Otherwise it is an easy to overlook bug with reco::deltaPhi
.
if (!foundMatch){ | ||
return; | ||
} | ||
|
||
// eta | ||
fill2DWithinLimits(h_L1JetEtavsCaloJetEta_, recoEta, l1Eta); | ||
fillWithinLimits(h_resolutionJetEta_, resolutionEta); |
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.
The offline control plots could be filled even if there is no matching offline object found.
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.
Control plots as in h_controlPlots_
or also h_L1JetEtavsCaloJetEta_
, h_resolutionJetEta_
, etc?
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.
Everything that does not need L1 objects. I think that's only fillWithinLimits(h_controlPlots_[ControlPlots::OfflineJetET], recoEt);
…ven if no L1Jet is matched
Pull request #23269 was updated. @cmsbuild, @vazzolini, @kmaeshima, @dmitrijus, @nsmith-, @rekovic, @jfernan2, @thomreis, @vanbesien can you please check and sign again. |
please test |
The tests are being triggered in jenkins. |
Hi @kreczko |
@thomreis I will make a new one since it is easier to review shorter PRs ;). |
+1 |
@kreczko we will also need a 101x backport PR for this one so that it can be deployed at the T0. |
+1 |
This pull request is fully signed and it will be integrated in one of the next master IBs after it passes the integration tests. This pull request will now be reviewed by the release team before it's merged. @davidlange6, @slava77, @smuzaffar, @fabiocos (and backports should be raised in the release meeting by the corresponding L2) |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
+1 |
Partly fixes https://its.cern.ch/jira/projects/CMSLITDPG/issues/CMSLITDPG-588
currentDeltaR > minDeltaR
→currentDeltaR >= minDeltaR