-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[Phase-2] Fix usage of L1 egamma seeds in Phase-2 HLT #42791
[Phase-2] Fix usage of L1 egamma seeds in Phase-2 HLT #42791
Conversation
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-42791/36902
Code check has found code style and quality issues which could be resolved by applying following patch(s)
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-42791/36903
|
A new Pull Request was created by @SohamBhattacharya for master. It involves the following packages:
@Martin-Grunewald, @missirol, @cmsbuild, @AdrianoDee, @srimanob, @jfernan2, @mmusich, @mandrenguyen can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@cmsbuild, please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-9a6972/34765/summary.html Comparison SummarySummary:
|
Changes to TriggerResults in 24834.0 and 24834.911 look expected. |
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.
@@ -147,8 +151,8 @@ bool L1TTkEleFilter::hltFilter(edm::Event& iEvent, | |||
passIsolation = true; | |||
} | |||
|
|||
if (offlinePt >= min_Pt_ && itkEle->eta() <= max_Eta_ && itkEle->eta() >= min_Eta_ && passQuality && | |||
passIsolation) { | |||
if (offlinePt >= min_Pt_ && std::fabs(itkEle->eta()) < max_AbsEta1_ && std::fabs(itkEle->eta()) >= min_AbsEta1_ && |
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.
elsewhere in this file std::abs
is used
cmssw/HLTrigger/HLTfilters/plugins/L1TTkEleFilter.cc
Lines 148 to 149 in a96c90c
if (std::abs(itkEle->eta()) < etaBinsForIsolation_.at(etabin) and | |
std::abs(itkEle->eta()) > etaBinsForIsolation_.at(etabin - 1) and |
I think that's the preferred option.
@@ -147,7 +152,8 @@ bool L1TTkEmFilter::hltFilter(edm::Event& iEvent, | |||
passIsolation = true; | |||
} | |||
|
|||
if (offlinePt >= min_Pt_ && itkEm->eta() <= max_Eta_ && itkEm->eta() >= min_Eta_ && passQuality && passIsolation) { | |||
if (offlinePt >= min_Pt_ && std::fabs(itkEm->eta()) < max_AbsEta1_ && std::fabs(itkEm->eta()) >= min_AbsEta1_ && |
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.
elsewhere in this file std::abs
is used
cmssw/HLTrigger/HLTfilters/plugins/L1TTkEmFilter.cc
Lines 181 to 182 in a96c90c
if (std::abs(itkEm->eta()) < etaBinsForIsolation_.at(etabin) and | |
std::abs(itkEm->eta()) > etaBinsForIsolation_.at(etabin - 1) and |
I think that's the preferred option.
@@ -177,7 +184,8 @@ bool L1TTkEmFilter::hltFilter(edm::Event& iEvent, | |||
passIsolation = true; | |||
} | |||
|
|||
if (offlinePt >= min_Pt_ && itkEm->eta() <= max_Eta_ && itkEm->eta() >= min_Eta_ && passQuality && passIsolation) { | |||
if (offlinePt >= min_Pt_ && std::fabs(itkEm->eta()) <= max_AbsEta2_ && std::fabs(itkEm->eta()) >= min_AbsEta2_ && |
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.
see above .
if ((offlinePt < minPt_) || (std::abs(l1TrkEm.eta()) < minAbsEta_) || (std::abs(l1TrkEm.eta()) > maxAbsEta_) || | ||
(l1TrkEm.EGRef()->hwQual() != quality_)) { | ||
continue; | ||
if ((offlinePt < minPt_) || (std::abs(l1TrkEm.eta()) < minAbsEta_) || (std::abs(l1TrkEm.eta()) > maxAbsEta_)) { |
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 piece of code is a bit hard to read, I would suggest splitting conditions in dedicated booleans and then compose the final if
accordingly (no strong push though).
Pull request #42791 was updated. @Martin-Grunewald, @missirol, @cmsbuild, @AdrianoDee, @srimanob, @jfernan2, @mmusich, @mandrenguyen can you please check and sign again. |
@cmsbuild, please test |
type bug-fix |
Thank you Soham for the fix |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-9a6972/34778/summary.html Comparison SummarySummary:
|
+hlt
|
+1 |
+upgrade |
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. @rappoccio, @antoniovilela, @sextonkennedy (and backports should be raised in the release meeting by the corresponding L2) |
@cms-sw/orp-l2 please take a look to this. |
+1 |
This PR fixes the usage of L1 egamma seeds in Phase-2 HLT.
See details of the fix in these slides.
Tagging Phase-2 Egamma HLT contacts/validators: @ravindkv @skeshri